engine

package
v0.0.0-...-e062bf1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Filter1 = "outbound and !loopback and !ipv6 and (tcp) and event == CONNECT"
	Filter2 = "outbound and !loopback and !ipv6 and (tcp)"
)

Variables

This section is empty.

Functions

func GetProcName

func GetProcName(pid uint32) (string, error)

func NewTCPHandler

func NewTCPHandler(dialer constant.Proxy) core.TCPConnHandler

Types

type Engine

type Engine struct {
	Process []string
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(options EngineOptions) *Engine

func (*Engine) Close

func (e *Engine) Close()

func (*Engine) GetDownStream

func (e *Engine) GetDownStream() int64

func (*Engine) GetUpStream

func (e *Engine) GetUpStream() int64

func (*Engine) NetStack_Output

func (e *Engine) NetStack_Output(buffer []byte) (int, error)

func (*Engine) NetworkLayer

func (e *Engine) NetworkLayer()

func (*Engine) NewStack

func (e *Engine) NewStack() io.Writer

func (*Engine) PacketHandler

func (e *Engine) PacketHandler()

func (*Engine) SocketLayer

func (e *Engine) SocketLayer()

func (*Engine) Start

func (e *Engine) Start()

func (*Engine) UpdateEngine

func (e *Engine) UpdateEngine(options EngineOptions) error

func (*Engine) UpdateProxy

func (e *Engine) UpdateProxy(dialer constant.Proxy)

type EngineOptions

type EngineOptions struct {
	Dialer  constant.Proxy
	Process []string
}

type Packet

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

type Queue

type Queue[T any] struct {
	// contains filtered or unexported fields
}

type Tuple

type Tuple struct {
	Protocol uint8
	SrcPort  uint16
	DstPort  uint16
}

Jump to

Keyboard shortcuts

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