]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Pass the exiting flag to the pseudo interface so it can persist correctly.
authorRoy Marples <roy@marples.name>
Wed, 8 Oct 2014 12:25:15 +0000 (12:25 +0000)
committerRoy Marples <roy@marples.name>
Wed, 8 Oct 2014 12:25:15 +0000 (12:25 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 06311ad37592a0cb90a1a22a9b29626b43639c0f..bbd7386d007982574dfac62b6e3fa3e6916f9cb8 100644 (file)
--- 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);