Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomMac ¶
func GenerateRandomMac() tcpip.LinkAddress
GenerateRandomMac generates a random. locally-administered MAC address.
func IpToAddress ¶
IpToAddress converts IP to tcpip.Address, ignoring the protocol.
func IpToAddressAndProto ¶
ipToAddressAndProto converts IP to tcpip.Address and a protocol number.
Note: don't use 'len(ip)' to determine IP version because length is always 16.
func NewTapLink ¶
func NewTapLink(tapName string, addr tcpip.LinkAddress) tcpip.LinkEndpointID
func NewTunLink ¶
func NewTunLink(tunName string) tcpip.LinkEndpointID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.