aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-04-15version: bumpv0.0.20210415Jason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-04-15if_wg: set multicast flagJason A. Donenfeld1-1/+1
In order to send to ff00::/8 addresses, even over unicast, the interface needs the multicast flag enabled. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-04-15if_wg: do not allow ioctl to race with clone_destroyJason A. Donenfeld1-10/+16
This fixes the crash from: bash -c 'while true; do ifconfig wg0 create; ifconfig wg0 destroy; done& while true; do wg show wg0 > /dev/null 2>&1; done& wait' Since we're setting ifp to NULL here, we also have to account for multicast v6 packets being transmitted during destroy, which can be triggered by: ifconfig wg0 create ifconfig wg0 inet6 fe80::1234/120 ifconfig wg0 up route add -inet6 ff02::1:0/120 -iface wg0 ifconfig wg0 destroy These are unfixed upstream bug that we're working around. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-04-15if_wg: don't check return value of WAITOKJason A. Donenfeld1-4/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-04-13if_wg: allow debugging with `ifconfig wg0 debug`Jason A. Donenfeld1-8/+2
This is better than a custom sysctl. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-04-13if_wg: remove peer marshalling from get requestJason A. Donenfeld2-312/+94
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-04-12version: bumpv0.0.20210412Jason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-04-12if_wg: set user cookie and fib through proper sockoptsJason A. Donenfeld1-20/+44
By taking shortcuts we were circumventing important hooks. Reported-by: Frank Behrens <frank@harz.behrens.de> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>