Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func AddRoute(device tun.Device, to *net.IPNet, via net.IP) error func DelRoute(device tun.Device, to *net.IPNet, via net.IP) error func SetupLink(device tun.Device, cidr string) error type Info func Show() Info Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AddRoute ¶ added in v0.0.2 func AddRoute(device tun.Device, to *net.IPNet, via net.IP) error func DelRoute ¶ added in v0.0.2 func DelRoute(device tun.Device, to *net.IPNet, via net.IP) error func SetupLink ¶ func SetupLink(device tun.Device, cidr string) error Types ¶ type Info ¶ added in v0.0.2 type Info struct { IPv4 string IPv6 string } func Show ¶ added in v0.0.2 func Show() Info Source Files ¶ View all Source files link.go link_linux.go Click to show internal directories. Click to hide internal directories.