From: Roy Marples Date: Fri, 30 Nov 2018 03:38:06 +0000 (+0000) Subject: FreeBSD: Mark INET6 addresses as tentative when adding them X-Git-Tag: v7.1.0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f595323919963675b2f83c6c3b1f4c511f0a2f2;p=thirdparty%2Fdhcpcd.git FreeBSD: Mark INET6 addresses as tentative when adding them This is kind of odd really because the kernel should do this if we're sending DaD probes. --- diff --git a/src/if-bsd.c b/src/if-bsd.c index 68914b87..bab674ab 100644 --- a/src/if-bsd.c +++ b/src/if-bsd.c @@ -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;