Documentation ¶
Index ¶
Constants ¶
const ( MapName = "cilium_ipmasq_v4" MaxEntries = 16384 )
Variables ¶
var IPMasq4Map = bpf.NewMap( MapName, bpf.MapTypeLPMTrie, &Key4{}, int(unsafe.Sizeof(Key4{})), &Value{}, int(unsafe.Sizeof(Value{})), MaxEntries, bpf.BPF_F_NO_PREALLOC, 0, bpf.ConvertKeyValue, ).WithCache().WithPressureMetric()
Functions ¶
This section is empty.
Types ¶
type IPMasqBPFMap ¶
type IPMasqBPFMap struct{}
type Key4 ¶
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapKey
func (*Key4) DeepCopy ¶ added in v1.8.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Key4.
func (*Key4) DeepCopyInto ¶ added in v1.8.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Key4) DeepCopyMapKey ¶ added in v1.8.0
DeepCopyMapKey is an autogenerated deepcopy function, copying the receiver, creating a new bpf.MapKey.
type Value ¶
type Value struct {
Pad uint8 // not used
}
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapValue
func (*Value) DeepCopy ¶ added in v1.8.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Value.
func (*Value) DeepCopyInto ¶ added in v1.8.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Value) DeepCopyMapValue ¶ added in v1.8.0
DeepCopyMapValue is an autogenerated deepcopy function, copying the receiver, creating a new bpf.MapValue.