Versions in this module Expand all Collapse all v0 v0.1.1 Mar 15, 2021 Changes in this version + const TAP — linux/amd64 + const TUN — linux/amd64 + var ErrDeviceMode = errors.New("unsupport device mode") — linux/amd64 + func AddIP(name, ip string) (err error) — linux/amd64 + func GetHardwareAddr(name string) (string, error) — linux/amd64 + func NewNetDev(c *Config) (fd int, err error) — linux/amd64 + func SetLinkUp(name string) (err error) — linux/amd64 + func SetRoute(name, cidr string) (err error) — linux/amd64 + type Config struct — linux/amd64 + Mode int + Name string