Documentation ¶
Overview ¶
+groupName=maps
Index ¶
Constants ¶
const ( MapName = "cilium_egress_v4" MaxEntries = 16384 )
Variables ¶
var EgressMap = bpf.NewMap( MapName, bpf.MapTypeLPMTrie, &Key4{}, int(unsafe.Sizeof(Key4{})), &EgressInfo4{}, int(unsafe.Sizeof(EgressInfo4{})), MaxEntries, bpf.BPF_F_NO_PREALLOC, 0, bpf.ConvertKeyValue, ).WithCache()
EgressMap initiates a Map
Functions ¶
This section is empty.
Types ¶
type EgressInfo4 ¶ added in v1.10.0
type EgressInfo4 struct { EgressIP types.IPv4 `align:"egress_ip"` TunnelEndpoint types.IPv4 `align:"tunnel_endpoint"` }
EgressInfo4 implements the bpf.MapValue interface. It contains the information about egress gateway and egress IP address for masquerading. +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapValue
func (*EgressInfo4) DeepCopy ¶ added in v1.10.0
func (in *EgressInfo4) DeepCopy() *EgressInfo4
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressInfo4.
func (*EgressInfo4) DeepCopyInto ¶ added in v1.10.0
func (in *EgressInfo4) DeepCopyInto(out *EgressInfo4)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EgressInfo4) DeepCopyMapValue ¶ added in v1.10.0
func (in *EgressInfo4) DeepCopyMapValue() bpf.MapValue
DeepCopyMapValue is an autogenerated deepcopy function, copying the receiver, creating a new bpf.MapValue.
func (*EgressInfo4) GetValuePtr ¶ added in v1.10.0
func (v *EgressInfo4) GetValuePtr() unsafe.Pointer
GetValuePtr returns the unsafe pointer to the BPF value.
func (*EgressInfo4) String ¶ added in v1.10.0
func (v *EgressInfo4) String() string
String pretty print the egress information.
type Key4 ¶ added in v1.10.0
type Key4 struct { // PrefixLen is full 32 bits of SourceIP + DestCIDR's mask bits PrefixLen uint32 SourceIP types.IPv4 DestCIDR types.IPv4 }
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapKey
func (*Key4) DeepCopy ¶ added in v1.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Key4.
func (*Key4) DeepCopyInto ¶ added in v1.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Key4) DeepCopyMapKey ¶ added in v1.10.0
DeepCopyMapKey is an autogenerated deepcopy function, copying the receiver, creating a new bpf.MapKey.