summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-05-27 19:28:21 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-05-27 19:28:21 +0000
commit8f6d4d8b3a9ad9ead1f9a4b190b6383cbd3da323 (patch)
treeb4fbde7a4dcab4441029a1f837b1ffebbfec71cd /usr.sbin/ospfd
parentf8821810b9ad71ba3b113e650ac749ec540b1fef (diff)
Revert last commit. Having ifindex of 0 is an error and needs to be reported.
Having routes with incorrect ifindex makes it impossible to correctly validate routes. -current ospfd needs a -current kernel.
Diffstat (limited to 'usr.sbin/ospfd')
-rw-r--r--usr.sbin/ospfd/kroute.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c
index 318b887a424..1cbf4c94653 100644
--- a/usr.sbin/ospfd/kroute.c
+++ b/usr.sbin/ospfd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.31 2006/04/28 15:46:10 henning Exp $ */
+/* $OpenBSD: kroute.c,v 1.32 2006/05/27 19:28:20 claudio Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -535,9 +535,7 @@ kif_validate(int ifindex)
struct kif_node *kif;
if ((kif = kif_find(ifindex)) == NULL) {
- if (ifindex > 0)
- log_warnx("interface with index %u not found",
- ifindex);
+ log_warnx("interface with index %u not found", ifindex);
return (1);
}
@@ -645,8 +643,7 @@ if_change(u_short ifindex, int flags, struct if_data *ifd)
u_int8_t reachable;
if ((kif = kif_find(ifindex)) == NULL) {
- log_warnx("interface with index %u not found",
- ifindex);
+ log_warnx("interface with index %u not found", ifindex);
return;
}