xdp

package
v0.0.0-...-21cfbab Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DetachedID = 0

Variables

View Source
var JumpMapIndexes = map[string]map[int]string{
	"IPv4": map[int]string{
		tcdefs.ProgIndexPolicy:  "calico_xdp_norm_pol_tail",
		tcdefs.ProgIndexAllowed: "calico_xdp_accepted_entrypoint",
		tcdefs.ProgIndexDrop:    "calico_xdp_drop",
	},
}

Functions

func ConfigureProgram

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

func UpdateJumpMap

func UpdateJumpMap(obj *libbpf.Obj, progs map[int]string) error

Types

type AttachPoint

type AttachPoint struct {
	Iface    string
	LogLevel string
	Modes    []bpf.XDPMode
}

func (*AttachPoint) AlreadyAttached

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

func (*AttachPoint) AttachProgram

func (ap *AttachPoint) AttachProgram() (int, 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) HookName

func (ap *AttachPoint) HookName() bpf.Hook

func (*AttachPoint) IfaceName

func (ap *AttachPoint) IfaceName() string

func (*AttachPoint) IsAttached

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

func (*AttachPoint) JumpMapFDMapKey

func (ap *AttachPoint) JumpMapFDMapKey() string

func (*AttachPoint) Log

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

func (*AttachPoint) ProgramID

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

func (*AttachPoint) ProgramName

func (ap *AttachPoint) ProgramName() string

Jump to

Keyboard shortcuts

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