ddn.net.pcap.filter

High-level BPF filtering API.

Authors

Dejan Lekić

License

BSD-3-Clause

Types 1

Represents a compiled BPF filter.

Fields
private Filter _filter
Methods
bool matches(const ref Packet pkt) constChecks if a packet matches this filter.
Filter filter() refReturns the underlying low-level filter.
Constructors
this(Pcap pcap, string filterStr)Compiles a BPF filter string for a given capture session.

Functions 1

fnPcapStatus setFilter(Pcap pcap, string filterStr)Adds filter methods to the `Pcap` class.