mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-24 18:44:10 +08:00
Pass the exiting flag to the pseudo interface so it can persist correctly.
This commit is contained in:
parent
52ed0e0c78
commit
f775cf5cd7
2
dhcp6.c
2
dhcp6.c
@ -3185,6 +3185,8 @@ dhcp6_freedrop(struct interface *ifp, int drop, const char *reason)
|
||||
|
||||
ifpx = dhcp6_findpfxdlgif(ifp);
|
||||
if (ifpx) {
|
||||
if (options & DHCPCD_EXITING)
|
||||
ifpx->options->options |= DHCPCD_EXITING;
|
||||
dhcp6_freedrop(ifpx, dropdele ? 1 : drop, reason);
|
||||
TAILQ_REMOVE(ifp->ctx->ifaces, ifpx, next);
|
||||
if_free(ifpx);
|
||||
|
Loading…
Reference in New Issue
Block a user