Mercurial > hg > dhcpcd
comparison src/if-bsd.c @ 5571:fb1831c903f6 draft
Check for NetBSD in prior, as we did before
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sun, 27 Dec 2020 22:04:45 +0000 |
| parents | 80fba4edc6c5 |
| children |
comparison
equal
deleted
inserted
replaced
| 5570:f32e37b1d371 | 5571:fb1831c903f6 |
|---|---|
| 412 | 412 |
| 413 bool | 413 bool |
| 414 if_roaming(struct interface *ifp) | 414 if_roaming(struct interface *ifp) |
| 415 { | 415 { |
| 416 | 416 |
| 417 #ifdef IN_IFF_TENTATIVE | 417 /* Check for NetBSD as a safety measure. |
| 418 * If other BSD's gain IN_IFF_TENTATIVE check they re-do DAD | |
| 419 * when the carrier comes up again. */ | |
| 420 #if defined(IN_IFF_TENTATIVE) && defined(__NetBSD__) | |
| 418 return ifp->flags & IFF_UP && ifp->carrier == LINK_DOWN; | 421 return ifp->flags & IFF_UP && ifp->carrier == LINK_DOWN; |
| 419 #else | 422 #else |
| 420 UNUSED(ifp); | 423 UNUSED(ifp); |
| 421 return false; | 424 return false; |
| 422 #endif | 425 #endif |
