Versions in this module Expand all Collapse all v0 v0.3.0 Apr 26, 2016 Changes in this version + const BOND_ACTIVE_SLAVE_MASK + const BOND_AD_SELECT_MASK + const BOND_ALL_SLAVES_ACTIVE_MASK + const BOND_ARP_ALL_TARGETS_MASK + const BOND_ARP_INTERVAL_MASK + const BOND_ARP_VALIDATE_MASK + const BOND_DOWNDELAY_MASK + const BOND_FAIL_OVER_MAC_MASK + const BOND_LACP_RATE_MASK + const BOND_LP_INTERVAL_MASK + const BOND_MIIMON_MASK + const BOND_MIN_LINKS_MASK + const BOND_MODE_MASK + const BOND_NUM_PEER_NOTIF_MASK + const BOND_PACKETS_PER_SLAVE_MASK + const BOND_PRIMARY_MASK + const BOND_PRIMARY_RESELECT_MASK + const BOND_RESEND_IGMP_MASK + const BOND_UPDELAY_MASK + const BOND_USE_CARRIER_MASK + const BOND_XMIT_HASH_POLICY_MASK + const FAMILY_ALL + const FAMILY_V4 + const FAMILY_V6 + const HANDLE_CLSACT + const HANDLE_INGRESS + const HANDLE_MIN_EGRESS + const HANDLE_MIN_INGRESS + const HANDLE_NONE + const HANDLE_ROOT + const IFA_FLAGS — linux/amd64 + const IFNAMSIZ — linux/amd64 + 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 RT_FILTER_DST — linux/amd64 + const RT_FILTER_GW — linux/amd64 + const RT_FILTER_IIF — linux/amd64 + const RT_FILTER_OIF — linux/amd64 + const RT_FILTER_PROTOCOL — linux/amd64 + const RT_FILTER_SCOPE — linux/amd64 + const RT_FILTER_SRC — linux/amd64 + const RT_FILTER_TABLE — linux/amd64 + const RT_FILTER_TOS — linux/amd64 + const RT_FILTER_TYPE — linux/amd64 + const SizeOfIfReq — linux/amd64 + const TIME_UNITS_PER_SEC — linux/amd64 + var ErrNotImplemented = errors.New("not implemented") — darwin/amd64, js/wasm, windows/amd64 + var StringToBondLacpRateMap = map[string]BondLacpRate + var StringToBondModeMap = map[string]BondMode + var StringToBondXmitHashPolicyMap = map[string]BondXmitHashPolicy + 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 AdjustSize(sz uint, mpu uint, linklayer int) uint — linux/amd64 + func AlignToAtm(size uint) uint — linux/amd64 + func CalcRtable(rate *nl.TcRateSpec, rtab [256]uint32, cell_log int, mtu uint32, linklayer int) int — linux/amd64 + func ClassAdd(class Class) error — linux/amd64 + func ClassChange(class Class) error — linux/amd64 + func ClassDel(class Class) error — linux/amd64 + func ClassReplace(class Class) error — linux/amd64 + func ClockFactor() float64 — linux/amd64 + func DeserializeRtab(b []byte) [256]uint32 — linux/amd64 + func FilterAdd(filter Filter) error — linux/amd64 + func FilterDel(filter Filter) error — linux/amd64 + func HandleStr(handle uint32) string + func Hz() float64 — 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 LinkSetAlias(link Link, name string) 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 LinkSetNoMaster(link Link) 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 LinkSetVfHardwareAddr(link Link, vf int, hwaddr net.HardwareAddr) error — linux/amd64 + func LinkSetVfVlan(link Link, vf, vlan int) error — linux/amd64 + func LinkSubscribe(ch chan<- LinkUpdate, done <-chan struct{}) 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 Percentage2u32(percentage float32) uint32 + func QdiscAdd(qdisc Qdisc) error — linux/amd64 + func QdiscChange(qdisc Qdisc) error — linux/amd64 + func QdiscDel(qdisc Qdisc) error — linux/amd64 + func QdiscReplace(qdisc Qdisc) error — linux/amd64 + func RouteAdd(route *Route) error + func RouteDel(route *Route) error + func RouteSubscribe(ch chan<- RouteUpdate, done <-chan struct{}) error — linux/amd64 + func RuleAdd(rule *Rule) error — linux/amd64 + func RuleDel(rule *Rule) error — linux/amd64 + func SerializeRtab(rtab [256]uint32) []byte — linux/amd64 + 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 + func Xmittime(rate uint64, size uint32) float64 — linux/amd64 + type Action interface + Type func() string + type Addr struct + Flags int + Label string + Scope int + 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 Bond struct + ActiveSlave int + AdInfo *BondAdInfo + AdSelect BondAdSelect + AllSlavesActive int + ArpAllTargets BondArpAllTargets + ArpInterval int + ArpIpTargets []net.IP + ArpValidate BondArpValidate + DownDelay int + FailOverMac BondFailOverMac + LacpRate BondLacpRate + LpInterval int + Miimon int + MinLinks int + Mode BondMode + NumPeerNotif int + PackersPerSlave int + Primary int + PrimaryReselect BondPrimaryReselect + ResendIgmp int + UpDelay int + UseCarrier int + XmitHashPolicy BondXmitHashPolicy + func NewLinkBond(atr LinkAttrs) *Bond + func (bond *Bond) Attrs() *LinkAttrs + func (bond *Bond) Type() string + type BondAdInfo struct + ActorKey int + AggregatorId int + NumPorts int + PartnerKey int + PartnerMac net.HardwareAddr + type BondAdSelect int + const BOND_AD_SELECT_BANDWIDTH + const BOND_AD_SELECT_COUNT + const BOND_AD_SELECT_STABLE + type BondArpAllTargets int + const BOND_ARP_ALL_TARGETS_ALL + const BOND_ARP_ALL_TARGETS_ANY + type BondArpValidate int + const BOND_ARP_VALIDATE_ACTIVE + const BOND_ARP_VALIDATE_ALL + const BOND_ARP_VALIDATE_BACKUP + const BOND_ARP_VALIDATE_NONE + type BondFailOverMac int + const BOND_FAIL_OVER_MAC_ACTIVE + const BOND_FAIL_OVER_MAC_FOLLOW + const BOND_FAIL_OVER_MAC_NONE + type BondLacpRate int + const BOND_LACP_RATE_FAST + const BOND_LACP_RATE_SLOW + const BOND_LACP_RATE_UNKNOWN + func StringToBondLacpRate(s string) BondLacpRate + func (b BondLacpRate) String() string + type BondMode int + const BOND_MODE_802_3AD + const BOND_MODE_ACTIVE_BACKUP + const BOND_MODE_BALANCE_ALB + const BOND_MODE_BALANCE_RR + const BOND_MODE_BALANCE_TLB + const BOND_MODE_BALANCE_XOR + const BOND_MODE_BROADCAST + const BOND_MODE_UNKNOWN + func StringToBondMode(s string) BondMode + func (b BondMode) String() string + type BondPrimaryReselect int + const BOND_PRIMARY_RESELECT_ALWAYS + const BOND_PRIMARY_RESELECT_BETTER + const BOND_PRIMARY_RESELECT_FAILURE + type BondXmitHashPolicy int + const BOND_XMIT_HASH_POLICY_ENCAP2_3 + const BOND_XMIT_HASH_POLICY_ENCAP3_4 + const BOND_XMIT_HASH_POLICY_LAYER2 + const BOND_XMIT_HASH_POLICY_LAYER2_3 + const BOND_XMIT_HASH_POLICY_LAYER3_4 + const BOND_XMIT_HASH_POLICY_UNKNOWN + func StringToBondXmitHashPolicy(s string) BondXmitHashPolicy + func (b BondXmitHashPolicy) String() string + type BpfAction struct + Fd int + Name string + func (action *BpfAction) Type() string + type BpfFilter struct + ClassId uint32 + DirectAction bool + Fd int + Name string + func (filter *BpfFilter) Attrs() *FilterAttrs + func (filter *BpfFilter) Type() string + type BpfProgType C.int — linux/amd64 + const BPF_PROG_TYPE_KPROBE + const BPF_PROG_TYPE_SCHED_ACT + const BPF_PROG_TYPE_SCHED_CLS + const BPF_PROG_TYPE_SOCKET_FILTER + const BPF_PROG_TYPE_UNSPEC + type Bridge struct + func (bridge *Bridge) Attrs() *LinkAttrs + func (bridge *Bridge) Type() string + type Class interface + Attrs func() *ClassAttrs + Type func() string + func ClassList(link Link, parent uint32) ([]Class, error) + type ClassAttrs struct + Handle uint32 + Leaf uint32 + LinkIndex int + Parent uint32 + func (q ClassAttrs) String() 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 FilterFwAttrs struct + Action int + AvRate uint32 + Buffer uint32 + ClassId uint32 + InDev string + Index uint32 + LinkLayer int + Mask uint32 + Mpu uint16 + Mtu uint32 + Overhead uint16 + PeakRate uint32 + Rate uint32 + type Fw struct + AvRate uint32 + ClassId uint32 + InDev string + Mask uint32 + Police nl.TcPolice + Ptab [256]uint32 + Rtab [256]uint32 + func NewFw(attrs FilterAttrs, fattrs FilterFwAttrs) (*Fw, error) + func (filter *Fw) Attrs() *FilterAttrs + func (filter *Fw) Type() string + type GenericClass struct + ClassType string + func (class *GenericClass) Attrs() *ClassAttrs + func (class *GenericClass) Type() 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 Gretap struct + EncapDport uint16 + EncapFlags uint16 + EncapSport uint16 + EncapType uint16 + IFlags uint16 + IKey uint32 + Link uint32 + Local net.IP + OFlags uint16 + OKey uint32 + PMtuDisc uint8 + Remote net.IP + Tos uint8 + Ttl uint8 + func (gretap *Gretap) Attrs() *LinkAttrs + func (gretap *Gretap) Type() string + type Htb struct + Debug uint32 + Defcls uint32 + DirectPkts uint32 + Rate2Quantum uint32 + Version uint32 + func NewHtb(attrs QdiscAttrs) *Htb + func (qdisc *Htb) Attrs() *QdiscAttrs + func (qdisc *Htb) Type() string + type HtbClass struct + Buffer uint32 + Cbuffer uint32 + Ceil uint64 + Level uint32 + Prio uint32 + Quantum uint32 + Rate uint64 + func NewHtbClass(attrs ClassAttrs, cattrs HtbClassAttrs) *HtbClass + func (class *HtbClass) Attrs() *ClassAttrs + func (class *HtbClass) Type() string + func (q HtbClass) String() string + type HtbClassAttrs struct + Buffer uint32 + Cbuffer uint32 + Ceil uint64 + Level uint32 + Prio uint32 + Quantum uint32 + Rate uint64 + func (q HtbClassAttrs) String() 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 LinkByAlias(alias string) (Link, error) + func LinkByIndex(index int) (Link, error) + func LinkByName(name string) (Link, error) + func LinkList() ([]Link, error) + type LinkAttrs struct + Alias string + Flags net.Flags + HardwareAddr net.HardwareAddr + Index int + MTU int + MasterIndex int + Name string + Namespace interface{} + ParentIndex int + TxQLen int + func NewLinkAttrs() LinkAttrs + type LinkUpdate struct — linux/amd64 + Header syscall.NlMsghdr + 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 MirredAction struct + func NewMirredAction(redirIndex int) *MirredAction + func (action *MirredAction) 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 Netem struct + CorruptCorr uint32 + CorruptProb uint32 + DelayCorr uint32 + Duplicate uint32 + DuplicateCorr uint32 + Gap uint32 + Jitter uint32 + Latency uint32 + Limit uint32 + Loss uint32 + LossCorr uint32 + ReorderCorr uint32 + ReorderProb uint32 + func NewNetem(attrs QdiscAttrs, nattrs NetemQdiscAttrs) *Netem + func (qdisc *Netem) Attrs() *QdiscAttrs + func (qdisc *Netem) Type() string + type NetemQdiscAttrs struct + CorruptCorr float32 + CorruptProb float32 + DelayCorr float32 + Duplicate float32 + DuplicateCorr float32 + Gap uint32 + Jitter uint32 + Latency uint32 + Limit uint32 + Loss float32 + LossCorr float32 + ReorderCorr float32 + ReorderProb float32 + func (q NetemQdiscAttrs) String() string + type NextHopFlag int + const FLAG_ONLINK + const FLAG_PERVASIVE + 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 + Flags int + Gw net.IP + ILinkIndex int + LinkIndex int + Priority int + Protocol int + Scope Scope + Src net.IP + Table int + Tos int + Type int + func RouteGet(destination net.IP) ([]Route, error) + func RouteList(link *Link, family int) ([]Route, error) + func RouteList(link Link, family int) ([]Route, error) + func RouteListFiltered(family int, filter *Route, filterMask uint64) ([]Route, error) + func (r *Route) ClearFlag(flag NextHopFlag) + func (r *Route) ListFlags() []string + func (r *Route) SetFlag(flag NextHopFlag) + func (r Route) String() string + type RouteUpdate struct + Type uint16 + type Rule struct + Dst *net.IPNet + Flow int + Goto int + IifName string + Mark int + Mask int + OifName string + Priority int + Src *net.IPNet + SuppressIfgroup int + SuppressPrefixlen int + Table int + TunID uint + func NewRule() *Rule + func RuleList(family int) ([]Rule, error) + func (r Rule) 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 Tuntap struct + Mode TuntapMode + func (tuntap *Tuntap) Attrs() *LinkAttrs + func (tuntap *Tuntap) Type() string + type TuntapMode uint16 + const TUNTAP_MODE_TAP + const TUNTAP_MODE_TUN + type U32 struct + Actions []Action + ClassId uint32 + 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 + UDPCSum bool + 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