| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Public Attributes | List of all members
if_filter_opt_s Struct Reference

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.

## Detailed Description

Holds the value of an interface filter option, expressed as either a pcap filter string or a compiled BPF program.

## Member Data Documentation

## ◆ [struct] [1/2]

struct { ... } ::wtap_bpf_insns if_filter_opt_s::bpf_prog

Compiled BPF filter program; active when type indicates a BPF program filter.

## ◆ bpf_prog [2/2]

wtap_bpf_insn_t* if_filter_opt_s::bpf_prog

Pointer to the array of compiled BPF instructions.

## ◆ bpf_prog_len

unsigned if_filter_opt_s::bpf_prog_len

Number of BPF instructions in the bpf_prog array.

## ◆ filter_str

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.

## ◆ type

if_filter_type_e if_filter_opt_s::type

Discriminator indicating which member of data is active (filter string or BPF program).

The documentation for this struct was generated from the following file:

- /builds/wireshark/wireshark/wiretap/wtap_opttypes.h