wq

package
v0.0.0-...-015fee6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

func (*DpCtInfo) Key

func (ct *DpCtInfo) Key() string

Key - outputs a key string for given DpCtInfo pointer

func (*DpCtInfo) String

func (ct *DpCtInfo) String() string

String - stringify the given DpCtInfo

type DpRetT

type DpRetT interface {
}

DpRetT - an empty interface to represent immediate operation result

type DpStatusT

type DpStatusT uint8

DpStatusT - status of a dp work

const (
	DpCreateErr DpStatusT = iota + 1
	DpRemoveErr
	DpChangeErr
	DpUknownErr
	DpInProgressErr
)

dp work status codes

type DpTunT

type DpTunT uint8

DpTunT - type of a dp tunnel

const (
	DpTunVxlan DpTunT = iota + 1
	DpTunGre
	DpTunGtp
	DpTunStt
	DpTunIPIP
)

tunnel type constants

type DpWorkT

type DpWorkT uint8

DpWorkT - type of requested work

const (
	DpCreate DpWorkT = iota + 1
	DpRemove
	DpChange
	DpStatsGet
	DpStatsClr
	DpMapGet
)

dp work codes

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 FwOpT

type FwOpT uint8

FwOpT - type of firewall operation

const (
	DpFwDrop FwOpT = iota + 1
	DpFwFwd
	DpFwRdr
	DpFwTrap
)

Fw type constants

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 NatEP

type NatEP struct {
	XIP      net.IP
	RIP      net.IP
	XPort    uint16
	Weight   uint8
	InActive bool
}

NatEP - a nat end-point

type NatSel

type NatSel uint8

NatSel - type of nat end-point selection algorithm

const (
	EpRR NatSel = iota + 1
	EpHash
	EpPrio
)

nat selection algorithm constants

type NatT

type NatT uint8

NatT - type of NAT

const (
	DpSnat NatT = iota + 1
	DpDnat
	DpHsnat
	DpHdnat
	DpFullNat
)

nat type constants

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

type PeerDpWorkQ struct {
	Work   DpWorkT
	PeerIP net.IP
	Status *DpStatusT
}

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

type TableDpWorkQ struct {
	Work DpWorkT
	Name string
}

TableDpWorkQ - work queue entry for map related operation

type UlClDpWorkQ

type UlClDpWorkQ struct {
	Work   DpWorkT
	Status *DpStatusT
	MDip   net.IP
	MSip   net.IP
	MTeID  uint32
	Zone   int
	Qfi    uint8
	Mark   int
	TDip   net.IP
	TSip   net.IP
	TTeID  uint32
	Type   DpTunT
}

UlClDpWorkQ - work queue entry for ul-cl filter related operation

Jump to

Keyboard shortcuts

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