summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-03-10 12:55:36 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-03-10 12:55:36 +0000
commitb31e73c49c98d1d48b19c05abda6b88595f7131d (patch)
tree17b8aae0ddbd439a3381ae05562b508b89455942
parent21bd497b1b7fdbc573754a698a79aaca4ad0ad80 (diff)
remove an ugly hack from the time when we had no RTM_IFANNOUNCE messages:
if kif_find() did not find a matchnit re-fetched the complete table from the kernel and retried. this is obsolete now, claudio ok
-rw-r--r--usr.sbin/bgpd/kroute.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index f35f2e6b041..c4a692c19c2 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.89 2004/03/04 11:26:36 henning Exp $ */
+/* $OpenBSD: kroute.c,v 1.90 2004/03/10 12:55:35 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -533,16 +533,11 @@ knexthop_remove(struct knexthop_node *kn)
struct kif_node *
kif_find(int ifindex)
{
- struct kif_node *kif, s;
+ struct kif_node s;
bzero(&s, sizeof(s));
s.k.ifindex = ifindex;
- if ((kif = RB_FIND(kif_tree, &kit, &s)) != NULL)
- return (kif);
-
- /* check wether the interface showed up now */
- fetchifs(ifindex);
return (RB_FIND(kif_tree, &kit, &s));
}