diff options
author | Steven Barth <steven@midlink.org> | 2015-07-14 21:44:08 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-07-14 21:44:08 +0200 |
commit | 6ce8886defe05cdc5f6cbe1ec2f060743d8d5e15 (patch) | |
tree | 63057c5aa8671fdfe96677c98d0ff1131c76b8ae | |
parent | 42cdb6d45ac8dd677f40fe66c72c6028e853fc89 (diff) |
router: fix logic inversion
-rw-r--r-- | src/router.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/router.c b/src/router.c index e3a9aa9..fada62b 100644 --- a/src/router.c +++ b/src/router.c @@ -321,7 +321,7 @@ static uint64_t send_router_advert(struct interface *iface, const struct in6_add } } - if (maxvalid && !iface->default_router && adv.h.nd_ra_router_lifetime) { + if (!maxvalid && !iface->default_router && adv.h.nd_ra_router_lifetime) { syslog(LOG_WARNING, "A default route is present but there is no public prefix " "on %s thus we don't announce a default route!", iface->ifname); adv.h.nd_ra_router_lifetime = 0; |