yggdrasil-go/src/yggdrasil
Neil Alexander 166d25619d Attempt to support NetBSD
This code actually consolidates a lot of the BSD code together, and even setting the interface MTU with SIOCSIFMTU seems to work fine.

What doesn't work though is setting the interface address using SIOCSIFADDR_IN6, which I attempted to plagiarise from the Darwin code.

As a fallback, ifconfig is used, which solves the problem enough to get it working.
2018-03-04 23:47:01 +00:00
..
address.go update comments, mostly TODO/FIXME notes 2018-01-26 17:30:51 -06:00
admin.go Allow sane defaults on setTunTap 2018-02-28 15:27:58 +00:00
core.go update comments, mostly TODO/FIXME notes 2018-01-26 17:30:51 -06:00
crypto.go Mostly working PMTU discovery when going over UDP links 2018-02-25 20:24:36 -06:00
debug.go panic if tun.write or tun.read returns an error and was launched from debug.go, since there's no way to recover in these scenarios 2018-03-03 13:56:26 -06:00
dht.go Add a rumor mill to throttle dht maintenance traffic 2018-02-17 17:10:08 -06:00
icmpv6.go Fix checksums and packet buffers, sends ICMPv6 Packet Too Big messages successfully now 2018-02-15 13:38:54 +00:00
peer.go cleanup 2018-02-23 13:04:52 -06:00
router.go don't drop send/recv traffic going through the crypto workers, just block until they're free (TODO run further tests to make sure this doesn't cycle/deadlock) 2018-02-26 18:12:28 -06:00
search.go update comments, mostly TODO/FIXME notes 2018-01-26 17:30:51 -06:00
session.go Mostly working PMTU discovery when going over UDP links 2018-02-25 20:24:36 -06:00
signature.go Run gofmt -s -w . 2018-01-04 22:37:51 +00:00
switch.go ignore root tstamp updates if we just updated, to throttle the rate at which updates (and new signatures) can propagate 2018-02-17 23:57:24 -06:00
tcp.go trying to debug UDP+large MTU issues 2018-02-20 17:31:12 -06:00
tun_bsd.go Attempt to support NetBSD 2018-03-04 23:47:01 +00:00
tun_darwin.go Add FreeBSD support in TAP mode 2018-03-04 16:24:50 +00:00
tun_freebsd.go Attempt to support NetBSD 2018-03-04 23:47:01 +00:00
tun_linux.go Add FreeBSD support in TAP mode 2018-03-04 16:24:50 +00:00
tun_netbsd.go Attempt to support NetBSD 2018-03-04 23:47:01 +00:00
tun_openbsd.go Attempt to support NetBSD 2018-03-04 23:47:01 +00:00
tun_other.go Attempt to support NetBSD 2018-03-04 23:47:01 +00:00
tun_windows.go Add FreeBSD support in TAP mode 2018-03-04 16:24:50 +00:00
tun.go get the fd instead of depending on water to do it 2018-03-04 13:57:34 -06:00
udp.go Mostly working PMTU discovery when going over UDP links 2018-02-25 20:24:36 -06:00
util.go update comments, mostly TODO/FIXME notes 2018-01-26 17:30:51 -06:00
wire.go cleanup 2018-02-23 13:04:52 -06:00