wireguard-go/tun
Simon Rozman b7025b5627 wintun: Add TUN device locking
In case reading from TUN device detected TUN device was closed, it
closed the file handle and set tunFile to nil. The tunFile is
automatically reopened on retry, but... If another packet comes in the
WireGuard calls Write() method. With tunFile set to nil, this will
cause access violation.

Therefore, locking was introduced.

Signed-off-by: Simon Rozman <simon@rozman.si>
2019-02-20 13:12:08 +01:00
..
wintun Change package path 2019-02-18 05:11:39 +01:00
tun.go Update copyright 2019-02-05 12:59:42 +01:00
tun_darwin.go Change package path 2019-02-18 05:11:39 +01:00
tun_freebsd.go Change package path 2019-02-18 05:11:39 +01:00
tun_linux.go Change package path 2019-02-18 05:11:39 +01:00
tun_openbsd.go Change package path 2019-02-18 05:11:39 +01:00
tun_windows.go wintun: Add TUN device locking 2019-02-20 13:12:08 +01:00