Mercurial > hg > dhcpcd
diff src/ipv6nd.c @ 5557:e65d193a1960 draft
Linux: Support wireless IP roaming
This is achieved by checking that the interface is wireless,
IFF_UP and IFF_LOWER_UP are present, but IFF_RUNNING is missing.
This gives exactly the same support as modern NetBSD when carrier
loss is detected, but without the address verifications when the
carrier comes back as that needs to be handled in the kernel.
While IP setup is maintained, other configuration data is discarded.
Note that this should be improved in the future.
Thanks to Boris Krasnovskiy <borkra@gmail.com> for helping with this.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sat, 12 Dec 2020 13:12:26 +0000 |
| parents | a0d828e25482 |
| children |
line wrap: on
line diff
--- a/src/ipv6nd.c Wed Dec 09 11:15:30 2020 +0000 +++ b/src/ipv6nd.c Sat Dec 12 13:12:26 2020 +0000 @@ -1155,7 +1155,6 @@ return; } -#ifdef NOCARRIER_PRESERVE_IP /* * Because we preserve RA's and expire them quickly after * carrier up, it's important to reset the kernels notion of @@ -1168,7 +1167,6 @@ } if (rap != NULL && rap->willexpire) ipv6nd_applyra(ifp); -#endif TAILQ_FOREACH(rap, ctx->ra_routers, next) { if (ifp == rap->iface &&
