Mercurial > hg > dhcpcd
changeset 5430:c2b796cf7e94 draft
dhcpcd: Adjust prior to ensure options exist for active interfaces before timeouts
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 31 Aug 2020 06:48:59 +0100 |
| parents | 4729f8db7842 |
| children | f8d95f002758 |
| files | src/dhcpcd.c |
| diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcpcd.c Sun Aug 30 09:41:47 2020 +0100 +++ b/src/dhcpcd.c Mon Aug 31 06:48:59 2020 +0100 @@ -1158,7 +1158,6 @@ { struct interface *ifp = arg; - dhcpcd_initstate(ifp, 0); run_preinit(ifp); dhcpcd_prestartinterface(ifp); } @@ -1225,9 +1224,11 @@ continue; } TAILQ_INSERT_TAIL(ctx->ifaces, ifp, next); - if (ifp->active) + if (ifp->active) { + dhcpcd_initstate(ifp, 0); eloop_timeout_add_sec(ctx->eloop, 0, dhcpcd_initprestartinterface, ifp); + } } free(ifaces);
