Versions in this module Expand all Collapse all v0 v0.2.1 Mar 20, 2015 v0.2.0 Mar 20, 2015 v0.2.0-rc3 Mar 19, 2015 v0.2.0-rc2 Mar 19, 2015 v0.2.0-rc1 Mar 19, 2015 v0.1.2 Mar 7, 2015 Changes in this version + const FAMILY_ALL + const FAMILY_V4 + const FAMILY_V6 + const NDA_CACHEINFO — linux/amd64 + const NDA_DST — linux/amd64 + const NDA_IFINDEX — linux/amd64 + const NDA_LLADDR — linux/amd64 + const NDA_MAX — linux/amd64 + const NDA_PORT — linux/amd64 + const NDA_PROBES — linux/amd64 + const NDA_UNSPEC — linux/amd64 + const NDA_VLAN — linux/amd64 + const NDA_VNI — linux/amd64 + const NTF_MASTER — linux/amd64 + const NTF_PROXY — linux/amd64 + const NTF_ROUTER — linux/amd64 + const NTF_SELF — linux/amd64 + const NTF_USE — linux/amd64 + const NUD_DELAY — linux/amd64 + const NUD_FAILED — linux/amd64 + const NUD_INCOMPLETE — linux/amd64 + const NUD_NOARP — linux/amd64 + const NUD_NONE — linux/amd64 + const NUD_PERMANENT — linux/amd64 + const NUD_PROBE — linux/amd64 + const NUD_REACHABLE — linux/amd64 + const NUD_STALE — linux/amd64 + var ErrNotImplemented = errors.New("not implemented") — darwin/amd64, js/wasm, windows/amd64 + func AddrAdd(link *Link, addr *Addr) error — darwin/amd64, js/wasm, windows/amd64 + func AddrAdd(link Link, addr *Addr) error — linux/amd64 + func AddrDel(link *Link, addr *Addr) error — darwin/amd64, js/wasm, windows/amd64 + func AddrDel(link Link, addr *Addr) error — linux/amd64 + func LinkAdd(link *Link) error — darwin/amd64, js/wasm, windows/amd64 + func LinkAdd(link Link) error — linux/amd64 + func LinkDel(link *Link) error — darwin/amd64, js/wasm, windows/amd64 + func LinkDel(link Link) error — linux/amd64 + func LinkSetDown(link *Link) error — darwin/amd64, js/wasm, windows/amd64 + func LinkSetDown(link Link) error — linux/amd64 + func LinkSetFastLeave(link Link, mode bool) error — linux/amd64 + func LinkSetFlood(link Link, mode bool) error — linux/amd64 + func LinkSetGuard(link Link, mode bool) error — linux/amd64 + func LinkSetHairpin(link Link, mode bool) error — linux/amd64 + func LinkSetHardwareAddr(link Link, hwaddr net.HardwareAddr) error — linux/amd64 + func LinkSetLearning(link Link, mode bool) error — linux/amd64 + func LinkSetMTU(link *Link, mtu int) error — darwin/amd64, js/wasm, windows/amd64 + func LinkSetMTU(link Link, mtu int) error — linux/amd64 + func LinkSetMaster(link *Link, master *Link) error — darwin/amd64, js/wasm, windows/amd64 + func LinkSetMaster(link Link, master *Bridge) error — linux/amd64 + func LinkSetMasterByIndex(link Link, masterIndex int) error — linux/amd64 + func LinkSetName(link Link, name string) error — linux/amd64 + func LinkSetNsFd(link *Link, fd int) error — darwin/amd64, js/wasm, windows/amd64 + func LinkSetNsFd(link Link, fd int) error — linux/amd64 + func LinkSetNsPid(link *Link, nspid int) error — darwin/amd64, js/wasm, windows/amd64 + func LinkSetNsPid(link Link, nspid int) error — linux/amd64 + func LinkSetRootBlock(link Link, mode bool) error — linux/amd64 + func LinkSetUp(link *Link) error — darwin/amd64, js/wasm, windows/amd64 + func LinkSetUp(link Link) error — linux/amd64 + func NeighAdd(neigh *Neigh) error + func NeighAppend(neigh *Neigh) error + func NeighDel(neigh *Neigh) error + func NeighDeserialize(m []byte) (*Ndmsg, *Neigh, error) — darwin/amd64, js/wasm, windows/amd64 + func NeighSet(neigh *Neigh) error + func NewIPNet(ip net.IP) *net.IPNet + func ParseIPNet(s string) (*net.IPNet, error) + func RouteAdd(route *Route) error + func RouteDel(route *Route) error + func SetFastLeave(link Link, mode bool) error — darwin/amd64, js/wasm, windows/amd64 + func SetFlood(link Link, mode bool) error — darwin/amd64, js/wasm, windows/amd64 + func SetGuard(link Link, mode bool) error — darwin/amd64, js/wasm, windows/amd64 + func SetHairpin(link Link, mode bool) error — darwin/amd64, js/wasm, windows/amd64 + func SetLearning(link Link, mode bool) error — darwin/amd64, js/wasm, windows/amd64 + func SetRootBlock(link Link, mode bool) error — darwin/amd64, js/wasm, windows/amd64 + func XfrmPolicyAdd(policy *XfrmPolicy) error + func XfrmPolicyDel(policy *XfrmPolicy) error + func XfrmStateAdd(policy *XfrmState) error — darwin/amd64, js/wasm, windows/amd64 + func XfrmStateAdd(state *XfrmState) error — linux/amd64 + func XfrmStateDel(policy *XfrmState) error — darwin/amd64, js/wasm, windows/amd64 + func XfrmStateDel(state *XfrmState) error — linux/amd64 + type Addr struct + Label string + func AddrList(link *Link, family int) ([]Addr, error) + func AddrList(link Link, family int) ([]Addr, error) + func ParseAddr(s string) (*Addr, error) + func (a Addr) Equal(x Addr) bool + func (addr Addr) String() string + type Bridge struct + func (bridge *Bridge) Attrs() *LinkAttrs + func (bridge *Bridge) Type() string + type Device struct + func (device *Device) Attrs() *LinkAttrs + func (device *Device) Type() string + type Dir uint8 + const XFRM_DIR_FWD + const XFRM_DIR_IN + const XFRM_DIR_OUT + const XFRM_SOCKET_FWD + const XFRM_SOCKET_IN + const XFRM_SOCKET_OUT + func (d Dir) String() string + type Dummy struct + func (dummy *Dummy) Attrs() *LinkAttrs + func (dummy *Dummy) Type() string + type EncapType uint8 + const XFRM_ENCAP_ESPINUDP + const XFRM_ENCAP_ESPINUDP_NONIKE + func (e EncapType) String() string + type Generic struct + LinkType string + func (generic *Generic) Attrs() *LinkAttrs + func (generic *Generic) Type() string + type IPVlan struct + Mode IPVlanMode + func (ipvlan *IPVlan) Attrs() *LinkAttrs + func (ipvlan *IPVlan) Type() string + type IPVlanMode uint16 + const IPVLAN_MODE_L2 + const IPVLAN_MODE_L3 + const IPVLAN_MODE_MAX + type Link interface + Attrs func() *LinkAttrs + Type func() string + func LinkByIndex(index int) (Link, error) + func LinkByName(name string) (Link, error) + func LinkList() ([]Link, error) + type LinkAttrs struct + Flags net.Flags + HardwareAddr net.HardwareAddr + Index int + MTU int + MasterIndex int + Name string + Namespace interface{} + ParentIndex int + TxQLen uint32 + type Macvlan struct + Mode MacvlanMode + func (macvlan *Macvlan) Attrs() *LinkAttrs + func (macvlan *Macvlan) Type() string + type MacvlanMode uint16 + const MACVLAN_MODE_BRIDGE + const MACVLAN_MODE_DEFAULT + const MACVLAN_MODE_PASSTHRU + const MACVLAN_MODE_PRIVATE + const MACVLAN_MODE_SOURCE + const MACVLAN_MODE_VEPA + type Mode uint8 + const XFRM_MODE_BEET + const XFRM_MODE_IN_TRIGGER + const XFRM_MODE_MAX + const XFRM_MODE_ROUTEOPTIMIZATION + const XFRM_MODE_TRANSPORT + const XFRM_MODE_TUNNEL + func (m Mode) String() string + type Ndmsg struct — linux/amd64 + Family uint8 + Flags uint8 + Index uint32 + State uint16 + Type uint8 + func (msg *Ndmsg) Len() int + func (msg *Ndmsg) Serialize() []byte + type Neigh struct + Family int + Flags int + HardwareAddr net.HardwareAddr + IP net.IP + LinkIndex int + State int + Type int + func NeighDeserialize(m []byte) (*Neigh, error) + func NeighList(linkIndex, family int) ([]Neigh, error) + func (neigh *Neigh) String() string + type NsFd int + type NsPid int + type Protinfo struct + FastLeave bool + Flood bool + Guard bool + Hairpin bool + Learning bool + RootBlock bool + func LinkGetProtinfo(link Link) (Protinfo, error) + func (prot *Protinfo) String() string + type Proto uint8 + const XFRM_PROTO_AH + const XFRM_PROTO_COMP + const XFRM_PROTO_ESP + const XFRM_PROTO_HAO + const XFRM_PROTO_IPSEC_ANY + const XFRM_PROTO_ROUTE2 + func (p Proto) String() string + type Route struct + Dst *net.IPNet + Gw net.IP + LinkIndex int + Scope Scope + Src net.IP + func RouteGet(destination net.IP) ([]Route, error) + func RouteList(link *Link, family int) ([]Route, error) + func RouteList(link Link, family int) ([]Route, error) + func (r Route) String() string + type Scope uint8 + const SCOPE_HOST + const SCOPE_LINK + const SCOPE_NOWHERE + const SCOPE_SITE + const SCOPE_UNIVERSE + type Veth struct + PeerName string + func (veth *Veth) Attrs() *LinkAttrs + func (veth *Veth) Type() string + type Vlan struct + VlanId int + func (vlan *Vlan) Attrs() *LinkAttrs + func (vlan *Vlan) Type() string + type Vxlan struct + Age int + Group net.IP + L2miss bool + L3miss bool + Learning bool + Limit int + NoAge bool + Port int + PortHigh int + PortLow int + Proxy bool + RSC bool + SrcAddr net.IP + TOS int + TTL int + VtepDevIndex int + VxlanId int + func (vxlan *Vxlan) Attrs() *LinkAttrs + func (vxlan *Vxlan) Type() string + type XfrmPolicy struct + Dir Dir + Dst *net.IPNet + Index int + Priority int + Src *net.IPNet + Tmpls []XfrmPolicyTmpl + func XfrmPolicyList(family int) ([]XfrmPolicy, error) + type XfrmPolicyTmpl struct + Dst net.IP + Mode Mode + Proto Proto + Reqid int + Src net.IP + type XfrmState struct + Auth *XfrmStateAlgo + Crypt *XfrmStateAlgo + Dst net.IP + Encap *XfrmStateEncap + Mode Mode + Proto Proto + ReplayWindow int + Reqid int + Spi int + Src net.IP + func XfrmStateList(family int) ([]XfrmState, error) + type XfrmStateAlgo struct + Key []byte + Name string + TruncateLen int + type XfrmStateEncap struct + DstPort int + OriginalAddress net.IP + SrcPort int + Type EncapType