diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2010-06-12 10:03:39 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2010-06-12 10:03:39 +0000 |
commit | 2aa903c169628a8e957ba8c491748beaf02c613f (patch) | |
tree | 9fd22fc9bc8f948d2bd631a1268ab681c55c418a /usr.sbin/ospf6d/kroute.c | |
parent | 24d487ae9126e7e8074e4e76a4380298f0608b39 (diff) |
The "dispatch_rtmsg no nexthop" error was emitted in wrong cases
and prevented dynamic route redistribution. Fix the logic bug that
was introduced during IPv4 to IPv6 conversion.
ok claudio@
Diffstat (limited to 'usr.sbin/ospf6d/kroute.c')
-rw-r--r-- | usr.sbin/ospf6d/kroute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/kroute.c b/usr.sbin/ospf6d/kroute.c index 5944bcf8119..47e34610f91 100644 --- a/usr.sbin/ospf6d/kroute.c +++ b/usr.sbin/ospf6d/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.20 2010/06/09 17:46:42 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.21 2010/06/12 10:03:38 bluhm Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -1352,7 +1352,7 @@ dispatch_rtmsg(void) switch (rtm->rtm_type) { case RTM_ADD: case RTM_CHANGE: - if (!IN6_IS_ADDR_UNSPECIFIED(&nexthop) && + if (IN6_IS_ADDR_UNSPECIFIED(&nexthop) && !(flags & F_CONNECTED)) { log_warnx("dispatch_rtmsg no nexthop for %s/%u", log_in6addr(&prefix), prefixlen); |