if (astate->iface->ctx->options & DHCPCD_FORKED)
return;
- arp_announce(astate);
-
/* Stop IPv4LL now we have a working DHCP address */
ipv4ll_drop(astate->iface);
* notification right now via our link socket. */
if_initrt(ifp);
ipv4_buildroutes(ifp->ctx);
+ /* Announce the address */
+ if (ifo->options & DHCPCD_ARP) {
+ struct arp_state *astate;
+
+ if ((astate = arp_new(ifp, &state->addr)) != NULL)
+ arp_announce(astate);
+ }
if (state->state == DHS_BOUND) {
script_runreason(ifp, state->reason);
dhcpcd_daemonise(ifp->ctx);