dhcp_arp_not_found(struct arp_state *astate)
{
struct interface *ifp;
+#ifdef ARPING
struct dhcp_state *state;
struct if_options *ifo;
+#endif
ifp = astate->iface;
+#ifdef ARPING
state = D_STATE(ifp);
ifo = ifp->options;
-#ifdef ARPING
if (ifo->arping_len && state->arping_index < ifo->arping_len) {
/* We didn't find a profile for this
* address or hwaddr, so move to the next
dhcp_arp_found(struct arp_state *astate, const struct arp_msg *amsg)
{
struct in_addr addr;
+ struct interface *ifp = astate->iface;
#ifdef ARPING
- struct interface *ifp;
struct dhcp_state *state;
struct if_options *ifo;
- ifp = astate->iface;
state = D_STATE(ifp);
ifo = ifp->options;
dhcpcd_startinterface(ifp);
return;
}
+#else
+ UNUSED(amsg);
#endif
addr = astate->addr;
#ifdef ARP
if (!keeparp)
arp_freeaddr(addr->iface, &addr->addr);
+#else
+ UNUSED(keeparp);
#endif
state = IPV4_STATE(addr->iface);
ifo->options & DHCPCD_INFORM ||
(ifo->options & DHCPCD_STATIC && ifo->req_addr.s_addr == 0))
return 0;
+#ifdef ARP
arp_freeaddr(ifp, &state->addr->addr);
+#endif
r = ipv4_deladdr(state->addr, 0);
return r;
}