Versions in this module Expand all Collapse all v1 v1.3.0-alpha.2 Jun 21, 2016 v1.3.0-alpha.1 May 25, 2016 v1.3.0-alpha.0 Apr 25, 2016 v1.2.1 Jul 14, 2016 v1.2.0 May 25, 2016 v1.2.0-rc2 Apr 23, 2016 v1.2.0-rc1 Apr 21, 2016 v1.1.6 Apr 5, 2016 v1.1.5 Mar 29, 2016 v1.1.4 Mar 14, 2016 v1.1.3 Feb 17, 2016 Changes in this version + const FAMILY_ALL + const FAMILY_V4 + const FAMILY_V6 + const HANDLE_INGRESS + const HANDLE_NONE + const HANDLE_ROOT + 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 + const PRIORITY_MAP_LEN + const TIME_UNITS_PER_SEC — 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 ClockFactor() float64 — linux/amd64 + func FilterAdd(filter Filter) error — linux/amd64 + func FilterDel(filter Filter) error — linux/amd64 + func HandleStr(handle uint32) string + 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 MajorMinor(handle uint32) (uint16, uint16) + func MakeHandle(major, minor uint16) uint32 + 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 QdiscAdd(qdisc Qdisc) error — linux/amd64 + func QdiscDel(qdisc Qdisc) error — linux/amd64 + 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 TickInUsec() float64 — linux/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 (a 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 Filter interface + Attrs func() *FilterAttrs + Type func() string + func FilterList(link Link, parent uint32) ([]Filter, error) + type FilterAttrs struct + Handle uint32 + LinkIndex int + Parent uint32 + Priority uint16 + Protocol uint16 + func (q FilterAttrs) String() string + type GenericFilter struct + FilterType string + func (filter *GenericFilter) Attrs() *FilterAttrs + func (filter *GenericFilter) Type() string + type GenericLink struct + LinkType string + func (generic *GenericLink) Attrs() *LinkAttrs + func (generic *GenericLink) Type() string + type GenericQdisc struct + QdiscType string + func (qdisc *GenericQdisc) Attrs() *QdiscAttrs + func (qdisc *GenericQdisc) 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 Ifb struct + func (ifb *Ifb) Attrs() *LinkAttrs + func (ifb *Ifb) Type() string + type Ingress struct + func (qdisc *Ingress) Attrs() *QdiscAttrs + func (qdisc *Ingress) Type() string + 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 int + func NewLinkAttrs() LinkAttrs + 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 Macvtap struct + func (macvtap Macvtap) Type() string + 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 PfifoFast struct + Bands uint8 + PriorityMap [PRIORITY_MAP_LEN]uint8 + func (qdisc *PfifoFast) Attrs() *QdiscAttrs + func (qdisc *PfifoFast) Type() string + type Prio struct + Bands uint8 + PriorityMap [PRIORITY_MAP_LEN]uint8 + func NewPrio(attrs QdiscAttrs) *Prio + func (qdisc *Prio) Attrs() *QdiscAttrs + func (qdisc *Prio) Type() string + 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 Qdisc interface + Attrs func() *QdiscAttrs + Type func() string + func QdiscList(link Link) ([]Qdisc, error) + type QdiscAttrs struct + Handle uint32 + LinkIndex int + Parent uint32 + Refcnt uint32 + func (q QdiscAttrs) 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 Tbf struct + Buffer uint32 + Limit uint32 + Rate uint64 + func (qdisc *Tbf) Attrs() *QdiscAttrs + func (qdisc *Tbf) Type() string + type U32 struct + RedirIndex int + func (filter *U32) Attrs() *FilterAttrs + func (filter *U32) Type() string + 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 + GBP bool + 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