diff options
author | Guy Harris <gharris@sonic.net> | 2021-02-01 15:56:47 -0800 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-02-01 16:50:01 -0800 |
commit | 0773147a5598f50d456a855e7169c50aa02df16f (patch) | |
tree | d76d7f769c0824876117c875a1364850ccac56a2 /wiretap/wtap.h | |
parent | 5837bcea5e347afd2a6e5860296de09cbb5a0b28 (diff) |
wiretap: redo the way we handle if_filter IDB options.
Change the data structure for that option to have a type field,
indicating that it's either a pcap filter string or a BPF program,
followed by a union with a string-pointer member for pcap filter strings
and an instruction-count-and-pointer-to-instructions structure for BPF
programs.
Have routines to add, set, and fetch that option that handle that
structure; discard the "generic structured option" routines. That means
there's more type checking possible at compile time.
Add more code to handle BPF programs.
When writing pcapng files, check, both for that option and for string
options, whether the option length is too big for the data to fit in a
pcapng option, and don't write it if it is. (XXX - truncate the data?
Report an error?)
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r-- | wiretap/wtap.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h index 9005cf3290..9e4b835bd5 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -1515,15 +1515,6 @@ typedef struct wtapng_dsb_mandatory_s { guint8 *secrets_data; /** Buffer of secrets (not NUL-terminated) */ } wtapng_dsb_mandatory_t; -/* Interface description data - Option 11 structure */ -typedef struct wtapng_if_descr_filter_s { - gchar *if_filter_str; /**< NULL if not available - * libpcap string. - */ - guint16 bpf_filter_len; /** variant II BPF filter len 0 if not used*/ - guint8 *if_filter_bpf_bytes; /** BPF filter or NULL */ -} wtapng_if_descr_filter_t; - /** * Holds the required data for pcapng Interface Statistics Block (ISB). */ |