# HG changeset patch # User Roy Marples # Date 1609101578 0 # Node ID 80fba4edc6c565667c2d07c633f060cb83eab92d # Parent cebc093fd611f1ae66c4f303c93145973651f537 NetBSD: Map IP Persistance to roaming We can use IN_IFF_TENTATIVE for this. diff -r cebc093fd611 -r 80fba4edc6c5 src/if-bsd.c --- a/src/if-bsd.c Sun Dec 27 20:39:31 2020 +0000 +++ b/src/if-bsd.c Sun Dec 27 20:39:38 2020 +0000 @@ -411,10 +411,15 @@ } 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