nl

package
v0.0.0-...-92a250d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

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
}

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL