summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2009-12-22 17:42:46 +0000
committerclaudio <claudio@openbsd.org>2009-12-22 17:42:46 +0000
commit5008977659f0f721b6ccd95dc3c008c341f29c52 (patch)
tree1b8883f750762401e373b731a1990c4e4ad1dba7
parentGive calc_nexthop_lladdr() a chance to find the correct link local address. (diff)
downloadwireguard-openbsd-5008977659f0f721b6ccd95dc3c008c341f29c52.tar.xz
wireguard-openbsd-5008977659f0f721b6ccd95dc3c008c341f29c52.zip
Use correct interface id. iface_id is our ifindex, nbr_iface_id is the
interface id of the remote side. Found the hard way.
-rw-r--r--usr.sbin/ospf6d/rde_spf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/rde_spf.c b/usr.sbin/ospf6d/rde_spf.c
index 402b1d591ac..9be065be3b2 100644
--- a/usr.sbin/ospf6d/rde_spf.c
+++ b/usr.sbin/ospf6d/rde_spf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_spf.c,v 1.16 2009/12/22 16:29:55 claudio Exp $ */
+/* $OpenBSD: rde_spf.c,v 1.17 2009/12/22 17:42:46 claudio Exp $ */
/*
* Copyright (c) 2005 Esben Norby <norby@openbsd.org>
@@ -484,7 +484,7 @@ calc_nexthop(struct vertex *dst, struct vertex *parent,
if (rtr_link->type != LINK_TYPE_POINTTOPOINT)
fatalx("inconsistent SPF tree");
nexthop = calc_nexthop_lladdr(dst, rtr_link,
- ntohl(rtr_link->nbr_iface_id));
+ ntohl(rtr_link->iface_id));
break;
case LSA_TYPE_NETWORK:
if (rtr_link->type != LINK_TYPE_TRANSIT_NET)