Documentation ¶
Index ¶
Constants ¶
View Source
const FAMILY_V4 = netlink.FAMILY_V4
Variables ¶
View Source
var Netlink = &nl{}
Functions ¶
This section is empty.
Types ¶
type NLSocket ¶
type NLSocket interface { Receive() ([]syscall.NetlinkMessage, error) Close() }
type Netlinker ¶
type Netlinker interface { LinkAdd(link netlink.Link) error LinkDel(link netlink.Link) error LinkList() ([]netlink.Link, error) LinkSetUp(link netlink.Link) error LinkByName(name string) (netlink.Link, error) LinkSetNsFd(link netlink.Link, fd int) error AddrAdd(link netlink.Link, addr *netlink.Addr) error LinkSetMaster(slave netlink.Link, master *netlink.Bridge) error LinkByIndex(int) (netlink.Link, error) RouteAdd(*netlink.Route) error RouteList(netlink.Link, int) ([]netlink.Route, error) Subscribe(int, ...uint) (NLSocket, error) NeighDeserialize([]byte) (*netlink.Neigh, error) SetNeigh(*netlink.Neigh) error }
Click to show internal directories.
Click to hide internal directories.