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, device string) error
- func AddRoute(destination, source, gateway, device string) error
- func AddToBridge(iface, master *net.Interface) error
- func CreateBridge(name string, setMacAddr bool) error
- func DeleteBridge(name string) error
- func NetworkChangeName(iface *net.Interface, newName string) error
- func NetworkCreateVethPair(name1, name2 string, txQueueLen int) error
- func NetworkLinkAdd(name string, linkType string) error
- func NetworkLinkAddIp(iface *net.Interface, ip net.IP, ipNet *net.IPNet) error
- func NetworkLinkDel(name string) error
- func NetworkLinkDelIp(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
- func NetworkSetTxQueueLen(iface *net.Interface, txQueueLen int) error
- type IfAddr
- type Route
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NetworkLinkAddIp ¶
func NetworkLinkDelIp ¶
Types ¶
type IfAddr ¶
An IfAddr defines IP network settings for a given network interface
Source Files
¶
- netlink.go
- netlink_linux_notarm.go
- netlink_unsupported.go
Click to show internal directories.
Click to hide internal directories.