tunnel

package
v1.18.7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MapName = "cilium_tunnel_map"

	// MaxEntries is the maximum entries in the tunnel endpoint map
	MaxEntries = 65536
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Map added in v0.15.7

type Map struct {
	*bpf.Map
}

Map implements tunnel connectivity configuration in the BPF datapath.

func NewTunnelMap added in v0.15.7

func NewTunnelMap(mapName string) *Map

NewTunnelMap returns a new tunnel map.

func TunnelMap added in v0.15.7

func TunnelMap() *Map

type TunnelIP added in v0.15.7

type TunnelIP struct {
	// represents both IPv6 and IPv4 (in the lowest four bytes)
	IP     types.IPv6 `align:"$union0"`
	Family uint8      `align:"family"`
}

type TunnelKey added in v0.15.7

type TunnelKey struct {
	TunnelIP
	Pad       uint8  `align:"pad"`
	ClusterID uint16 `align:"cluster_id"`
}

func (*TunnelKey) New added in v0.15.7

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

func (TunnelKey) String added in v0.15.7

func (k TunnelKey) String() string

String provides a string representation of the TunnelKey.

type TunnelValue added in v0.15.7

type TunnelValue struct {
	TunnelIP
	Key uint8  `align:"key"`
	Pad uint16 `align:"pad"`
}

func (*TunnelValue) New added in v0.15.7

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

func (TunnelValue) String added in v0.15.7

func (k TunnelValue) String() string

String provides a string representation of the TunnelValue.

Jump to

Keyboard shortcuts

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