fragmap

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 5 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".

func (*FragmentKey) New

func (k *FragmentKey) New() bpf.MapKey

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".

func (*FragmentValue) New

func (v *FragmentValue) New() bpf.MapValue

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