]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't add our own IPv6 LLADDR if the OS doesn't allow us turning the OS doing it...
authorRoy Marples <roy@marples.name>
Thu, 30 Jun 2016 10:39:28 +0000 (10:39 +0000)
committerRoy Marples <roy@marples.name>
Thu, 30 Jun 2016 10:39:28 +0000 (10:39 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index 05c9c3b5f953e421cd4cbfad4e89ad5a0e36428c..41c2eec34e09de7a413a981ceb8c91bfe525ad18 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
 #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