wireshark/epan/wslua
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 Even More Places, update some links. 2019-07-28 04:21:18 +00:00
CMakeLists.txt CMake: Use target_include_directores more. 2021-02-18 06:34:46 +00:00
console.lua Qt: point to Lua wiki page now on Gitlab 2020-10-02 17:25:54 +00:00
dtd_gen.lua
init_wslua.c wslua: explain, in a comment, how .init routines work for a Proto. 2021-02-05 22:02:54 -08:00
init_wslua.h epan: Remove unnecessary all protocols registration callback 2018-08-29 23:22:44 +00:00
lrexlib.c
lrexlib.h
lrexlib_algo.h
lrexlib_glib.c GLib: Bump requirement 2.32 -> 2.36 2020-11-25 06:25:38 +00:00
lrexlib_glib_f.c GLib: Bump requirement 2.32 -> 2.36 2020-11-25 06:25:38 +00:00
lua_bitop.c wslua: Include stdint.h on Windows. 2020-07-01 20:23:22 +00:00
lua_bitop.h
make-init-lua.pl wiretap: more work on file type/subtypes. 2021-02-17 21:54:28 +00:00
make-reg.pl wiretap: more work on file type/subtypes. 2021-02-17 21:54:28 +00:00
make-taps.pl
taps Rename packet-ssl* to packet-tls* 2018-09-25 13:24:17 +00:00
template-init.lua wiretap: more work on file type/subtypes. 2021-02-17 21:54:28 +00:00
wslua.h wiretap: more work on file type/subtypes. 2021-02-17 21:54:28 +00:00
wslua_address.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
wslua_byte_array.c Lua: base64_decode: handle unpadded data 2020-10-19 08:38:31 +00:00
wslua_capture_info.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
wslua_column.c wslua: Update the packet information docs. 2020-03-30 16:08:37 +00:00
wslua_dir.c wslua: Update the Dir and Utils docs. 2020-03-31 04:12:35 +00:00
wslua_dissector.c wslua: Return nil from Dissector.get() when not found 2020-11-05 06:23:24 +00:00
wslua_dumper.c WSDG: deprecate wtap_filetypes. 2021-02-13 22:12:23 -08:00
wslua_field.c wslua: Cross-reference and title case fixes. 2020-03-30 16:42:18 +00:00
wslua_file.c Have WTAP_ERR_INTERNAL include an err_info string giving details. 2020-10-14 04:51:45 +00:00
wslua_file_common.c Detect and replace bad allocation patterns 2020-12-22 14:56:38 +00:00
wslua_file_common.h HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
wslua_file_handler.c wiretap: have file handlers advertise blocks and options supported. 2021-02-21 23:18:35 +00:00
wslua_frame_info.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
wslua_gui.c Be more strict about opening URLs. 2021-02-15 08:47:57 +00:00
wslua_int64.c wslua: Update the Int64 docs. 2020-03-31 04:12:48 +00:00
wslua_internals.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
wslua_listener.c Lua: Improve Listener error handling 2020-12-04 13:38:00 +00:00
wslua_nstime.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
wslua_pinfo.c wslua: Make pinfo.p2p_dir writable 2020-10-22 14:18:58 +00:00
wslua_pinfo_common.h
wslua_pref.c Detect and replace bad allocation patterns 2020-12-22 14:56:38 +00:00
wslua_proto.c Detect and replace bad allocation patterns 2020-12-22 14:56:38 +00:00
wslua_proto_expert.c wslua: Fix memleak of unregistered ProtoExpert 2019-10-28 16:16:49 +00:00
wslua_proto_field.c Detect and replace bad allocation patterns 2020-12-22 14:56:38 +00:00
wslua_struct.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
wslua_tree.c Detect and replace bad allocation patterns 2020-12-22 14:56:38 +00:00
wslua_tvb.c Fix reported_len in Lua framewark when creating tvb from range. 2020-12-06 12:38:46 +00:00
wslua_util.c Detect and replace bad allocation patterns 2020-12-22 14:56:38 +00:00
wslua_wtap.c wiretap: more work on file type/subtypes. 2021-02-17 21:54:28 +00:00