From: Roy Marples Date: Wed, 8 Oct 2014 12:25:15 +0000 (+0000) Subject: Pass the exiting flag to the pseudo interface so it can persist correctly. X-Git-Tag: v6.5.1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f775cf5cd7e2437901894a955447d4e8a01422a9;p=thirdparty%2Fdhcpcd.git Pass the exiting flag to the pseudo interface so it can persist correctly. --- diff --git a/dhcp6.c b/dhcp6.c index 06311ad3..bbd7386d 100644 --- a/dhcp6.c +++ b/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);