From: Roy Marples Date: Sun, 27 Dec 2020 20:39:38 +0000 (+0000) Subject: NetBSD: Map IP Persistance to roaming X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=440081797a4a01c9cede85e6733741285ee8b64f;p=people%2Fms%2Fdhcpcd.git NetBSD: Map IP Persistance to roaming We can use IN_IFF_TENTATIVE for this. --- diff --git a/src/if-bsd.c b/src/if-bsd.c index 62e4a83c..96442310 100644 --- a/src/if-bsd.c +++ b/src/if-bsd.c @@ -411,10 +411,15 @@ if_carrier(struct interface *ifp, const void *ifadata) } bool -if_roaming(__unused struct interface *ifp) +if_roaming(struct interface *ifp) { +#ifdef IN_IFF_TENTATIVE + return ifp->flags & IFF_UP && ifp->carrier == LINK_DOWN; +#else + UNUSED(ifp); return false; +#endif } static void