5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 23:41:35 +00:00
This commit is contained in:
Arceliar 2018-03-03 11:49:24 -06:00
parent 55ee8f1afa
commit a367f2ca17
2 changed files with 6 additions and 6 deletions

View File

@ -28,9 +28,9 @@ type tunDevice struct {
} }
type tunDefaultParameters struct { type tunDefaultParameters struct {
maximumIfMTU int maximumIfMTU int
defaultIfMTU int defaultIfMTU int
defaultIfName string defaultIfName string
defaultIfTAPMode bool defaultIfTAPMode bool
} }

View File

@ -29,10 +29,10 @@ func getDefaults() tunDefaultParameters {
// different values // different values
type tuninfo struct { type tuninfo struct {
tun_mtu uint16 tun_mtu uint16
tun_type uint32 tun_type uint32
tun_flags uint32 tun_flags uint32
tun_dummy uint16 tun_dummy uint16
} }
const TUNSIFINFO = (0x80000000) | ((12 & 0x1fff) << 16) | uint32(byte('t'))<<8 | 91 const TUNSIFINFO = (0x80000000) | ((12 & 0x1fff) << 16) | uint32(byte('t'))<<8 | 91