Documentation ¶
Overview ¶
Package neighborsmap represents the map that stores IP to mac address mappings for NodePort clients. It is primarily managed from the datapath; Cilium side is used to create the map only. +groupName=maps
Index ¶
Constants ¶
const ( // Map4Name is the BPF map name. Map4Name = "cilium_nodeport_neigh4" // Map6Name is the BPF map name. Map6Name = "cilium_nodeport_neigh6" )
const SizeOfNeighValue = int(unsafe.Sizeof(Value{}))
SizeOfNeighValue is the size of type NeighValue.
const SizeofNeighKey6 = int(unsafe.Sizeof(Key6{}))
SizeofNeighKey6 is the size of type NeighKey6.
Variables ¶
This section is empty.
Functions ¶
func NeighRetire ¶
NeighRetire retires a cached neigh entry from the LRU cache
Types ¶
type Key4 ¶
type Key4 struct {
// contains filtered or unexported fields
}
Key4 is the IPv4 for the IP-to-MAC address mappings. +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 Key6 ¶
type Key6 struct {
// contains filtered or unexported fields
}
Key6 is the IPv6 for the IP-to-MAC address mappings. +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapKey
func (*Key6) DeepCopy ¶ added in v1.8.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Key6.
func (*Key6) DeepCopyInto ¶ added in v1.8.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Key6) 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 {
// contains filtered or unexported fields
}
Value is the MAC address for the IP-to-MAC address mappings. +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.
func (*Value) GetValuePtr ¶ added in v1.8.0
GetValuePtr returns the unsafe pointer to the BPF value