summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-01-07 12:38:52 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-01-07 12:38:52 +0000
commit8372991785687114415fc73893a5135d57d260c9 (patch)
tree389492a2a47fbbb562260aa000ac86bb25534ba1 /usr.sbin/bgpd
parentee4209146c687d1d8ecc2352f95869f00b8007d0 (diff)
fix a check that catched too much... now connected routes that appear
after startup (due to addition of an ip to an interface) are handled correctly.
Diffstat (limited to 'usr.sbin/bgpd')
-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 c055d27a65a..7a3adf975c7 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.47 2004/01/06 03:43:50 henning Exp $ */
+/* $OpenBSD: kroute.c,v 1.48 2004/01/07 12:38:51 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -529,7 +529,7 @@ kroute_dispatch_msg(void)
switch (rtm->rtm_type) {
case RTM_ADD:
case RTM_CHANGE:
- if (nexthop == 0) {
+ if (nexthop == 0 && !(flags & F_CONNECTED)) {
logit(LOG_CRIT,
"kroute_dispatch_msg: no nexthop for %s/%u",
log_ntoa(s.r.prefix), s.r.prefixlen);