Documentation ¶
Index ¶
- Constants
- Variables
- func Map() maps.Map
- func MapMemIter(m MapMem) func(k, v []byte)
- func SetMapSize(size int)
- type Key
- type MapMem
- type Value
- func (v Value) AsBytes() []byte
- func (v Value) EgressPolicyV4() int
- func (v Value) EgressPolicyV6() int
- func (v Value) Flags() uint32
- func (v Value) IfName() string
- func (v Value) IngressPolicyV4() int
- func (v Value) IngressPolicyV6() int
- func (v Value) String() string
- func (v Value) TcEgressFilter() int
- func (v Value) TcIngressFilter() int
- func (v Value) XDPPolicyV4() int
- func (v Value) XDPPolicyV6() int
Constants ¶
View Source
const ( KeySize = 4 ValueSize = 4 + 16 + 3*4 + 3*4 + 2*4 MaxEntries = 1000 )
Variables ¶
View Source
var MapParams = maps.MapParameters{ Type: "hash", KeySize: KeySize, ValueSize: ValueSize, MaxEntries: MaxEntries, Name: "cali_iface", Flags: unix.BPF_F_NO_PREALLOC, Version: 4, UpdatedByBPF: false, }
Functions ¶
func MapMemIter ¶
func SetMapSize ¶
func SetMapSize(size int)
Types ¶
type Value ¶
func ValueFromBytes ¶
func (Value) EgressPolicyV4 ¶
func (Value) EgressPolicyV6 ¶
func (Value) IngressPolicyV4 ¶
func (Value) IngressPolicyV6 ¶
func (Value) TcEgressFilter ¶
func (Value) TcIngressFilter ¶
func (Value) XDPPolicyV4 ¶
func (Value) XDPPolicyV6 ¶
Click to show internal directories.
Click to hide internal directories.