diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-04-28 15:46:11 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-04-28 15:46:11 +0000 |
commit | 2a593261746ee5c812677b7f99954c5f36612286 (patch) | |
tree | f2e127d7e7f5088d97a7d991825a9993f8a6c69c | |
parent | 268cbec918fc272826d8a432da53995a19618fc0 (diff) |
do not log "interface with index 0 not found". ifindex == 0 happens on
routes. same as in bgpd now. norby ok
-rw-r--r-- | usr.sbin/ospfd/kroute.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c index 31c1abe472b..318b887a424 100644 --- a/usr.sbin/ospfd/kroute.c +++ b/usr.sbin/ospfd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.30 2006/04/25 08:01:16 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.31 2006/04/28 15:46:10 henning Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -535,8 +535,9 @@ kif_validate(int ifindex) struct kif_node *kif; if ((kif = kif_find(ifindex)) == NULL) { - log_warnx("interface with index %u not found", - ifindex); + if (ifindex > 0) + log_warnx("interface with index %u not found", + ifindex); return (1); } |