tunnel

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

+groupName=maps

Index

Constants

View Source
const (
	MapName = "cilium_tunnel_map"

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

Variables

View Source
var (
	// TunnelMap represents the BPF map for tunnels
	TunnelMap = NewTunnelMap(MapName)
)

Functions

This section is empty.

Types

type Map added in v1.5.0

type Map struct {
	*bpf.Map
}

Map implements tunnel connectivity configuration in the BPF datapath.

func NewTunnelMap added in v1.5.0

func NewTunnelMap(name string) *Map

NewTunnelMap returns a new tunnel map with the specified name.

func (*Map) DeleteTunnelEndpoint added in v1.5.0

func (m *Map) DeleteTunnelEndpoint(prefix net.IP) error

DeleteTunnelEndpoint removes a prefix => tunnel-endpoint mapping

func (*Map) GetTunnelEndpoint added in v1.5.0

func (m *Map) GetTunnelEndpoint(prefix net.IP) (net.IP, error)

GetTunnelEndpoint removes a prefix => tunnel-endpoint mapping

func (*Map) SetTunnelEndpoint added in v1.5.0

func (m *Map) SetTunnelEndpoint(encryptKey uint8, prefix, endpoint net.IP) error

SetTunnelEndpoint adds/replaces a prefix => tunnel-endpoint mapping

type TunnelEndpoint added in v1.5.0

type TunnelEndpoint struct {
	bpf.EndpointKey
}

+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapKey +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapValue

func (*TunnelEndpoint) DeepCopy added in v1.5.1

func (in *TunnelEndpoint) DeepCopy() *TunnelEndpoint

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

func (*TunnelEndpoint) DeepCopyInto added in v1.5.1

func (in *TunnelEndpoint) DeepCopyInto(out *TunnelEndpoint)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TunnelEndpoint) DeepCopyMapKey added in v1.5.1

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

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

func (*TunnelEndpoint) DeepCopyMapValue added in v1.5.1

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

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

func (TunnelEndpoint) NewValue added in v1.5.0

func (v TunnelEndpoint) NewValue() bpf.MapValue

Jump to

Keyboard shortcuts

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