ebpf

package
v0.0.0-...-04ee8bd Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEBPFProg

func GetEBPFProg() []byte

Types

type ConnEvent

type ConnEvent struct {
	Src      [16]byte
	Dst      [16]byte
	Sport    uint16
	Dport    uint16
	OriSrc   [16]byte
	OriDst   [16]byte
	OriSport uint16
	OriDport uint16
}

type Ebpf

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

func NewEbpf

func NewEbpf() *Ebpf

func (*Ebpf) Close

func (e *Ebpf) Close()

func (*Ebpf) Load

func (e *Ebpf) Load(spec *ebpf.CollectionSpec) error

type NetfilterObjects

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

func RunEbpf

func RunEbpf() *NetfilterObjects

func (*NetfilterObjects) Close

func (o *NetfilterObjects) Close() error

Jump to

Keyboard shortcuts

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