ebpf

package
v10.326.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEBPFSupported

func IsEBPFSupported() bool

IsEBPFSupported is called once by the master enforcer to test if the system supports eBPF.

Types

type BPFModule

type BPFModule interface {
	GetBPFPath() string
	CreateFlow(*connection.TCPTuple)
	RemoveFlow(*connection.TCPTuple)
	Cleanup()
}

BPFModule interface exposes the functionality to datapath

func LoadBPF

func LoadBPF() BPFModule

LoadBPF loads the bpf object in the memory and also pins the bpf to the file system.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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