summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/raw_ip6.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2014-12-05 15:47:05 +0000
committerkrw <krw@openbsd.org>2014-12-05 15:47:05 +0000
commitc623264e61d48a132fa304e1d95d0fe180a5f4b4 (patch)
tree60822d992cbfee152aeba913a7e0884a34d06f37 /sys/netinet6/raw_ip6.c
parentDo not misinterpret function arguments as function names; (diff)
downloadwireguard-openbsd-c623264e61d48a132fa304e1d95d0fe180a5f4b4.tar.xz
wireguard-openbsd-c623264e61d48a132fa304e1d95d0fe180a5f4b4.zip
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/netinet6/raw_ip6.c')
0 files changed, 0 insertions, 0 deletions