Documentation ¶
Index ¶
Constants ¶
View Source
const ( AND Operator = "and" OR = "or" NOOP = "" )
Supported operators
View Source
const ( SRC Dir = "src" DST = "dst" NODIR = "" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Expr ¶
type Expr string
Expr represents a BPF expression. It's zero value is ready to use.
func FromAddr ¶
FromAddr returns a BPF from a network address, plus direction information. Use NODIR to make a filter that matches both src and dst packets.
func (Expr) Join ¶
Join returns a new expression, made of the conjunction of the caller with `r`, wrapped in an Expr. Callers have to ensure that operator precedence is preserved.
Click to show internal directories.
Click to hide internal directories.