From: Roy Marples Date: Thu, 30 Jun 2016 10:39:28 +0000 (+0000) Subject: Don't add our own IPv6 LLADDR if the OS doesn't allow us turning the OS doing it... X-Git-Tag: v6.11.2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dbfde2bc0bf353e58793a027364a4fd7bbcc87b;p=thirdparty%2Fdhcpcd.git Don't add our own IPv6 LLADDR if the OS doesn't allow us turning the OS doing it off. --- diff --git a/ipv6.c b/ipv6.c index 05c9c3b5..41c2eec3 100644 --- a/ipv6.c +++ b/ipv6.c @@ -106,8 +106,14 @@ #define CAN_ADD_LLADDR(ifp) \ (!((ifp)->options->options & DHCPCD_SLAACPRIVATE) || \ (ifp)->carrier != LINK_DOWN) -#else +#elif __NetBSD__ +/* Earlier versions of NetBSD don't add duplicate LLADDR's if the interface + * is brought up and one already exists. */ #define CAN_ADD_LLADDR(ifp) (1) +#else +/* We have no control over the OS adding the LLADDR, so just let it do it + * as we cannot force our own view on it. */ +#define CAN_ADD_LLADDR(ifp) (0) #endif #ifdef IPV6_MANAGETEMPADDR