]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Check for NetBSD in prior, as we did before
authorRoy Marples <roy@marples.name>
Sun, 27 Dec 2020 22:04:45 +0000 (22:04 +0000)
committerRoy Marples <roy@marples.name>
Sun, 27 Dec 2020 22:04:45 +0000 (22:04 +0000)
src/if-bsd.c

index 96442310cf22af67d96f6270234d56481751c7ca..8fe7d2644c2aa71514f5c2ef4b8cffc90a45c36a 100644 (file)
@@ -414,7 +414,10 @@ bool
 if_roaming(struct interface *ifp)
 {
 
-#ifdef IN_IFF_TENTATIVE
+/* Check for NetBSD as a safety measure.
+ * If other BSD's gain IN_IFF_TENTATIVE check they re-do DAD
+ * when the carrier comes up again. */
+#if defined(IN_IFF_TENTATIVE) && defined(__NetBSD__)
        return ifp->flags & IFF_UP && ifp->carrier == LINK_DOWN;
 #else
        UNUSED(ifp);