ebpf

package
v1.53.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TcEBpfProgram

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

func NewAutoRedirProgram

func NewAutoRedirProgram(pros []C.EBpf, rawNICs []string, rawInterface string) *TcEBpfProgram

func NewRedirEBpfProgram

func NewRedirEBpfProgram(ifaceNames []string, redirPort uint16, defaultRouteInterfaceName string) (*TcEBpfProgram, error)

NewRedirEBpfProgram new auto redirect ebpf program

func NewTcEBpfProgram

func NewTcEBpfProgram(ifaceNames []string, tunName string) (*TcEBpfProgram, error)

NewTcEBpfProgram new redirect to tun ebpf program

func (*TcEBpfProgram) Close

func (t *TcEBpfProgram) Close()

func (*TcEBpfProgram) Lookup

func (t *TcEBpfProgram) Lookup(srcAddrPort netip.AddrPort) (addr socks5.Addr, err error)

func (*TcEBpfProgram) RawInterface

func (t *TcEBpfProgram) RawInterface() string

func (*TcEBpfProgram) RawNICs

func (t *TcEBpfProgram) RawNICs() []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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