neighborsmap

package
v1.8.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 4 Imported by: 3

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

View Source
const (
	// Map4Name is the BPF map name.
	Map4Name = "cilium_nodeport_neigh4"
	// Map6Name is the BPF map name.
	Map6Name = "cilium_nodeport_neigh6"
)

Variables

This section is empty.

Functions

func InitMaps

func InitMaps(ipv4, ipv6 bool) error

InitMaps creates the nodeport neighbors maps in the kernel.

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

func (in *Key4) DeepCopy() *Key4

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Key4.

func (*Key4) DeepCopyInto added in v1.8.0

func (in *Key4) DeepCopyInto(out *Key4)

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

func (in *Key4) DeepCopyMapKey() bpf.MapKey

DeepCopyMapKey is an autogenerated deepcopy function, copying the receiver, creating a new bpf.MapKey.

func (*Key4) GetKeyPtr added in v1.8.0

func (k *Key4) GetKeyPtr() unsafe.Pointer

GetKeyPtr returns the unsafe pointer to the BPF key

func (Key4) NewValue added in v1.8.0

func (k Key4) NewValue() bpf.MapValue

NewValue returns a new empty instance of the structure representing the BPF map value.

func (*Key4) String

func (k *Key4) String() string

String converts the key into a human readable string format.

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

func (in *Key6) DeepCopy() *Key6

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Key6.

func (*Key6) DeepCopyInto added in v1.8.0

func (in *Key6) DeepCopyInto(out *Key6)

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

func (in *Key6) DeepCopyMapKey() bpf.MapKey

DeepCopyMapKey is an autogenerated deepcopy function, copying the receiver, creating a new bpf.MapKey.

func (*Key6) GetKeyPtr added in v1.8.0

func (k *Key6) GetKeyPtr() unsafe.Pointer

GetKeyPtr returns the unsafe pointer to the BPF key

func (Key6) NewValue added in v1.8.0

func (k Key6) NewValue() bpf.MapValue

NewValue returns a new empty instance of the structure representing the BPF map value.

func (*Key6) String

func (k *Key6) String() string

String converts the key into a human readable string format.

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

func (in *Value) DeepCopy() *Value

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Value.

func (*Value) DeepCopyInto added in v1.8.0

func (in *Value) DeepCopyInto(out *Value)

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

func (in *Value) DeepCopyMapValue() bpf.MapValue

DeepCopyMapValue is an autogenerated deepcopy function, copying the receiver, creating a new bpf.MapValue.

func (*Value) GetValuePtr added in v1.8.0

func (v *Value) GetValuePtr() unsafe.Pointer

GetValuePtr returns the unsafe pointer to the BPF value

func (*Value) String

func (v *Value) String() string

String converts the value into a human readable string format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL