]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
FreeBSD: Mark INET6 addresses as tentative when adding them
authorRoy Marples <roy@marples.name>
Fri, 30 Nov 2018 03:38:06 +0000 (03:38 +0000)
committerRoy Marples <roy@marples.name>
Fri, 30 Nov 2018 03:38:06 +0000 (03:38 +0000)
This is kind of odd really because the kernel should do this if
we're sending DaD probes.

src/if-bsd.c

index 68914b87a50deebad76958a3f89a2038fa4d0433..bab674ab15aaf6a3ebc32a65cf5c8595ff572373 100644 (file)
@@ -797,6 +797,10 @@ if_address6(unsigned char cmd, const struct ipv6_addr *ia)
        if (ia->autoconf)
                ifa.ifra_flags |= IN6_IFF_AUTOCONF;
 #endif
+#if defined(__FreeBSD__) || defined(__DragonFly__)
+       if (ia->addr_flags & IN6_IFF_TENTATIVE)
+               ifa.ifra_flags |= IN6_IFF_TENTATIVE;
+#endif
 #ifdef IPV6_MANGETEMPADDR
        if (ia->flags & IPV6_AF_TEMPORARY)
                ifa.ifra_flags |= IN6_IFF_TEMPORARY;