ebpf

package
v0.0.0-...-93fed14 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEbpfManagerInstance

func GetEbpfManagerInstance() manager.Manager

GetEbpfManagerInstance return a static eBpf Manager instance

Types

type GeneralManager

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

GeneralManager is used to load multiple eBPF programs with a custom check (if then) done in prog.c The manager simply adds a feature (byte) of each program to a map that is shared between the userspace and kernel. When packet arrives, the C code checks for each feature (if it is set) and executes each enabled program (e.g., dns_fwd.c and wg_proxy.c).

func (*GeneralManager) FreeDNSFwd

func (tf *GeneralManager) FreeDNSFwd() error

func (*GeneralManager) FreeWGProxy

func (tf *GeneralManager) FreeWGProxy() error

func (*GeneralManager) LoadDNSFwd

func (tf *GeneralManager) LoadDNSFwd(ip string, dnsPort int) error

func (*GeneralManager) LoadWgProxy

func (tf *GeneralManager) LoadWgProxy(proxyPort, wgPort int) error

Jump to

Keyboard shortcuts

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