From: Roy Marples Date: Sun, 10 Nov 2019 20:43:04 +0000 (+0000) Subject: IPv6ND: If a router is reachable again, don't solicit another. X-Git-Tag: v8.1.2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=158e298dfee60837631fcb93b404b35ce6ff92c5;p=thirdparty%2Fdhcpcd.git IPv6ND: If a router is reachable again, don't solicit another. --- diff --git a/src/ipv6nd.c b/src/ipv6nd.c index 6033ee11..e9d2a950 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -664,6 +664,9 @@ ipv6nd_neighbour(struct dhcpcd_ctx *ctx, struct in6_addr *addr, bool reachable) ipv6nd_applyra(ctx, rap->iface); rt_build(ctx, AF_INET6); + if (reachable) + return; + /* If we have no reachable default routers, try and solicit one. */ TAILQ_FOREACH(rapr, ctx->ra_routers, next) { if (rap == rapr || rap->iface != rapr->iface)