summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_ipip.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2014-12-05 15:47:06 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2014-12-05 15:47:06 +0000
commit3102933c68a271f0c3b5bf4ab50e6229ecd384d1 (patch)
tree9014e33c463a4106a2ddd5b7e6ae95d7e36f2b56 /sys/netinet/ip_ipip.c
parent7a578d6d316a6e71be68a75a579eeb1435831c6a (diff)
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.
Diffstat (limited to 'sys/netinet/ip_ipip.c')
0 files changed, 0 insertions, 0 deletions