Documentation ¶
Overview ¶
Packet netlink provide access to low level Netlink sockets and messages.
Actual implementations are in: netlink_linux.go netlink_darwin.go
Index ¶
- Variables
- func AddDefaultGw(ip net.IP) error
- func NetworkChangeName(iface *net.Interface, newName string) error
- func NetworkCreateVethPair(name1, name2 string) error
- func NetworkLinkAdd(name string, linkType string) error
- func NetworkLinkAddIp(iface *net.Interface, ip net.IP, ipNet *net.IPNet) error
- func NetworkLinkDown(iface *net.Interface) error
- func NetworkLinkUp(iface *net.Interface) error
- func NetworkSetMTU(iface *net.Interface, mtu int) error
- func NetworkSetMaster(iface, master *net.Interface) error
- func NetworkSetNsFd(iface *net.Interface, fd int) error
- func NetworkSetNsPid(iface *net.Interface, nspid int) error
- type Route
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWrongSockType = errors.New("Wrong socket type") ErrShortResponse = errors.New("Got short response from netlink") )
View Source
var (
ErrNotImplemented = errors.New("not implemented")
)
Functions ¶
func AddDefaultGw ¶
func NetworkChangeName ¶ added in v0.9.0
func NetworkCreateVethPair ¶ added in v0.9.0
func NetworkLinkAdd ¶
func NetworkLinkAddIp ¶
func NetworkLinkDown ¶ added in v0.9.0
func NetworkLinkUp ¶
func NetworkSetMaster ¶ added in v0.9.0
Types ¶
Click to show internal directories.
Click to hide internal directories.