summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/kroute.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-03-13 15:52:35 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-03-13 15:52:35 +0000
commit8d328ffe652023386659a6738e550a69ace22735 (patch)
treed75874fe0e0114ddaf13e0e98bbc5e6955c64d35 /usr.sbin/bgpd/kroute.c
parenta5ff2a7105a7fb55fae11eebb57289da21739daf (diff)
when fetching the initial table, inherit the ifindex regardless of af, not
just for AF_LINK
Diffstat (limited to 'usr.sbin/bgpd/kroute.c')
-rw-r--r--usr.sbin/bgpd/kroute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index 63d58f34742..0cde25b783a 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.113 2005/03/13 15:34:37 henning Exp $ */
+/* $OpenBSD: kroute.c,v 1.114 2005/03/13 15:52:34 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1157,6 +1157,7 @@ fetchtable(void)
}
kr->r.flags = F_KERNEL;
+ kr->r.ifindex = rtm->rtm_index;
switch (sa->sa_family) {
case AF_INET:
@@ -1187,7 +1188,6 @@ fetchtable(void)
break;
case AF_LINK:
kr->r.flags |= F_CONNECTED;
- kr->r.ifindex = rtm->rtm_index;
break;
}