|
Wireshark 4.7.2
The Wireshark network protocol analyzer
|
Holds the value of an interface filter option, expressed as either a pcap filter string or a compiled BPF program. More...
#include <wtap_opttypes.h>
Public Attributes | |
| if_filter_type_e | type |
| union { | |
| char * filter_str | |
| struct wtap_bpf_insns { | |
| unsigned bpf_prog_len | |
| wtap_bpf_insn_t * bpf_prog | |
| } bpf_prog | |
| } | data |
| The filter payload, interpreted according to type. | |
Holds the value of an interface filter option, expressed as either a pcap filter string or a compiled BPF program.
| struct { ... } ::wtap_bpf_insns if_filter_opt_s::bpf_prog |
Compiled BPF filter program; active when type indicates a BPF program filter.
| wtap_bpf_insn_t* if_filter_opt_s::bpf_prog |
Pointer to the array of compiled BPF instructions.
| unsigned if_filter_opt_s::bpf_prog_len |
Number of BPF instructions in the bpf_prog array.
| char* if_filter_opt_s::filter_str |
Null-terminated pcap filter expression string (e.g. "tcp port 80"); active when type indicates a string filter.
| if_filter_type_e if_filter_opt_s::type |
Discriminator indicating which member of data is active (filter string or BPF program).