expression

package
v0.0.0-...-ba8b0ab Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirectionTypeDi = iota
	DirectionTypeSrc
	DirectionTypeDst
)

Variables

This section is empty.

Functions

func BuildRawInstructionsByExpression

func BuildRawInstructionsByExpression(cmdTimeoutSec time.Duration, conditions ...Condition) (retList []bpf.RawInstruction, retErr error)

func ExecTCPDumpCommandline

func ExecTCPDumpCommandline(cmdTimeout time.Duration, args ...string) (retStdoutData, retStderrData []byte, retErr error)

Types

type Condition

type Condition struct {
	LO         LogicalOperatorType
	Direction  DirectionType
	NIP        net.IP
	IPProtocol layers.IPProtocol
	Port       int
}

type DirectionArgsInfo

type DirectionArgsInfo struct {
	IPArg string
	Port  string
}

type DirectionType

type DirectionType uint8

type LogicalOperatorType

type LogicalOperatorType uint8
const (
	LogicalOperatorAnd LogicalOperatorType = iota
	LogicalOperatorOr
	LogicalOperatorNot
)

Jump to

Keyboard shortcuts

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