From 158e298dfee60837631fcb93b404b35ce6ff92c5 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 10 Nov 2019 20:43:04 +0000 Subject: [PATCH] IPv6ND: If a router is reachable again, don't solicit another. --- src/ipv6nd.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.47.2