Mercurial > hg > dhcpcd
changeset 4587:02c41622154f draft
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.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Thu, 25 Jul 2019 16:27:09 +0100 |
| parents | e2824507fda0 |
| children | 6aced73a8438 |
| files | src/dhcp.c |
| diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcp.c Thu Jul 25 09:37:10 2019 +0100 +++ b/src/dhcp.c Thu Jul 25 16:27:09 2019 +0100 @@ -2329,7 +2329,9 @@ return astate; } #endif - +#endif /* ARP */ + +#if defined(ARP) || defined(KERNEL_RFC5227) static int dhcp_arp_address(struct interface *ifp) { @@ -2417,7 +2419,7 @@ 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 @@ 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);
