struct dhcp_lease *lease = &state->lease;
struct timeval tv;
+ /* We're binding an address now - ensure that sockets are closed */
+ close_sockets(iface);
state->reason = NULL;
delete_timeout(handle_exit_timeout, NULL);
if (clock_monotonic)
}
}
- close_sockets(iface);
bind_interface(iface);
}
}
}
iface->state->reason = "CARRIER";
- configure(iface);
+ run_script(iface);
start_interface(iface);
}
break;
ifs->nakoff = 1;
configure_interface(iface, argc, argv);
if (!(options & DHCPCD_TEST))
- configure(iface);
+ run_script(iface);
if (ifs->options->options & DHCPCD_LINK) {
switch (carrier_status(iface->name)) {
return;
}
if (!(options & DHCPCD_TEST))
- configure(iface);
+ run_script(iface);
} else
iface->carrier = LINK_UNKNOWN;
}