true if the packet matches the filter.Filter.matches
bool matches(const(pcap_pkthdr) * header, const(ubyte) * data) constChecks if a packet matches this filter.
Calling this on an uncompiled filter is a programming error. Use isCompiled() to check before calling.
Parameters
header | The packet header. |
data | The packet data. |
Returns
Throws
AssertError if the filter has not been compiled.