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 /epan/dissectors/packet-dcerpc-pnp.c | |
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 'epan/dissectors/packet-dcerpc-pnp.c')
0 files changed, 0 insertions, 0 deletions