ebpf

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAutoDetectInterface

func GetAutoDetectInterface() (string, error)

Types

type TcEBpfProgram

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

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) 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