Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v0.2.0
Option defines a TUN device modifier option.
func Address ¶ added in v0.2.0
Address sets the local address and subnet for an interface. On MacOS devices use this function to set the Src Address for an interface and use DestAddress to set the destination ip.
func DestAddress ¶ added in v0.2.0
DestAddress sets the destination address for a point-to-point interface. Only use this option on MacOS devices.
func RemoveRoute ¶ added in v0.8.6
RemoveRoute removes an entry from the system route table
type TUN ¶ added in v0.2.0
TUN is a struct containing the fields necessary to configure a system TUN device. Access the internal TUN device through TUN.Iface
Click to show internal directories.
Click to hide internal directories.