summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-12-22 17:42:47 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-12-22 17:42:47 +0000
commit0a2afbf3f435f13ee6abcd97b223594a26361f1b (patch)
tree93a4b2ab189f31e02ec4738017b672a347101bdc /usr.sbin
parentebb69d4d845f35a5d2b012d5bf97fcc114838f13 (diff)
Use correct interface id. iface_id is our ifindex, nbr_iface_id is the
interface id of the remote side. Found the hard way.
Diffstat (limited to 'usr.sbin')
-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)