fragmap

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: 4 Imported by: 3

Documentation

Overview

Package fragmap represents the BPF map used to associate IPv4 datagram fragments to the L4 ports of the datagram they belong to, in order to retrieve the full 5-tuple necessary to do L4-based lookups. +groupName=maps

Index

Constants

View Source
const (
	// MapName is the name of the map used to retrieve L4 ports associated
	// to the datagram to which an IPv4 belongs.
	MapName = "cilium_ipv4_frag_datagrams"
)

Variables

This section is empty.

Functions

func InitMap

func InitMap(mapEntries int) error

InitMap creates the signal map in the kernel.

Types

type FragmentKey

type FragmentKey struct {
	// contains filtered or unexported fields
}

FragmentKey must match 'struct ipv4_frag_id' in "bpf/lib/ipv4.h". +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapKey

func (*FragmentKey) DeepCopy added in v1.8.0

func (in *FragmentKey) DeepCopy() *FragmentKey

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

func (*FragmentKey) DeepCopyInto added in v1.8.0

func (in *FragmentKey) DeepCopyInto(out *FragmentKey)

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

func (*FragmentKey) DeepCopyMapKey added in v1.8.0

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

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

func (*FragmentKey) GetKeyPtr added in v1.8.0

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

GetKeyPtr returns the unsafe pointer to the BPF key.

func (FragmentKey) NewValue added in v1.8.0

func (k FragmentKey) NewValue() bpf.MapValue

NewValue returns a new empty instance of the structure representing the BPF map value.

func (*FragmentKey) String

func (k *FragmentKey) String() string

String converts the key into a human readable string format.

type FragmentValue

type FragmentValue struct {
	// contains filtered or unexported fields
}

FragmentValue must match 'struct ipv4_frag_l4ports' in "bpf/lib/ipv4.h". +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapValue

func (*FragmentValue) DeepCopy added in v1.8.0

func (in *FragmentValue) DeepCopy() *FragmentValue

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

func (*FragmentValue) DeepCopyInto added in v1.8.0

func (in *FragmentValue) DeepCopyInto(out *FragmentValue)

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

func (*FragmentValue) DeepCopyMapValue added in v1.8.0

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

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

func (*FragmentValue) GetValuePtr added in v1.8.0

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

GetValuePtr returns the unsafe pointer to the BPF value.

func (*FragmentValue) String

func (v *FragmentValue) String() string

String converts the value into a human readable string format.

Jump to

Keyboard shortcuts

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