From: Roy Marples Date: Fri, 24 Oct 2014 12:24:27 +0000 (+0000) Subject: Close arp explicity as well. X-Git-Tag: v6.6.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4765fefb36cc5e232f5c3aad94dff482056ed3b1;p=thirdparty%2Fdhcpcd.git Close arp explicity as well. --- diff --git a/dhcpcd.c b/dhcpcd.c index 2d966670..97330af0 100644 --- 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) {