Documentation ¶
Index ¶
- Constants
- Variables
- func AddGateWay(dst, gateway, name string) (err error)
- func AddIP(name, ip string) (err error)
- func CreateTap(name string) (err error)
- func DelTap(name string) (err error)
- func GetHardwareAddr(name string) (string, error)
- func NewNetDev(c *Config) (fd int, err error)
- func SetLinkUp(name string) (err error)
- func SetRoute(name, cidr string) (err error)
- type Config
Constants ¶
View Source
const ( TUN = 1 TAP = 2 )
Variables ¶
View Source
var (
ErrDeviceMode = errors.New("unsupport device mode")
)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.