wireshark/debian
Guy Harris a7256d50b5 wiretap: more work on file type/subtypes.
Provide a wiretap routine to get an array of all savable file
type/subtypes, sorted with pcap and pcapng at the top, followed by the
other types, sorted either by the name or the description.

Use that routine to list options for the -F flag for various commands

Rename wtap_get_savable_file_types_subtypes() to
wtap_get_savable_file_types_subtypes_for_file(), to indicate that it
provides an array of all file type/subtypes in which a given file can be
saved.  Have it sort all types, other than the default type/subtype and,
if there is one, the "other" type (both of which are put at the top), by
the name or the description.

Don't allow wtap_register_file_type_subtypes() to override any existing
registrations; have them always register a new type.  In that routine,
if there are any emply slots in the table, due to an entry being
unregistered, use it rather than allocating a new slot.

Don't allow unregistration of built-in types.

Rename the "dump open table" to the "file type/subtype table", as it has
entries for all types/subtypes, even if we can't write them.

Initialize that table in a routine that pre-allocates the GArray before
filling it with built-in types/subtypes, so it doesn't keep getting
reallocated.

Get rid of wtap_num_file_types_subtypes - it's just a copy of the size
of the GArray.

Don't have wtap_file_type_subtype_description() crash if handed an
file type/subtype that isn't a valid array index - just return NULL, as
we do with wtap_file_type_subtype_name().

In wtap_name_to_file_type_subtype(), don't use WTAP_FILE_TYPE_SUBTYPE_
names for the backwards-compatibility names - map those names to the
current names, and then look them up.  This reduces the number of
uses of hardwired WTAP_FILE_TYPE_SUBTYPE_ values.

Clean up the type of wtap_module_count - it has no need to be a gulong.

Have built-in wiretap file handlers register names to be used for their
file type/subtypes, rather than building the table in init.lua.

Add a new Lua C function get_wtap_filetypes() to construct the
wtap_filetypes table, based on the registered names, and use it in
init.lua.

Add a #define WSLUA_INTERNAL_FUNCTION to register functions intended
only for internal use in init.lua, so they can be made available from
Lua without being documented.

Get rid of WTAP_NUM_FILE_TYPES_SUBTYPES - most code has no need to use
it, as it can just request arrays of types, and the space of
type/subtype codes can be sparse due to registration in any case, so
code has to be careful using it.

