From: Roy Marples Date: Mon, 6 Nov 2017 12:37:02 +0000 (+0000) Subject: dhcp6: don't make delegated addresses stale X-Git-Tag: v7.0.0-rc4~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a35f4d375f23a2fd5b4c53f168cb9ca32a5c30a9;p=thirdparty%2Fdhcpcd.git dhcp6: don't make delegated addresses stale --- diff --git a/src/dhcp6.c b/src/dhcp6.c index 52610ada..2910274a 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -2139,7 +2139,8 @@ dhcp6_findia(struct interface *ifp, struct dhcp6_message *m, size_t l, i = e = 0; state = D6_STATE(ifp); TAILQ_FOREACH(ap, &state->addrs, next) { - ap->flags |= IPV6_AF_STALE; + if (!(ap->flags & IPV6_AF_DELEGATED)) + ap->flags |= IPV6_AF_STALE; } d = (uint8_t *)m + sizeof(*m);