summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6d/interface.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2007-11-24 16:35:16 +0000
committerclaudio <claudio@openbsd.org>2007-11-24 16:35:16 +0000
commit3897a7489f35ad36869f385ef2881fea1487df84 (patch)
treeacd29b38619a597354b223b8b395c00dc558afe5 /usr.sbin/ospf6d/interface.c
parentSince switches from X to consoles are aysnchronous, wsmoused(8) can be awakened (diff)
downloadwireguard-openbsd-3897a7489f35ad36869f385ef2881fea1487df84.tar.xz
wireguard-openbsd-3897a7489f35ad36869f385ef2881fea1487df84.zip
Print the neighbor ID instead of the neighbor address in if_act_elect().
Neighbors are identified by ID in OSPF v3 and trying to print a IPv6 addr as AF_INET was wrong anyway.
Diffstat (limited to 'usr.sbin/ospf6d/interface.c')
-rw-r--r--usr.sbin/ospf6d/interface.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ospf6d/interface.c b/usr.sbin/ospf6d/interface.c
index 62b664e9d17..8e57b57ee02 100644
--- a/usr.sbin/ospf6d/interface.c
+++ b/usr.sbin/ospf6d/interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.c,v 1.5 2007/10/11 21:25:37 claudio Exp $ */
+/* $OpenBSD: interface.c,v 1.6 2007/11/24 16:35:16 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -466,10 +466,10 @@ start:
log_debug("if_act_elect: interface %s old dr %s new dr %s, "
"old bdr %s new bdr %s", iface->name,
- iface->dr ? inet_ntop(AF_INET, &iface->dr->addr, b1, sizeof(b1)) :
- "none", dr ? inet_ntop(AF_INET, &dr->addr, b2, sizeof(b2)) : "none",
- iface->bdr ? inet_ntop(AF_INET, &iface->bdr->addr, b3, sizeof(b3)) :
- "none", bdr ? inet_ntop(AF_INET, &bdr->addr, b4, sizeof(b4)) :
+ iface->dr ? inet_ntop(AF_INET, &iface->dr->id, b1, sizeof(b1)) :
+ "none", dr ? inet_ntop(AF_INET, &dr->id, b2, sizeof(b2)) : "none",
+ iface->bdr ? inet_ntop(AF_INET, &iface->bdr->id, b3, sizeof(b3)) :
+ "none", bdr ? inet_ntop(AF_INET, &bdr->id, b4, sizeof(b4)) :
"none");
/*