bpf

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	XDP_ABORTED uint32 = iota
	XDP_DROP
	XDP_PASS
	XDP_TX
	XDP_REDIRECT
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Xdp added in v1.2.0

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

func ReadXdpObjects

func ReadXdpObjects(ops *ebpf.CollectionOptions) (*Xdp, error)

func (*Xdp) Attach added in v1.2.0

func (x *Xdp) Attach(iface *net.Interface) error

func (*Xdp) Close added in v1.2.0

func (x *Xdp) Close() error

func (*Xdp) NewPerfReader added in v1.2.0

func (x *Xdp) NewPerfReader() (*perf.Reader, error)

type XdpMetaData added in v1.2.0

type XdpMetaData struct {
	ReceivedNano uint64
	SentSec      uint32
	SentSubsec   uint32
}

Jump to

Keyboard shortcuts

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