]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dhcp6: don't make delegated addresses stale
authorRoy Marples <roy@marples.name>
Mon, 6 Nov 2017 12:37:02 +0000 (12:37 +0000)
committerRoy Marples <roy@marples.name>
Mon, 6 Nov 2017 12:37:02 +0000 (12:37 +0000)
src/dhcp6.c

index 52610ada463ed3ad3af1423bfb3e5446e2b82485..2910274a49fe9687c806b0e4037c07e4a490f5e4 100644 (file)
@@ -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);