packet

package
v0.0.0-...-15c230c Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PacketFilter

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

func NewPacketFilter

func NewPacketFilter(procfs string, bpfObjs bpf.TracerObjects, cgroupsController cgroup.CgroupsController, enabled, isCgroupV2 bool) (*PacketFilter, error)

func (*PacketFilter) AttachPod

func (t *PacketFilter) AttachPod(uuid, cgroupV2Path string) (bool, error)

func (*PacketFilter) Close

func (pf *PacketFilter) Close() error

func (*PacketFilter) DetachPod

func (t *PacketFilter) DetachPod(uuid string) bool

type TcClient

type TcClient interface {
	SetupTC(link netlink.Link, progFDIngress, progFDEgress *ebpf.Program) error
	CleanTC() error
}

type TcClientImpl

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

func (*TcClientImpl) CleanTC

func (t *TcClientImpl) CleanTC() error

func (*TcClientImpl) SetupTC

func (t *TcClientImpl) SetupTC(link netlink.Link, progFDIngress, progFDEgress *ebpf.Program) error

Jump to

Keyboard shortcuts

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