diff --git a/src/yggdrasil/tun.go b/src/yggdrasil/tun.go index ec883454..bc14ae2b 100644 --- a/src/yggdrasil/tun.go +++ b/src/yggdrasil/tun.go @@ -28,9 +28,9 @@ type tunDevice struct { } type tunDefaultParameters struct { - maximumIfMTU int + maximumIfMTU int defaultIfMTU int - defaultIfName string + defaultIfName string defaultIfTAPMode bool } diff --git a/src/yggdrasil/tun_openbsd.go b/src/yggdrasil/tun_openbsd.go index dbdf3ea2..22db2065 100644 --- a/src/yggdrasil/tun_openbsd.go +++ b/src/yggdrasil/tun_openbsd.go @@ -29,10 +29,10 @@ func getDefaults() tunDefaultParameters { // different values type tuninfo struct { - tun_mtu uint16 - tun_type uint32 - tun_flags uint32 - tun_dummy uint16 + tun_mtu uint16 + tun_type uint32 + tun_flags uint32 + tun_dummy uint16 } const TUNSIFINFO = (0x80000000) | ((12 & 0x1fff) << 16) | uint32(byte('t'))<<8 | 91