neighborsmap

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 7 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"
)
View Source
const SizeOfNeighValue = int(unsafe.Sizeof(Value{}))

SizeOfNeighValue is the size of type NeighValue.

View Source
const SizeofNeighKey6 = int(unsafe.Sizeof(Key6{}))

SizeofNeighKey6 is the size of type NeighKey6.

Variables

This section is empty.

Functions

func InitMaps

func InitMaps(ipv4, ipv6 bool) error

InitMaps creates the nodeport neighbors maps in the kernel.

func NeighRetire

func NeighRetire(ip net.IP)

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.

func (*Key4) New

func (k *Key4) New() bpf.MapKey

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.

func (*Key6) New

func (k *Key6) New() bpf.MapKey

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.

func (*Value) New

func (k *Value) New() bpf.MapValue

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