summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2010-06-28 15:05:02 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2010-06-28 15:05:02 +0000
commit40bdda84901aab2ab3a7637a780ebc88000ff687 (patch)
treee823d5cf6ad1980583ef702740af5b778c985956 /usr.sbin/ospf6d
parentdf4647207f6e0f0893a85469177623af4f68589d (diff)
Store the ifindex into the kroute change imsg. This way we can use
the interface index for writing routes into the kernel. ok claudio@
Diffstat (limited to 'usr.sbin/ospf6d')
-rw-r--r--usr.sbin/ospf6d/rde.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ospf6d/rde.c b/usr.sbin/ospf6d/rde.c
index 235808f3c6d..287cbc9eccc 100644
--- a/usr.sbin/ospf6d/rde.c
+++ b/usr.sbin/ospf6d/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.41 2010/06/12 10:06:50 bluhm Exp $ */
+/* $OpenBSD: rde.c,v 1.42 2010/06/28 15:05:01 bluhm Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -817,6 +817,7 @@ rde_send_change_kroute(struct rt_node *r)
if (IN6_IS_ADDR_LINKLOCAL(&rn->nexthop) ||
IN6_IS_ADDR_MC_LINKLOCAL(&rn->nexthop))
kr.scope = rn->ifindex;
+ kr.ifindex = rn->ifindex;
kr.prefixlen = r->prefixlen;
kr.ext_tag = r->ext_tag;