summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-12-27 22:04:45 +0000
committerRoy Marples <roy@marples.name>2020-12-27 22:04:45 +0000
commitb4d4f08872b08b9e93435fac1e40b11d1802c91e (patch)
treec5dc2fad71d1993484c21810c6e13946346304aa
parentc8db8091092d4db3f815bd4573ffdb5085dc2b8b (diff)
downloaddhcpcd-b4d4f08872b08b9e93435fac1e40b11d1802c91e.tar.xz
Check for NetBSD in prior, as we did before
-rw-r--r--src/if-bsd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/if-bsd.c b/src/if-bsd.c
index 96442310..8fe7d264 100644
--- a/src/if-bsd.c
+++ b/src/if-bsd.c
@@ -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);