Function parse
Source pub fn parse(input: &str) -> Result<BpfExpr, BpfError>
Expand description
Parse a tcpdump/libpcap-style BPF filter expression into a compiled tree.
§Errors
Returns BpfError with the column offset of the first invalid token.
§Examples
use pcap_toolkit::bpf::parse;
let expr = parse("tcp and dst port 443").unwrap();