package netlink
import "github.com/docker/docker/pkg/netlink"
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 AddToBridge(iface, master *net.Interface) error
- func CreateBridge(name string, setMacAddr bool) 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
Variables ¶
var ( ErrWrongSockType = errors.New("Wrong socket type") ErrShortResponse = errors.New("Got short response from netlink") )
Functions ¶
func AddDefaultGw ¶
func AddToBridge ¶
func CreateBridge ¶
func NetworkChangeName ¶
func NetworkCreateVethPair ¶
func NetworkLinkAdd ¶
func NetworkLinkAddIp ¶
func NetworkLinkDown ¶
func NetworkLinkUp ¶
func NetworkSetMTU ¶
func NetworkSetMaster ¶
func NetworkSetNsFd ¶
func NetworkSetNsPid ¶
Types ¶
type Route ¶
A Route is a subnet associated with the interface to reach it.
func NetworkGetRoutes ¶
Source Files ¶
netlink.go netlink_unsupported.go
- Version
- v0.11.1
- Published
- May 8, 2014
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 2 minutes ago –
Tools for package owners.