]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
IPv6ND: If a router is reachable again, don't solicit another.
authorRoy Marples <roy@marples.name>
Sun, 10 Nov 2019 20:43:04 +0000 (20:43 +0000)
committerRoy Marples <roy@marples.name>
Sun, 10 Nov 2019 20:43:04 +0000 (20:43 +0000)
src/ipv6nd.c

index 6033ee11bb47a098fac9bdfb19ea51cdb486ea71..e9d2a95029426e3437d0bd55e4c1120bff703169 100644 (file)
@@ -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)