internal

package
v0.0.0-...-2bac0a1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HookMapSpec = &ebpf.MapSpec{
	Type:       ebpf.ProgramArray,
	KeySize:    4,
	ValueSize:  4,
	MaxEntries: 4,
}

HookMapSpec is the ABI of the underlying prog map created

Functions

func CheckHookMap

func CheckHookMap(m *ebpf.Map) error

CheckHookMap checks the given map against HookMapABI to have appropriate values Only checks Type, KeySize, ValueSize

func TcpdumpExprToBPF

func TcpdumpExprToBPF(filterExpr string, linkType layers.LinkType) ([]bpf.Instruction, error)

tcpdumpExprToBPF converts a tcpdump / libpcap filter expression to cBPF using libpcap

Types

This section is empty.

Jump to

Keyboard shortcuts

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