base/frameworks/packet-filter/utils.zeek¶
-
PacketFilter
¶
- Namespace
PacketFilter
Summary¶
Detailed Interface¶
Functions¶
- PacketFilter::combine_filters¶
-
Combines two valid BPF filter strings with a string based operator to form a new filter.
- Lfilter
Filter which will go on the left side.
- Op
Operation being applied (typically “or” or “and”).
- Rfilter
Filter which will go on the right side.
- Returns
A new string representing the two filters combined with the operator. Either filter being an empty string will still result in a valid filter.
- PacketFilter::port_to_bpf¶
-
Takes a
port
and returns a BPF expression which will match the port.- P
The port.
- Returns
A valid BPF filter string for matching the port.