summaryrefslogtreecommitdiffstats
path: root/src/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2017-09-15 12:56:09 +0100
committerRoy Marples <roy@marples.name>2017-09-15 12:56:09 +0100
commit285d7627ce7914d829d831d3526644023cf1db10 (patch)
tree23db40cb63e3ff1fd9c2a26907869e5b985961f5 /src/dhcpcd.c
parentea28e2c82fdefb9ac18203553843dc8951c4a6bc (diff)
downloaddhcpcd-285d7627ce7914d829d831d3526644023cf1db10.tar.xz
arp: RFC5227 kernels need to send ARP too
Now that IP address sharing is handled with ARP announcements. This fixes the issue where RFC5227 kernels would fail to compile if not compiled for ARPING as well.
Diffstat (limited to 'src/dhcpcd.c')
-rw-r--r--src/dhcpcd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c
index f134b718..8b3ac1b5 100644
--- a/src/dhcpcd.c
+++ b/src/dhcpcd.c
@@ -368,7 +368,9 @@ dhcpcd_drop(struct interface *ifp, int stop)
ipv6_drop(ifp);
ipv4ll_drop(ifp);
dhcp_drop(ifp, stop ? "STOP" : "EXPIRE");
+#ifdef ARP
arp_drop(ifp);
+#endif
}
static void
@@ -719,7 +721,9 @@ dhcpcd_handlecarrier(struct dhcpcd_ctx *ctx, int carrier, unsigned int flags,
ifp->carrier = LINK_DOWN;
script_runreason(ifp, "NOCARRIER");
#ifdef NOCARRIER_PRESERVE_IP
+#ifdef ARP
arp_drop(ifp);
+#endif
dhcp_abort(ifp);
ipv6nd_expire(ifp, 0);
#else