]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Check we're creating an autoconf address.
authorRoy Marples <roy@marples.name>
Sat, 4 Apr 2015 20:51:29 +0000 (20:51 +0000)
committerRoy Marples <roy@marples.name>
Sat, 4 Apr 2015 20:51:29 +0000 (20:51 +0000)
ipv6nd.c

index 0e5ce9e706c992c82fc5c1dd0aa7e5724de56b58..7b803471503b692ea7326e10ee479c700d5b3997 100644 (file)
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -679,7 +679,9 @@ ipv6nd_ra_has_public_addr(const struct ra *rap)
        const struct ipv6_addr *ia;
 
        TAILQ_FOREACH(ia, &rap->addrs, next) {
-               if (ia->prefix_pltime && (ia->addr.s6_addr[0] & 0xfe) != 0xfc)
+               if (ia->prefix_pltime &&
+                   (ia->addr.s6_addr[0] & 0xfe) != 0xfc &&
+                   ia->flags & IPV6_AF_AUTOCONF)
                        return 1;
        }
        return 0;