tunnel

package
v1.5.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: Apache-2.0 Imports: 6 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

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
}

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