From: Roy Marples Date: Tue, 5 Nov 2019 21:54:32 +0000 (+0000) Subject: DHCP: When rebinding ensure we have a DHCP ARP state X-Git-Tag: v8.1.2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b06683d56a3f816b30d328b0b0f31cfd1b75e956;p=thirdparty%2Fdhcpcd.git DHCP: When rebinding ensure we have a DHCP ARP state So we can defend the address. --- diff --git a/src/dhcp.c b/src/dhcp.c index 7e590df9..e3f7aecd 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -2608,6 +2608,11 @@ dhcp_reboot(struct interface *ifp) ifp->name, inet_ntoa(state->lease.addr)); #ifdef ARP +#ifndef KERNEL_RFC5227 + /* Create the DHCP ARP state so we can defend it. */ + (void)dhcp_arp_new(ifp, &state->lease.addr); +#endif + /* If the address exists on the interface and no other interface * is currently using it then announce it to ensure this * interface gets the reply. */