CVSROOT: /cvs Module name: src Changes by: k...@cvs.openbsd.org 2014/12/05 08:47:05
Modified files: sbin/dhclient : dhclient.c dhcpd.h Log message: Move initial wait for network link into the state machine by adding state S_PREBOOT and associated state_preboot() function. This results in routing socket messages being processed even while the link is being waited for. Thus the RTM_IFINFO message announcing the link is ready can be reacted to immediately, rather than waiting for the sleep(1)'ing process to wake up and look at the link state. Some interfaces seem to lose the first packet sent when the RTM_IFINFO message is reacted to so quickly, so temporarily leave in place an explicit delay before sending the first packet.