Commit graph

9 commits

Author SHA1 Message Date
snow flurry 3a7f41792c Remove extraneous error checking
No reason to run TUNGIFHEAD, there's no fail condition in TUNSIFHEAD.
2022-03-21 20:00:27 -07:00
snow flurry 515908773f Further "rebase" tun_netbsd against tun_openbsd
Cleaning out some stuff from the older version of wireguard-go.
2022-03-21 19:58:54 -07:00
snow flurry 470f2f0248 Cleanup error handling 2022-03-21 19:40:24 -07:00
snow flurry 5181a06304 fix whitespace mismatch 2022-03-21 19:37:56 -07:00
snow flurry 0d9a2f9d68 sigh 2022-02-18 19:19:43 -08:00
snow flurry ab634a065c tun_netbsd: compile fix 2022-02-18 19:19:04 -08:00
snow flurry 5657c3c1e8 tun_netbsd: update to follow tun_openbsd changes
Most of tun_netbsd is from tun_openbsd with some small changes, so we
should follow the changes made in tun_openbsd.
2022-02-18 19:15:16 -08:00
snow flurry ff49dc80a3 tun_netbsd: support unpatched kernels for IFHEAD
This previously assumed a user's kernel was patched a la
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=55463, making
it effectively useless for most people. Since we know IFHEAD will always
be one of 0 (false) or something that isn't 0 (true), we can generalize
things a bit more.

Suggestion provided by artemis
https://artemis.sh/2022/02/16/tailscale-on-netbsd-proof-of-concept.html
2022-02-18 19:14:23 -08:00
snow c644c61a8e Add support for NetBSD tun(4) interface 2022-02-18 18:40:27 -08:00