PcapStatus indicating success or error.Filter.compileNoPcap
PcapStatus compileNoPcap(int snaplen, int linktype, string filterStr, bool optimize = true, uint netmask = PCAP_NETMASK_UNKNOWN)Compiles a BPF filter string without requiring an open pcap handle.
Parameters
snaplen | The snapshot length. |
linktype | The link-layer type (DLT_*). |
filterStr | The BPF filter expression. |
optimize | Whether to optimize the compiled code. |
netmask | The netmask of the interface. |
Returns
A