ipmasq

package
v1.8.11 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

View Source
const (
	MapName = "cilium_ipmasq_v4"
)

Variables

View Source
var IPMasq4Map = bpf.NewMap(
	MapName,
	bpf.MapTypeLPMTrie,
	&Key4{}, int(unsafe.Sizeof(Key4{})),
	&Value{}, int(unsafe.Sizeof(Value{})),
	maxEntries,
	bpf.BPF_F_NO_PREALLOC, 0,
	bpf.ConvertKeyValue,
).WithCache()

Functions

This section is empty.

Types

type IPMasqBPFMap

type IPMasqBPFMap struct{}

func (*IPMasqBPFMap) Delete

func (*IPMasqBPFMap) Delete(cidr net.IPNet) error

func (*IPMasqBPFMap) Dump

func (*IPMasqBPFMap) Dump() ([]net.IPNet, error)

func (*IPMasqBPFMap) Update

func (*IPMasqBPFMap) Update(cidr net.IPNet) error

type Key4

type Key4 struct {
	PrefixLen uint32
	Address   types.IPv4
}

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

func (*Key4) DeepCopy added in v1.8.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.8.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.8.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.8.0

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

func (*Key4) NewValue added in v1.8.0

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

func (*Key4) String

func (k *Key4) String() string

type Value

type Value struct {
	Pad uint8 // not used
}

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

func (*Value) DeepCopy added in v1.8.0

func (in *Value) DeepCopy() *Value

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

func (*Value) DeepCopyInto added in v1.8.0

func (in *Value) DeepCopyInto(out *Value)

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

func (*Value) DeepCopyMapValue added in v1.8.0

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

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

func (*Value) GetValuePtr added in v1.8.0

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

func (*Value) String

func (v *Value) String() string

Jump to

Keyboard shortcuts

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