From: Roy Marples Date: Thu, 25 Jul 2019 15:27:09 +0000 (+0100) Subject: NetBSD: Allow dhcpcd to be built without ARP support X-Git-Tag: v8.0.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f9cacad4cb931c77ec4638ed3c3c5f5b4e80f88;p=thirdparty%2Fdhcpcd.git NetBSD: Allow dhcpcd to be built without ARP support Because NetBSD has RFC 5227 support in the kernel, we only need ARP to announce addresses and we only need to do that when address sharing which shouldn't be a concern for small installations where size is paramount. --- diff --git a/src/dhcp.c b/src/dhcp.c index 8b75865a..01f73c0e 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -2329,7 +2329,9 @@ dhcp_arp_new(struct interface *ifp, struct in_addr *addr) return astate; } #endif +#endif /* ARP */ +#if defined(ARP) || defined(KERNEL_RFC5227) static int dhcp_arp_address(struct interface *ifp) { @@ -2417,7 +2419,7 @@ dhcp_static(struct interface *ifp) ia ? &ia->addr : &ifo->req_addr, ia ? &ia->mask : &ifo->req_mask); if (state->offer_len) -#ifdef ARP +#if defined(ARP) || defined(KERNEL_RFC5227) dhcp_arp_bind(ifp); #else dhcp_bind(ifp); @@ -3210,7 +3212,7 @@ rapidcommit: lease->frominfo = 0; eloop_timeout_delete(ifp->ctx->eloop, NULL, ifp); -#ifdef ARP +#if defined(ARP) || defined(KERNEL_RFC5227) dhcp_arp_bind(ifp); #else dhcp_bind(ifp);