wtap_get_num_file_types_subtypes() is no longer used, so remove it.  It
returns the number of elements in the file type/subtype array, which is
not necessarily the name of known file type/subtypes, as there may have
been some deregistered types, and those types do *not* get removed from
the array, they just get cleared so that they're available for future
allocation (we don't want the indices of any registered types to changes
if another type is deregistered, as those indicates are the type/subtype
values, so we can't shrink the array).

Clean up white space and remove some comments that shouldn't have been
added.
2021-02-17 21:54:28 +00:00
..
patches HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
po [Automatic update for 2019-12-01] 2019-12-01 08:20:14 +00:00
source debian: Bump standards version to 3.9.7 used in Ubuntu 16.04 2016-10-17 15:30:05 +00:00
tests debian: Add autopkgtest for testing starting GUI and CLI 2019-07-24 09:40:55 +00:00
README.Debian Clean up URLs. 2020-10-02 20:13:42 -07:00
README.Debian.security
changelog Version: 3.3.0 → 3.5.0. 2020-10-22 19:15:42 +00:00
compat
control wiretap: Convert ascend.y to Lemon. 2020-11-30 08:15:43 +00:00
copyright HTTPS In More Places, update some URLs. 2019-07-27 07:55:36 +00:00
dirs
ethereal-common.NEWS HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
headers-check.c debian: use SPDX identifiers. 2018-02-08 16:15:31 +00:00
libwireshark-data.install Transition from GeoIP Legacy to MaxMindDB. 2018-03-06 18:02:21 +00:00
libwireshark-dev.install Move the protocol registration routines back into libwireshark 2017-11-21 20:21:50 +00:00
libwireshark0.install debian: Ship codecs libraries in libwireshark0 2020-03-15 16:55:31 +00:00
libwireshark0.lintian-overrides debian: add lintian-overrides for libwireshark0 (spelling-error-in-binary) 2018-07-27 06:57:00 +00:00
libwireshark0.symbols Avoid exposing HAVE_PLUGINS in the public API 2021-02-06 16:35:51 +00:00
libwiretap-dev.install Don't ship libfiletap in the .deb packages yet 2014-06-08 15:33:05 +00:00
libwiretap0.docs
libwiretap0.install usbdump: Add usbdump wiretap plugin as functional example 2018-01-30 05:44:38 +00:00
libwiretap0.symbols wiretap: more work on file type/subtypes. 2021-02-17 21:54:28 +00:00
libwsutil-dev.install debian: add ws_compiler_tests.h to libwsutils-dev.install 2017-10-27 08:52:25 +00:00
libwsutil0.install
libwsutil0.symbols editcap: add support for epoch timestamps in `-A` and `-B` options 2021-01-11 18:01:08 +00:00
license-text-about-dialog debian: remove double spaces. 2020-01-07 12:45:00 +00:00
maxmind_db_paths Transition from GeoIP Legacy to MaxMindDB. 2018-03-06 18:02:21 +00:00
postinst
rules GitLab CI: Build merge-req:ubuntu-dpkg using Ninja. 2020-12-29 10:09:36 +00:00
templates debian: Use debconf messages instead of "echo" in postinst/postrm 2017-08-07 22:39:06 +00:00
tshark.docs
tshark.install
tshark.lintian-overrides debian: Update lintian-overrides to cover updated manpages 2016-10-18 04:06:12 +00:00
tshark.manpages Add doc/CMakeLists.txt 2016-03-10 11:19:09 +00:00
wireshark-common.config debian: Merge multiple small packaging fixes from Debian 2015-12-06 20:35:54 +00:00
wireshark-common.install Fix up the lists of binaries and man pages in dpkgs. 2019-01-11 23:20:24 +00:00
wireshark-common.lintian-overrides debian/control: fix minor Lintian warnings related to Priority, etc. 2019-06-21 16:59:14 +00:00
wireshark-common.manpages Fix up the lists of binaries and man pages in dpkgs. 2019-01-11 23:20:24 +00:00
wireshark-common.postinst debian: Fix permission change in case of local diversions 2019-07-24 09:40:35 +00:00
wireshark-common.postrm debian/control: fix minor Lintian warnings related to Priority, etc. 2019-06-21 16:59:14 +00:00
wireshark-dev.docs
wireshark-dev.install CMake: Change installation path for modules 2018-08-24 14:39:08 +00:00
wireshark-dev.manpages Add doc/CMakeLists.txt 2016-03-10 11:19:09 +00:00
wireshark-dev.prerm
wireshark-doc.docs debian: Don't ship unused duplicated images for guides 2015-11-17 19:14:20 +00:00
wireshark-qt.docs
wireshark-qt.install Linux: rename metadata according to spec 2020-12-10 18:11:12 +00:00
wireshark-qt.lintian-overrides debian: Update lintian-overrides to cover updated manpages 2016-10-18 04:06:12 +00:00
wireshark-qt.manpages Add doc/CMakeLists.txt 2016-03-10 11:19:09 +00:00

README.Debian.security

 Handling security fixes in source package wireshark

Wireshark is a network protocol analyzer and it's ability to perform deep
packet inspection in live traffic may encourage users to use Wireshark/Tshark
as a part of an intrusion detection or traffic monitoring system.
In that case, please note that Wireshark/Tshark may contain remotely
triggerable bugs causing crashes or allowing code injection.

Bugs allowing code injection will be fixed in regular Debian Security
Advisories, but fixes for pure crash bugs may be delayed.

 -- Balint Reczey <balint@balintreczey.hu> Fri, 10 Jul 2009 15:38:33 +0200