egressmap

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Overview

+groupName=maps

Index

Constants

View Source
const (
	MapName    = "cilium_egress_v4"
	MaxEntries = 16384
)

Variables

EgressMap initiates a Map

Functions

This section is empty.

Types

type EgressInfo4 added in v1.10.0

type EgressInfo4 struct {
	EgressIP       types.IPv4 `align:"egress_ip"`
	TunnelEndpoint types.IPv4 `align:"tunnel_endpoint"`
}

EgressInfo4 implements the bpf.MapValue interface. It contains the information about egress gateway and egress IP address for masquerading. +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapValue

func (*EgressInfo4) DeepCopy added in v1.10.0

func (in *EgressInfo4) DeepCopy() *EgressInfo4

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

func (*EgressInfo4) DeepCopyInto added in v1.10.0

func (in *EgressInfo4) DeepCopyInto(out *EgressInfo4)

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

func (*EgressInfo4) DeepCopyMapValue added in v1.10.0

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

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

func (*EgressInfo4) GetValuePtr added in v1.10.0

func (v *EgressInfo4) GetValuePtr() unsafe.Pointer

GetValuePtr returns the unsafe pointer to the BPF value.

func (*EgressInfo4) String added in v1.10.0

func (v *EgressInfo4) String() string

String pretty print the egress information.

type Key4 added in v1.10.0

type Key4 struct {
	// PrefixLen is full 32 bits of SourceIP + DestCIDR's mask bits
	PrefixLen uint32

	SourceIP types.IPv4
	DestCIDR types.IPv4
}

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

func NewKey added in v1.10.0

func NewKey(src, dst net.IP, mask net.IPMask) Key4

NewKey returns a new Key4 instance

func (*Key4) DeepCopy added in v1.10.0

func (in *Key4) DeepCopy() *Key4

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

func (*Key4) DeepCopyInto added in v1.10.0

func (in *Key4) DeepCopyInto(out *Key4)

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

func (*Key4) DeepCopyMapKey added in v1.10.0

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

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

func (*Key4) GetKeyPtr added in v1.10.0

func (k *Key4) GetKeyPtr() unsafe.Pointer

func (*Key4) NewValue added in v1.10.0

func (k *Key4) NewValue() bpf.MapValue

func (*Key4) String added in v1.10.0

func (k *Key4) String() string

Jump to

Keyboard shortcuts

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