Commit Graph

80088 Commits

Author SHA1 Message Date
Martin Mathieson 11e919898c Set a few more dissector vars/funs to static.
These are the last of the easy ones to fix/set.
2021-02-15 09:20:58 +00:00
Martin Kaiser 909bb0a012 dvb-ci: initial support for auxiliary file system resource
The Auxiliary File System Resource was added by the DVB-CI+ specification
v1.4. As a first step, this patch adds the framework for supporting the afs
resource and dissects two simple APDUs.

This is based on work by Jens Rosenboom.
2021-02-15 09:04:52 +00:00
Gerald Combs e99c9afce8 Be more strict about opening URLs.
In the proto tree, copy URLs instead of opening them.

In the export dialog, enable previews only if the advertised MIME type
*and* the contents of the file are plain text, GIF, JPEG, or PNG.

Add warnings to the wslua browser_open_url and browser_open_data_file
documentation.

Fixes #17232.
2021-02-15 08:47:57 +00:00
Gerald Combs 270c8ed746 CMake: Make sure system headers are treated as such.
Use target_include_directories instead of include_directories in a few
places as recommended at

https://cmake.org/cmake/help/latest/command/include_directories.html

Doing so lets us mark a bunch of dependency includes SYSTEM PRIVATE, in
particular LIBXML2_INCLUDE_DIRS. On macOS this keeps us from triggering
the nullability warnings described at

https://www.wireshark.org/lists/wireshark-dev/202004/msg00056.html

