PcapStatus indicating success or error.Filter.compile
PcapStatus compile(PcapHandle * handle, string filterStr, bool optimize = true, uint netmask = PCAP_NETMASK_UNKNOWN)Compiles a BPF filter string.
Parameters
handle | The pcap handle to use for compilation (can be a dead handle). |
filterStr | The BPF filter expression (e.g. "tcp port 80"). |
optimize | Whether to optimize the compiled code. |
netmask | The netmask of the interface (use PCAP_NETMASK_UNKNOWN if unknown). |
Returns
A