That will cause a delay and poll instantly rather than
an initial wait.
case LINK_UNKNOWN:
/* No media state available.
* Loop until both IFF_UP and IFF_RUNNING are set */
- if_pollinit(ifp);
+ if (ifo->poll == 0)
+ if_pollinit(ifp);
return;
}
}
struct dhcpcd_ctx *ctx = ifp->ctx;
bool anondown;
- if (ifp->options->poll != 0)
- if_pollinit(ifp);
-
if (ifp->carrier == LINK_DOWN &&
ifp->options->options & DHCPCD_ANONYMOUS &&
ifp->flags & IFF_UP)
logerr(__func__);
}
+ if (ifp->options->poll != 0)
+ if_pollinit(ifp);
+
dhcpcd_startinterface(ifp);
}