diff options
| author | Roy Marples <roy@marples.name> | 2016-10-14 08:55:04 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-10-14 08:55:04 +0000 |
| commit | b60e3c956a47e773af457a95768a63b5866f6ec3 (patch) | |
| tree | f3557a37439466c37a57c589569423f2ba283dbc /dhcpcd.c | |
| parent | 448235e23aa607bb54c5b1ca6266d4b85f784722 (diff) | |
| download | dhcpcd-b60e3c956a47e773af457a95768a63b5866f6ec3.tar.xz | |
Support kernels which implement RFC5227.
This means we don't have to open an ARP socket unless we need to ARPing.
Allow ARP an ARPing to be optional features.
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -370,7 +370,7 @@ dhcpcd_drop(struct interface *ifp, int stop) ipv6_drop(ifp); ipv4ll_drop(ifp); dhcp_drop(ifp, stop ? "STOP" : "EXPIRE"); - arp_close(ifp); + arp_drop(ifp); } static void @@ -722,7 +722,7 @@ dhcpcd_handlecarrier(struct dhcpcd_ctx *ctx, int carrier, unsigned int flags, ifp->carrier = LINK_DOWN; script_runreason(ifp, "NOCARRIER"); #ifdef NOCARRIER_PRESERVE_IP - arp_close(ifp); + arp_drop(ifp); dhcp_abort(ifp); if_sortinterfaces(ctx); ipv4_preferanother(ifp); @@ -1446,6 +1446,12 @@ main(int argc, char **argv) #ifdef INET " INET" #endif +#ifdef ARP + " ARP" +#endif +#ifdef ARPING + " ARPing" +#endif #ifdef IPV4LL " IPv4LL" #endif |
