summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}