diff --git a/src/yggdrasil/tun.go b/src/yggdrasil/tun.go index db65338d..ec883454 100644 --- a/src/yggdrasil/tun.go +++ b/src/yggdrasil/tun.go @@ -5,8 +5,6 @@ package yggdrasil import "os" import ethernet "github.com/songgao/packets/ethernet" -const DEFAULT_MTU = 65535 - const IPv6_HEADER_LENGTH = 40 const ETHER_HEADER_LENGTH = 14 diff --git a/src/yggdrasil/tun_darwin.go b/src/yggdrasil/tun_darwin.go index 9a0c7127..f16ed7c6 100644 --- a/src/yggdrasil/tun_darwin.go +++ b/src/yggdrasil/tun_darwin.go @@ -13,7 +13,7 @@ import water "github.com/neilalexander/water" func getDefaults() tunDefaultParameters { return tunDefaultParameters{ maximumIfMTU: 65535, - defaultIfMTU: DEFAULT_MTU, + defaultIfMTU: 65535, defaultIfName: "auto", defaultIfTAPMode: false, } diff --git a/src/yggdrasil/tun_linux.go b/src/yggdrasil/tun_linux.go index be231719..09206a5f 100644 --- a/src/yggdrasil/tun_linux.go +++ b/src/yggdrasil/tun_linux.go @@ -12,7 +12,7 @@ import water "github.com/neilalexander/water" func getDefaults() tunDefaultParameters { return tunDefaultParameters{ maximumIfMTU: 65535, - defaultIfMTU: DEFAULT_MTU, + defaultIfMTU: 65535, defaultIfName: "auto", defaultIfTAPMode: false, } diff --git a/src/yggdrasil/tun_openbsd.go b/src/yggdrasil/tun_openbsd.go index 24f0f709..dbdf3ea2 100644 --- a/src/yggdrasil/tun_openbsd.go +++ b/src/yggdrasil/tun_openbsd.go @@ -18,7 +18,7 @@ import water "github.com/neilalexander/water" func getDefaults() tunDefaultParameters { return tunDefaultParameters{ maximumIfMTU: 16384, - defaultIfMTU: DEFAULT_MTU, + defaultIfMTU: 16384, defaultIfName: "/dev/tap0", defaultIfTAPMode: true, } diff --git a/src/yggdrasil/tun_other.go b/src/yggdrasil/tun_other.go index 0f4ded6f..ddaa09c0 100644 --- a/src/yggdrasil/tun_other.go +++ b/src/yggdrasil/tun_other.go @@ -10,7 +10,7 @@ import water "github.com/neilalexander/water" func getDefaults() tunDefaultParameters { return tunDefaultParameters{ maximumIfMTU: 65535, - defaultIfMTU: DEFAULT_MTU, + defaultIfMTU: 65535, defaultIfName: "none", defaultIfTAPMode: false, } diff --git a/src/yggdrasil/tun_windows.go b/src/yggdrasil/tun_windows.go index d23b201e..80890f89 100644 --- a/src/yggdrasil/tun_windows.go +++ b/src/yggdrasil/tun_windows.go @@ -10,7 +10,7 @@ import "fmt" func getDefaults() tunDefaultParameters { return tunDefaultParameters{ maximumIfMTU: 65535, - defaultIfMTU: DEFAULT_MTU, + defaultIfMTU: 65535, defaultIfName: "auto", defaultIfTAPMode: true, }