]> The Tcpdump Group git mirrors - libpcap/commit
Introduce bpf_filter1 function
authorMichal Sekletar <[email protected]>
Tue, 5 Aug 2014 14:46:19 +0000 (16:46 +0200)
committerMichal Sekletar <[email protected]>
Mon, 3 Nov 2014 13:54:10 +0000 (14:54 +0100)
commit02e420f820750e970c93068c01ea10d4c16f2b9a
treef73f0d3a3a15189ea824a1e4c179e67a614a567e
parent0a5aeb6a0865c8fb2b26b0ec74c72d0bef215d8f
Introduce bpf_filter1 function

Function takes additional argument which is a pointer to bpf_aux_data
structure. This newly introduced struct holds auxiliary data provided by caller
to specify additional data needed to implement some BPF extensions while
executing filter in userspace.

bpf_filter1 currently implements support for two BPF extesions, namely
vlan_tci and vlan_pr.
bpf/net/bpf_filter.c
pcap/bpf.h