]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Close arp explicity as well.
authorRoy Marples <roy@marples.name>
Fri, 24 Oct 2014 12:24:27 +0000 (12:24 +0000)
committerRoy Marples <roy@marples.name>
Fri, 24 Oct 2014 12:24:27 +0000 (12:24 +0000)
dhcpcd.c

index 2d966670684337c7ecc2cc3aafc57c4770d2c31a..97330af0a823cce83f57273b8f518867890b0fa2 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -313,6 +313,7 @@ stop_interface(struct interface *ifp)
        dhcp6_drop(ifp, NULL);
        ipv6nd_drop(ifp);
        dhcp_drop(ifp, "STOP");
+       arp_close(ifp);
        eloop_timeout_delete(ctx->eloop, NULL, ifp);
        if (ifp->options->options & DHCPCD_DEPARTED)
                script_runreason(ifp, "DEPARTED");
@@ -564,6 +565,7 @@ dhcpcd_handlecarrier(struct dhcpcd_ctx *ctx, int carrier, unsigned int flags,
                         * do nothing. */
                        ipv6_free_ll_callbacks(ifp);
                        dhcp_drop(ifp, "EXPIRE");
+                       arp_close(ifp);
                }
        } else if (carrier == LINK_UP && ifp->flags & IFF_UP) {
                if (ifp->carrier != LINK_UP) {