wireshark/extcap
Guy Harris 842a7cccf9 wiretap: have file handlers advertise blocks and options supported.
Instead of a "supports name resolution" Boolean and bitflags for types of
comments supported, provide a list of block types that the file
type/subtype supports, with each block type having a list of options
supported.  Indicate whether "supported" means "one instance" or
"multiple instances".

"Supports" doesn't just mean "can be written", it also means "could be
read".

Rename WTAP_BLOCK_IF_DESCRIPTION to WTAP_BLOCK_IF_ID_AND_INFO, to
indicate that it provides, in addition to information about the
interface, an ID (implicitly, in pcapng files, by its ordinal number)
that is associated with every packet in the file.  Emphasize that in
comments - just because your capture file format can list the interfaces
on which a capture was done, that doesn't mean it supports this; it
doesn't do so if the file doesn't indicate, for every packet, on which
of those interfaces it was captured (I'm looking at *you*, Microsoft
Network Monitor...).

Use APIs to query that information to do what the "does this file
type/subtype support name resolution information", "does this file
type/subtype support all of these comment types", and "does this file
type/subtype support - and require - interface IDs" APIs did.

Provide backwards compatibility for Lua.

This allows us to eliminate the WTAP_FILE_TYPE_SUBTYPE_ values for IBM's
iptrace; do so.
2021-02-21 23:18:35 +00:00
..
.editorconfig HTTPS In More Places, update some URLs. 2019-07-27 07:55:36 +00:00
CMakeLists.txt MBIM: Update dissector to support DLT_ETW 2020-12-02 09:05:11 +00:00
androiddump.c Fix various spelling errors. 2020-12-09 05:52:50 +00:00
ciscodump.c extcap: put the code to add lissh version information into a common routine. 2020-07-16 10:00:01 +00:00
dpauxmon.c extcap: clean up the version number handling. 2020-07-16 02:48:45 +00:00
dpauxmon_user.h extcap: Support for DisplayPort AUX channel monitors 2018-05-14 10:44:37 +00:00
etl.c wiretap: have file handlers advertise blocks and options supported. 2021-02-21 23:18:35 +00:00
etl.h MBIM: Update dissector to support DLT_ETW 2020-12-02 09:05:11 +00:00
etw_message.c MBIM: Update dissector to support DLT_ETW 2020-12-02 09:05:11 +00:00
etw_message.h MBIM: Update dissector to support DLT_ETW 2020-12-02 09:05:11 +00:00
etwdump.c MBIM: Update dissector to support DLT_ETW 2020-12-02 09:05:11 +00:00
extcap-base.c Enable -Wredundant-decls. 2021-02-14 14:43:42 -08:00
extcap-base.h Enable -Wredundant-decls. 2021-02-14 14:43:42 -08:00
randpktdump.c extcap: clean up the version number handling. 2020-07-16 02:48:45 +00:00
sdjournal.c extcap: clean up the version number handling. 2020-07-16 02:48:45 +00:00
ssh-base.c extcap: put the code to add lissh version information into a common routine. 2020-07-16 10:00:01 +00:00
ssh-base.h extcap: put the code to add lissh version information into a common routine. 2020-07-16 10:00:01 +00:00
sshdump.c sshdump: fix detection of custom version in Windows 2020-12-09 22:02:42 +00:00
udpdump.c extcap: clean up the version number handling. 2020-07-16 02:48:45 +00:00