Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// NativeTun is ...
*tun.NativeTun
// Namt is ...
Name string
// MTU is ...
MTU int
// Conf4 is ...
Conf4 struct {
// Addr is ...
Addr [4]byte
// Mask is ...
Mask [4]byte
// Gateway is ...
Gateway [4]byte
}
// Conf6 is ...
Conf6 struct {
// Addr is ...
Addr [16]byte
// Mask is ...
Mask [16]byte
// Gateway is ...
Gateway [16]byte
}
}
Device is ...
func NewDeviceWithMTU ¶
NewDeviceWithMTU is ...
func NewUnmonitoredDeviceFromFD ¶
NewUnmonitoredDeviceFromFD is ...
func (*Device) AddRouteEntry ¶
AddRouteEntry is ... 198.18.0.0/16 8.8.8.8/32
func (*Device) SetInterfaceAddress ¶
SetInterfaceAddress is ... 192.168.1.11/24 fe80:08ef:ae86:68ef::11/64
Click to show internal directories.
Click to hide internal directories.