Documentation
¶
Index ¶
- Constants
- type DpCtInfo
- type DpRetT
- type DpStatusT
- type DpTunT
- type DpWorkT
- type FwDpWorkQ
- type FwOpT
- type L2AddrDpWorkQ
- type MirrDpWorkQ
- type NatDpWorkQ
- type NatEP
- type NatSel
- type NatT
- type NextHopDpWorkQ
- type PeerDpWorkQ
- type PolDpWorkQ
- type PortDpWorkQ
- type RouteDpWorkQ
- type RouterMacDpWorkQ
- type StatDpWorkQ
- type TableDpWorkQ
- type UlClDpWorkQ
Constants ¶
const ( MapNameCt4 = "CT4" MapNameCt6 = "CT6" MapNameNat4 = "NAT4" MapNameBD = "BD" MapNameRxBD = "RXBD" MapNameTxBD = "TXBD" MapNameRt4 = "RT4" MapNameULCL = "ULCL" MapNameIpol = "IPOL" MapNameFw4 = "FW4" )
man names constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DpCtInfo ¶
type DpCtInfo struct { DIP net.IP `json:"dip"` SIP net.IP `json:"sip"` Dport uint16 `json:"dport"` Sport uint16 `json:"sport"` Proto string `json:"proto"` CState string `json:"cstate"` CAct string `json:"cact"` CI string `json:"ci"` Packets uint64 `json:"packets"` Bytes uint64 `json:"bytes"` Deleted int `json:"deleted"` PKey []byte `json:"pkey"` PVal []byte `json:"pval"` LTs time.Time `json:"lts"` NTs time.Time `json:"nts"` XSync bool `json:"xsync"` // LB Association Data ServiceIP net.IP `json:"serviceip"` ServProto string `json:"servproto"` L4ServPort uint16 `json:"l4servproto"` BlockNum uint16 `json:"blocknum"` }
DpCtInfo - representation of a datapath conntrack information
type DpRetT ¶
type DpRetT interface { }
DpRetT - an empty interface to represent immediate operation result
type FwDpWorkQ ¶
type FwDpWorkQ struct { Work DpWorkT Status *DpStatusT ZoneNum int SrcIP net.IPNet DstIP net.IPNet L4SrcMin uint16 L4SrcMax uint16 L4DstMin uint16 L4DstMax uint16 Port uint16 Pref uint16 Proto uint8 Mark int FwType FwOpT FwVal1 uint16 FwVal2 uint32 FwRecord bool }
FwDpWorkQ - work queue entry for fw related operation
type L2AddrDpWorkQ ¶
type L2AddrDpWorkQ struct { Work DpWorkT Status *DpStatusT L2Addr [6]uint8 Tun DpTunT NhNum int PortNum int BD int Tagged int }
L2AddrDpWorkQ - work queue entry for l2 address operation
func (*L2AddrDpWorkQ) Key ¶
func (q *L2AddrDpWorkQ) Key() string
type MirrDpWorkQ ¶
type MirrDpWorkQ struct { Work DpWorkT Name string Mark int MiPortNum int MiBD int Status *DpStatusT }
MirrDpWorkQ - work queue entry for mirror operation
type NatDpWorkQ ¶
type NatDpWorkQ struct { Work DpWorkT Status *DpStatusT ZoneNum int ServiceIP net.IP L4Port uint16 BlockNum uint16 DsrMode bool CsumDis bool Proto uint8 Mark int NatType NatT EpSel NatSel InActTo uint64 EndPoints []NatEP SecIP []net.IP }
NatDpWorkQ - work queue entry for nat related operation
func (*NatDpWorkQ) Key ¶
func (q *NatDpWorkQ) Key() string
type NextHopDpWorkQ ¶
type NextHopDpWorkQ struct { Work DpWorkT Status *DpStatusT TunNh bool TunID uint32 TunType DpTunT RIP net.IP SIP net.IP NNextHopNum int NextHopNum int Resolved bool DstAddr [6]uint8 SrcAddr [6]uint8 BD int }
NextHopDpWorkQ - work queue entry for nexthop operation
func (*NextHopDpWorkQ) Key ¶
func (q *NextHopDpWorkQ) Key() string
type PeerDpWorkQ ¶
PeerDpWorkQ - work queue entry for peer association
type PolDpWorkQ ¶
type PolDpWorkQ struct { Work DpWorkT Name string Mark int Cir uint64 Pir uint64 Cbs uint64 Ebs uint64 Color bool Srt bool Status *DpStatusT }
PolDpWorkQ - work queue entry for policer related operation
type PortDpWorkQ ¶
type PortDpWorkQ struct { Work DpWorkT Status *DpStatusT OsPortNum int PortNum int IngVlan int SetBD int SetZoneNum int Prop cmn.PortProp SetMirr int SetPol int LoadEbpf string }
PortDpWorkQ - work queue entry for port operation
func (*PortDpWorkQ) Key ¶
func (q *PortDpWorkQ) Key() string
type RouteDpWorkQ ¶
type RouteDpWorkQ struct { Work DpWorkT Status *DpStatusT ZoneNum int Dst net.IPNet RtType int RtMark int NMark int }
RouteDpWorkQ - work queue entry for rt operation
func (*RouteDpWorkQ) Key ¶
func (q *RouteDpWorkQ) Key() string
type RouterMacDpWorkQ ¶
type RouterMacDpWorkQ struct { Work DpWorkT Status *DpStatusT L2Addr [6]uint8 PortNum int BD int TunID uint32 TunType DpTunT NhNum int }
RouterMacDpWorkQ - work queue entry for rt-mac operation
func (*RouterMacDpWorkQ) Key ¶
func (q *RouterMacDpWorkQ) Key() string
type StatDpWorkQ ¶
type StatDpWorkQ struct { Work DpWorkT Name string Mark uint32 Packets *uint64 Bytes *uint64 DropPackets *uint64 }
StatDpWorkQ - work queue entry for stat operation
type TableDpWorkQ ¶
TableDpWorkQ - work queue entry for map related operation