vtep

package
v1.15.8 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Overview

+groupName=maps

Index

Constants

View Source
const (
	// MaxEntries is the maximum number of keys that can be present in the
	// VTEP map.
	MaxEntries = defaults.MaxVTEPDevices

	// Name is the canonical name for the VTEP map on the filesystem.
	Name = "cilium_vtep_map"
)

Variables

This section is empty.

Functions

func UpdateVTEPMapping

func UpdateVTEPMapping(newCIDR *cidr.CIDR, newTunnelEndpoint net.IP, vtepMAC mac.MAC) error

Function to update vtep map with VTEP CIDR

Types

type Key

type Key struct {
	IP types.IPv4 `align:"vtep_ip"`
}

Key implements the bpf.MapKey interface.

Must be in sync with struct vtep_key in <bpf/lib/common.h>

func NewKey

func NewKey(ip net.IP) Key

NewKey returns an Key based on the provided IP address and mask.

func (*Key) New

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

func (Key) String

func (k Key) String() string

type Map

type Map struct {
	bpf.Map
}

Map represents an VTEP BPF map.

func NewMap

func NewMap(name string) *Map

NewMap instantiates a Map.

func VtepMap

func VtepMap() *Map

type VtepEndpointInfo

type VtepEndpointInfo struct {
	VtepMAC        mac.Uint64MAC `align:"vtep_mac"`
	TunnelEndpoint types.IPv4    `align:"tunnel_endpoint"`
	// contains filtered or unexported fields
}

VtepEndpointInfo implements the bpf.MapValue interface. It contains the VTEP endpoint MAC and IP.

func (*VtepEndpointInfo) New

func (v *VtepEndpointInfo) New() bpf.MapValue

func (*VtepEndpointInfo) String

func (v *VtepEndpointInfo) String() string

Jump to

Keyboard shortcuts

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