neighborsmap

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 8 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 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

View Source
var Cell = cell.Module(
	"neighbors-map",
	"Initializes neighbors bpf map",

	cell.Provide(newNeighborsMap),
)

Cell provides the neighborsmap.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.

Functions

This section is empty.

Types

type Key4

type Key4 struct {
	Ipv4 types.IPv4
}

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 {
	Ipv6 types.IPv6
}

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 Map added in v1.19.0

type Map any

Map is a marker interface for the neighbors map. It doesn't provide any functionality to the Cilium Agent because the bpf map is only created by the Cilium Agent for the datapath. It's still provided to be picked up as dependency by the Loader and initialized at startup.

type Value

type Value struct {
	Macaddr types.MACAddr
	// contains filtered or unexported fields
}

Value is the MAC address for the IP-to-MAC address mappings.

func (*Value) New

func (v *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