diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-03-10 12:59:14 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-03-10 12:59:14 +0000 |
commit | b86d39192d2e9a4838c8a7eb9c5932446489b8f6 (patch) | |
tree | 0e4522964103d571f1e3ee2b68c0970dee345a46 /usr.sbin/bgpd | |
parent | b31e73c49c98d1d48b19c05abda6b88595f7131d (diff) |
in kif_kr_insert and _remove, don't whine when we do not find an interface
whom's index is 0. this means no interface and our faked route that protects
the loopback network uses ifindex 0. claudio ok
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/kroute.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c index c4a692c19c2..d98282a11a6 100644 --- a/usr.sbin/bgpd/kroute.c +++ b/usr.sbin/bgpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.90 2004/03/10 12:55:35 henning Exp $ */ +/* $OpenBSD: kroute.c,v 1.91 2004/03/10 12:59:13 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -583,8 +583,9 @@ kif_kr_insert(struct kroute_node *kr) struct kif_kr *kkr; if ((kif = kif_find(kr->r.ifindex)) == NULL) { - log_warnx("interface with index %u not found", - kr->r.ifindex); + if (kr->r.ifindex) + log_warnx("interface with index %u not found", + kr->r.ifindex); return (0); } @@ -607,8 +608,9 @@ kif_kr_remove(struct kroute_node *kr) struct kif_kr *kkr; if ((kif = kif_find(kr->r.ifindex)) == NULL) { - log_warnx("interface with index %u not found", - kr->r.ifindex); + if (kr->r.ifindex) + log_warnx("interface with index %u not found", + kr->r.ifindex); return (0); } |