xdp

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BPF_ANY     = C.BPF_ANY
	BPF_NOEXIST = C.BPF_NOEXIST
	BPF_EXIST   = C.BPF_EXIST
)

Variables

This section is empty.

Functions

func BpfNumPossibleCpus

func BpfNumPossibleCpus() int

func KtimeGet

func KtimeGet() uint64

Types

type Map added in v0.1.11

type Map int

func (Map) DeleteElem added in v0.1.11

func (m Map) DeleteElem(k unsafe.Pointer) int

func (Map) GetNextKey added in v0.1.11

func (m Map) GetNextKey(k, n unsafe.Pointer) int

func (Map) LookupAndDeleteElem added in v0.1.11

func (m Map) LookupAndDeleteElem(k, v unsafe.Pointer) int

func (Map) LookupElem added in v0.1.11

func (m Map) LookupElem(k, v unsafe.Pointer) int

func (Map) UpdateElem added in v0.1.11

func (m Map) UpdateElem(k, v unsafe.Pointer, flags uint64) int

type XDP

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

func LoadBpfFile

func LoadBpfFile(bindata []byte) (*XDP, error)

func (*XDP) FindMap

func (x *XDP) FindMap(m string, k, v int) (Map, error)

func (*XDP) LoadBpfSection

func (x *XDP) LoadBpfSection(section string, native bool, iface uint32) error

func (*XDP) Map added in v0.1.11

func (x *XDP) Map(m string) Map

Jump to

Keyboard shortcuts

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