Documentation ¶
Index ¶
- Constants
- func CTLBSetGlobals(m *Map, udpNotSeen time.Duration, excludeUDP bool) error
- func CreateQDisc(ifName string) error
- func DetachXDP(ifName string, mode uint) error
- func GetXDPProgramID(ifName string) (int, error)
- func NumPossibleCPUs() (int, error)
- func ObjGet(path string) (int, error)
- func ObjPin(fd int, path string) error
- func RemoveQDisc(ifName string) error
- func TcSetGlobals(m *Map, globalData *TcGlobalData) error
- func XDPSetGlobals(m *Map, globalData *XDPGlobalData) error
- type Link
- type Map
- type Obj
- func (o *Obj) AttachCGroup(cgroup, progName string) (*Link, error)
- func (o *Obj) AttachClassifier(secName, ifName string, ingress bool) (int, error)
- func (o *Obj) AttachXDP(ifName, progName string, oldID int, mode uint) (int, error)
- func (o *Obj) Close() error
- func (o *Obj) FirstMap() (*Map, error)
- func (o *Obj) Load() error
- func (o *Obj) Pin(path string) error
- func (o *Obj) PinMaps(path string) error
- func (o *Obj) PinPrograms(path string) error
- func (o *Obj) Unpin(path string) error
- func (o *Obj) UnpinPrograms(path string) error
- func (o *Obj) UpdateJumpMap(mapName, progName string, mapIndex int) error
- type QdiskHook
- type TcGlobalData
- type XDPGlobalData
Constants ¶
View Source
const ( // Set when IPv6 is enabled to configure bpf dataplane accordingly GlobalsIPv6Enabled uint32 = C.CALI_GLOBALS_IPV6_ENABLED GlobalsRPFOptionEnabled uint32 = C.CALI_GLOBALS_RPF_OPTION_ENABLED GlobalsRPFOptionStrict uint32 = C.CALI_GLOBALS_RPF_OPTION_STRICT GlobalsNoDSRCidrs uint32 = C.CALI_GLOBALS_NO_DSR_CIDRS )
Variables ¶
This section is empty.
Functions ¶
func CreateQDisc ¶
func GetXDPProgramID ¶
func NumPossibleCPUs ¶
func RemoveQDisc ¶
func TcSetGlobals ¶
func TcSetGlobals( m *Map, globalData *TcGlobalData, ) error
func XDPSetGlobals ¶
func XDPSetGlobals( m *Map, globalData *XDPGlobalData, ) error
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func (*Map) IsMapInternal ¶
func (*Map) MaxEntries ¶
func (*Map) NextMap ¶
NextMap returns the successive maps given the first map. Returns nil, no error at the end of the list.
func (*Map) SetPinPath ¶
type Obj ¶
type Obj struct {
// contains filtered or unexported fields
}
func OpenObject ¶
func (*Obj) AttachClassifier ¶
func (*Obj) FirstMap ¶
FirstMap returns first bpf map of the object. Returns error if the map is nil.
func (*Obj) PinPrograms ¶
func (*Obj) UnpinPrograms ¶
type TcGlobalData ¶
type XDPGlobalData ¶
type XDPGlobalData struct {
IfaceName string
}
Click to show internal directories.
Click to hide internal directories.