]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
tun: freebsd: work around numerous kernel panics on shutdown
authorJason A. Donenfeld <Jason@zx2c4.com>
Sat, 20 Apr 2019 02:29:07 +0000 (11:29 +0900)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 23 Apr 2019 09:00:23 +0000 (18:00 +0900)
commitbb42ec7d185ab5f5cd3867ac1258edff86b7f307
treeee7760b2de78064f0d471e61145e7a93d1c5d35c
parentf1dc167901aeba499cbed20e7134009702026020
tun: freebsd: work around numerous kernel panics on shutdown

There are numerous race conditions. But even this will crash it:

while true; do ifconfig tun0 create; ifconfig tun0 destroy; done

It seems like LLv6 is related, which we're not using anyway, so
explicitly disable it on the interface.
tun/tun_freebsd.go