From: Roy Marples Date: Tue, 10 Mar 2020 12:19:03 +0000 (+0000) Subject: IPv6ND: Mark stale addresses/prefixes with a pltime of zero. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e718d3696104aaab74d535e1f85554fed0a6dcd;p=thirdparty%2Fdhcpcd.git IPv6ND: Mark stale addresses/prefixes with a pltime of zero. This mirrors DHCPv6 behaviour. --- diff --git a/src/ipv6nd.c b/src/ipv6nd.c index 3f5e191a..d548f6b0 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -1359,6 +1359,13 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx, } } + TAILQ_FOREACH(ia, &rap->addrs, next) { + if (!(ia->flags & IPV6_AF_STALE) || ia->prefix_pltime == 0) + continue; + logdebugx("%s: %s: became stale", ifp->name, ia->saddr); + ia->prefix_pltime = 0; + } + if (new_data && !has_address && rap->lifetime && !ipv6_anyglobal(ifp)) logwarnx("%s: no global addresses for default route", ifp->name);