aboutsummaryrefslogtreecommitdiffstats
path: root/device
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@tailscale.com>2019-11-06 00:28:02 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2020-05-02 01:46:42 -0600
commitc76b8184663e4b80ff8c26aafe9ec0ec91ff9116 (patch)
tree67c435580a1cc71d0bea88cc82f8e6658e5714ea /device
parentdevice: give handshake state a type (diff)
downloadwireguard-go-c76b8184663e4b80ff8c26aafe9ec0ec91ff9116.tar.xz
wireguard-go-c76b8184663e4b80ff8c26aafe9ec0ec91ff9116.zip
tun: NetlinkListener: don't send EventDown before sending EventUp
This works around a startup race condition when competing with HackListener, which is trying to do the same job. If HackListener detects that the tundev is running while there is still an event in the netlink queue that says it isn't running, then the device receives a string of events like EventUp (HackListener) EventDown (NetlinkListener) EventUp (NetlinkListener) Unfortunately, after the first EventDown, the device stops itself, thinking incorrectly that the administrator has downed its tundev. The device is ignoring the initial EventDown anyway, so just don't emit it. Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
Diffstat (limited to 'device')
0 files changed, 0 insertions, 0 deletions