(This might also keep the Visual Studio code analyzer from complaining
about various Qt headers, but I haven't tested this.)
2021-02-15 08:31:08 +00:00
Guy Harris 3c404abf2c rpm-setup: install libgcrypt by default.
Wireshark now requires it.
2021-02-15 08:14:14 +00:00
Chuck Craft dde65b96cd ip: ip_ttl _ws.expert fields not set if no tree
See 'if (tree) ...' comment
Closes #17228
2021-02-15 07:33:39 +00:00
Chuck Craft 996bdc37bf WSDG/WSUG: Bugzilla->Gitlab Issues; bad MATE link
Bugzilla references are now Gitlab Issues.
Link to MATE tutorial page on Wiki to get config file.
2021-02-15 06:46:11 +00:00
Martin Mathieson 7f2ad0b7d1 IEEE8022.11: Fix some spellings. 2021-02-15 06:29:01 +00:00
Guy Harris de4cd04e60 gitlab-ci: try to make the RPM build less noisy.
See whether unsetting VERBOSE causes the build process not to print the
compile command, complete with a big list of compiler options, for every
single file being built, in the hopes of producing less than the limit
of 4MB of log text.
2021-02-14 21:07:53 -08:00
Guy Harris 2e4ea72f51 gitlab-ci: try to make the Debian build less noisy.
See whether setting DH_QUIET to 1 and MAKEFLAGS to --silent causes the
build process not to print the compile command, complete with a big list
of compiler options, for every single file being built, in the hopes of
producing less than the limit of 4MB of log text.
2021-02-14 18:48:00 -08:00
Guy Harris c0711693ab Enable -Wredundant-decls.
Add it to the default list of checks, and fix some errors it causes.
(Sadly, it doesn't work in CLang.)
2021-02-14 14:43:42 -08:00
Guy Harris 3387eef836 wiretap: remove duplicate declaration of wtap_block_get_type(). 2021-02-14 20:06:21 +00:00
Martin Mathieson 0cf834f909 Make some more variables and functions static. 2021-02-14 19:42:01 +00:00
Martin Mathieson e727d6f838 PDCP: set key error strings with g_strdup_print) 2021-02-14 15:00:19 +00:00
Gerald Combs 20bc017ba5 [Automatic update for 2021-02-14]
Update manuf, services enterprise numbers, translations, and other items.
2021-02-14 12:03:40 +00:00
Guy Harris b8b3531883 wiretap: register most built-in file types from its module.
Remove most of the built-in file types from the table in
wiretap/file_access.c and, instead, have the file types register
themselves, using wtap_register_file_type_subtypes().

This reduces the source code changes needed to add a new file type from
three (add the handler, add the file type to the table in file_access.c,
add a #define for the file type in wiretap/wtap.h) to one (add the
handler).  (It also requires adding the handler's source file to
wiretap/CMakeLists.txt, but that's required in both cases.)

A few remain because the WTAP_FILE_TYPE_SUBTYPE_ #define is used
elsewhere; that needs to be fixed.

Fix the wiretap/CMakefile.txt file to scan k12text.l, as that now
contains a registration routine.  In the process, avoid scanning files
that don't implement a file type and won't ever have a registration
routine.

Add a Lua routine to fetch the total number of file types; we use that
in some code to construct the wtap_filetypes table, which we need to do
in order to continue to have all the values that used to come from the
WTAP_FILE_TYPE_SUBTYPE_ types.

While we're at it, add modelines to a file that lacked them.
2021-02-14 00:58:46 -08:00
Guy Harris 5b3c3d0682 WSDG: deprecate wtap_filetypes.
Recommend the use of wtap_name_to_file_type_subtype() to get filetype
values, unless you need to run on older versions of Wireshark that don't
have it.

Don't even *mention* wtap_filetypes in the documentation for the new
wtap_ routines, as, if you have those routines, you have
wtap_name_to_file_type_subtype(), because it's one of those routines.

Fix references to "nul" while we're at it - it's "nil" in Lua.

(That part of the WSDG - the Lua reference - is generated, so this
involves changing the source code implementing the Lua routines.)
2021-02-13 22:12:23 -08:00
Guy Harris 8ec5906fd6 iseries: report Unicode files as Unicode rather than ASCII.
While we're at it, that's "Unicode", not "UNICODE" - it's not an
initialism, and isn't all-caps.
2021-02-13 20:23:08 -08:00
Alexis La Goutte 63d802099a ieee80211: Update Reference 2021-02-13 19:48:30 +00:00
Guy Harris 8bba6ebe5c wiretap: remove spaces from file format names.
File format names are used on the command line, so don't require them to
be quoted - replace the space in "systemd journal" with an underscore.
2021-02-13 10:35:58 -08:00
ferst 8037be0ef6 Modbus/TCP: Add TLS dissector
In 2018 Modbus Organization published a document named
"Modbus/TCP Security"[1] that specifies the use of Modbus/TCP over TLS.
This commit register a new dissector, "mbtls", reusing "mbtcp" proto. A
new option is added to define the Modbus/TLS port to be use in
`classify_mbtcp_packet`.

[1] https://modbus.org/docs/MB-TCP-Security-v21_2018-07-24.pdf
2021-02-13 17:44:12 +00:00
Nardi Ivan afeb15d4d8 QUIC: add support for more QUIC versions
See: https://github.com/quicwg/base-drafts/wiki/QUIC-Versions
2021-02-13 16:24:54 +00:00
Harald Welte 5d38347128 bssgp: Set in_error_pkt
Whenever we receive a BSSGP message indicating an error, set
in_error_pkt accordingly.  This will prevent higher layer dissectors
from clearing COL_INFO.
2021-02-13 15:46:32 +00:00
Harald Welte 318d86852d gprs-ns: Mark NS-STATUS as in_error_pkt
Like many transport protocols, NS has the ability to include
the "erroneous message" when reporting errors to its peer in
NS-STATUS PDUs.

The current UX however is super annoying:  The BSSGP dissector
clears COL_INFO and hence if you look at the packet list in wireshark,
it looks like a valid higher-layer message is transmitted over NS,
and there is no mention that this is an error (NS-STATUS).

By simply setting in_error_pkt, the behavior changes: The erroneous
message is still dissected in the protocol details, but COL_INFO
remains what the NS decoder has to say: NS-STATUS with a decoded
cause information.
2021-02-13 15:46:32 +00:00
David Fort 5260be8ab6 rdp: add Restricted authentication mode flags dissection
Dissect the Restricted authentication mode flags in RDP_NEG_RSP packets according to
MS-RDPBCGR 2.2.1.2.1
2021-02-13 14:51:32 +00:00
Guy Harris 24acef0885 wiretap: file types have a name and a description.
The "short name" is really just the name, used to look it up.  The
"name" is really a description intended solely for human consumption.
Rename the fields, and the functions that access them, to match.

The "description" maintained by Lua for file type handlers is used
*only* for one debugging message; we should probably just eliminate it.
Call it an "internal description" for now.
2021-02-13 01:25:39 -08:00
Guy Harris 28dbff322b WSDG: add UN*X targets for building packages. 2021-02-12 22:25:31 -08:00
Guy Harris f0ebc50762 wslua: expose some libwiretap APIs in Lua.
Provide Lua version of wtap_file_type_subtype_string(),
wtap_file_type_subtype_short_string(), and
wtap_short_string_to_file_type_subtype().

This will be backported to the 3.2 and 3.4 branches, to allow scripts
not run on the bleeding-edge version to use them.
2021-02-12 21:25:29 -08:00
Guy Harris b67494e32a WSDG: give more details on setting up a UNIX build environment.
List the minimum set of tools required.

We have scripts to do the setup work on a number of platforms.  Let the
user know about them.

Give instructions on using CMake; we're not using the traditional
autoconf stuff any more.

Give instructions on building the Developer's and User's Guides in the
UNIX section, and, in both that section *and* the equivalent Windows
section, give the name of the build target for building all guides.
2021-02-12 15:00:07 -08:00
Jaap Keuter b9bdc803bb ASTERIX: fix dissection of I010_041 and I010_042 fields
Fixes #17226
2021-02-12 14:20:53 +01:00
Pascal Quantin af119730e6 ISKAMP: fix a REPORT_DISSECTOR_BUG printf 2021-02-12 12:06:35 +01:00
Constantine Gavrilov 4c328749ac NVME RDMA dissector: add decoding of RDMA payload for connect command. 2021-02-12 10:57:27 +02:00
Constantine Gavrilov 7246677d42 NVME RDMA dissector: store RDMA transfers and link them to commands.
Details:
* At this point works for single RDMA transfer per command
* Commands are linked to RDMA requests
* RDMA requests are linked to commands (read and only first write)
* RDMA read requests are linked to read responses (only first response)
* RDMA read responses are linked to requests (only first response)
* RDMA read responses are linked to commands (only first response)
2021-02-12 10:57:27 +02:00
Constantine Gavrilov aea7f6fad2 NVME RDMA dissector: decode Property Get/Set structures. 2021-02-12 10:56:03 +02:00
Constantine Gavrilov bfa2ae5964 Revert "NVME RDMA dissector: store RDMA transfers and link them to commands."
This reverts commit 05d5506324.
Due to a wrong order of merge requests, and squashing the history,
I would like to split the commit into two independent changes.
2021-02-12 10:52:12 +02:00
Alex Nik c361d31843 added the description about the 29West stat menu 2021-02-12 07:48:51 +00:00
Constantine Gavrilov 5160fc895e NVME dissector: fix parsing of NVME Identify command. 2021-02-12 05:06:20 +00:00
Alex Nik 54abb56b1d added description for F5
added SME suggestions

minor fix
2021-02-12 04:49:24 +00:00
Alexis La Goutte aa0081327c wccp: fix unused variable ‘length_remaining’ [-Werror=unused-variable] 2021-02-11 21:56:37 +00:00
Alexis La Goutte 7d8d209c9f wccp: fix Dead Store found by Clang Analyzer
packet-wccp.c:2423:11: warning: Although the value stored to 'length_remaining' is used in the enclosing expression, the value is never actually read from 'length_remaining'
2021-02-11 21:56:37 +00:00
Alexis La Goutte 9d91ebd616 VNC: Fix dead store found by Clang
acket-vnc.c:1550:3: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
2021-02-11 21:56:37 +00:00
Alexis La Goutte a4bcc8bd13 snort: fix dead Store found by Clang Analyzer
packet-snort.c:515:15: warning: Although the value stored to 'line' is used in the enclosing expression, the value is never actually read from 'line'
2021-02-11 21:56:37 +00:00
Alexis La Goutte 3cf55c314e ieee80211: Fix Dead Store found by Clang Analyzer
packet-ieee80211.c:23771:5: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ieee80211.c:23905:9: warning: Value stored to 'offset' is never read [deadcode.DeadStores
packet-ieee80211.c:23994:9: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ieee80211.c:24083:9: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ieee80211.c:24146:9: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ieee80211.c:26495:7: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
2021-02-11 21:56:37 +00:00
Alexis La Goutte 2aab84350d someip-sd: Fix Dead Store found by Clang Analyzer
packet-someip-sd.c:531:9: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
2021-02-11 21:56:37 +00:00
Alexis La Goutte 6fc94ac462 extcap: Fix Dead Store found by Clang Analyzer
extcap.c:876:26: warning: Although the value stored to 'pref' is used in the enclosing expression, the value is never actually read from 'pref'
2021-02-11 21:56:37 +00:00
Alexis La Goutte f2888ecf38 btle: Fix Dead Store found by Clang Analyzer
packet-btle.c:1417:13: warning: Value stored to 'item' is never read [deadcode.DeadStores]
2021-02-11 21:56:37 +00:00
Alexis La Goutte a22ef5cca5 btatt: Fix Dead Store found by Clang Analyzer
packet-btatt.c:4754:17: warning: Value stored to 'tvb' is never read [deadcode.DeadStores]
2021-02-11 21:56:37 +00:00
Alex Nik a3bb5f2da3 Added the description for the SMPP operations 2021-02-11 21:40:57 +00:00
Constantine Gavrilov 05d5506324 NVME RDMA dissector: store RDMA transfers and link them to commands.
Details:
* At this point works for single RDMA transfer per command
* Commands are linked to RDMA requests
* RDMA requests are linked to commands (read and only first write)
* RDMA read requests are linked to read responses (only first response)
* RDMA read responses are linked to requests (only first response)
* RDMA read responses are linked to commands (only first response)
2021-02-11 21:38:15 +00:00
Dr. Lars Völker 7b9e8f3080 SOME/IP: Fix crash after loading a faulty uat config (BUGFIX)
When you load a correct wireshark config for SOME/IP responding
hashtable entries are created. If you load afterwards a new config
(empty or not) the old entries are updated.

However, Wireshark does not call the uat's post update callback,
when there was a bug in the config. This leads to an inconsistent
state, which may result in a crash on dissecting SOME/IP messages.

This patch adds code to the SOME/IP dissector to avoid inconsistent
state.

Fixes: #17227
2021-02-11 14:50:17 +00:00