Mercurial > hg > dhcpcd
changeset 5569:80fba4edc6c5 draft
NetBSD: Map IP Persistance to roaming
We can use IN_IFF_TENTATIVE for this.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sun, 27 Dec 2020 20:39:38 +0000 |
| parents | cebc093fd611 |
| children | f32e37b1d371 |
| files | src/if-bsd.c |
| diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
