xdp

package
v1.11.0-cni-plu...-0883212 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DetachedID = 0

Variables

This section is empty.

Functions

func ConfigureProgram

func ConfigureProgram(m *libbpf.Map, iface string, globalData *libbpf.XDPGlobalData) error

Types

type AttachPoint

type AttachPoint struct {
	bpf.AttachPoint
	HookLayoutV4 hook.Layout
	HookLayoutV6 hook.Layout

	Modes []bpf.XDPMode
}

func (*AttachPoint) AlreadyAttached

func (ap *AttachPoint) AlreadyAttached(object string) (int, bool)

func (*AttachPoint) AttachProgram

func (ap *AttachPoint) AttachProgram() (bpf.AttachResult, error)

func (*AttachPoint) Config

func (ap *AttachPoint) Config() string

func (*AttachPoint) DetachProgram

func (ap *AttachPoint) DetachProgram() error

func (*AttachPoint) FileName

func (ap *AttachPoint) FileName() string

func (*AttachPoint) IsAttached

func (ap *AttachPoint) IsAttached() (bool, error)

func (*AttachPoint) Log

func (ap *AttachPoint) Log() *log.Entry

func (*AttachPoint) PolicyAllowJumpIdx

func (ap *AttachPoint) PolicyAllowJumpIdx(family int) int

func (*AttachPoint) PolicyDenyJumpIdx

func (ap *AttachPoint) PolicyDenyJumpIdx(family int) int

func (*AttachPoint) ProgramID

func (ap *AttachPoint) ProgramID() (int, error)

func (*AttachPoint) ProgramName

func (ap *AttachPoint) ProgramName() string

type AttachResult

type AttachResult int

func (AttachResult) ProgID

func (ar AttachResult) ProgID() int

Jump to

Keyboard shortcuts

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