]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
A delegated prefix is not an address to be added.
authorRoy Marples <roy@marples.name>
Thu, 7 Sep 2017 10:13:57 +0000 (11:13 +0100)
committerRoy Marples <roy@marples.name>
Thu, 7 Sep 2017 10:13:57 +0000 (11:13 +0100)
src/ipv6.c

index b45d97df2c4cc4502d79b327260547ea0cb6af97..634fd64b6cc203bcc93867ebed7b2ed2a9fee1fa 100644 (file)
@@ -906,6 +906,9 @@ ipv6_addaddrs(struct ipv6_addrhead *addrs)
        i = 0;
        timespecclear(&now);
        TAILQ_FOREACH_SAFE(ap, addrs, next, apn) {
+               /* A delegated prefix is not an address. */
+               if (ap->flags & IPV6_AF_DELEGATEDPFX)
+                       continue;
                if (ap->prefix_vltime == 0) {
                        if (ap->flags & IPV6_AF_ADDED) {
                                ipv6_deleteaddr(ap);