Commit Graph

81042 Commits

Author SHA1 Message Date
Pascal Quantin 7816d49bb4 NGAP: fix dissection of UERadioCapability IE for NB-IoT UEs 2021-05-20 18:45:39 +02:00
Anders Broman 31ca47eafc Use ENC_APN_STR in one more place. 2021-05-20 12:21:06 +00:00
Martin Mathieson f54221b579 DCT2000: allow for longer lines/PDUs 2021-05-20 12:05:23 +00:00
Piotr Winiarczyk f7c6d2e9e5 btmesh: Add dissectors of some generic opcodes
Add dissectors of some opcodes from Mesh Models document. Closes #17402
2021-05-20 11:08:43 +00:00
AndersBroman 754cce9531 Add ENC_APN_STR to handle APN strings 2021-05-20 09:27:53 +00:00
Alexis La Goutte 34ae07e180 ieee80211: reorder some ett rnr field 2021-05-20 04:01:33 +00:00
Alexis La Goutte 4228201eaa ieee80211: Enhance display when there is multiple TBTT Information 2021-05-20 04:01:33 +00:00
Alexis La Goutte 6d29f28557 ieee80211: Fix Multiple Neigbor AP Information on RNR 2021-05-20 04:01:33 +00:00
João Valverde cee1b443b5 wsutil: Add ws_assert_bounds() 2021-05-20 03:01:05 +01:00
João Valverde adfb0b99c2 wsutil: Avoid using g_abort()
g_abort() requires GLib 2.50, our minimum required version
is 2.38.
2021-05-20 03:01:05 +01:00
João Valverde cf0cb5819f Fixup ws_assert() macro
Use a void expression instead of removing the expression
entirely. Under certain conditions, for example as the only
statement in an if() conditional, removing the assertion
will generate compiler warnings.
2021-05-20 03:01:05 +01:00
João Valverde 01144f9109 Fix a maybe-uninitialized warning with -O3 (gcc)
GCC 11.1.0.

./epan/dissectors/packet-dcerpc-netlogon.c: In function ‘dissect_secchan_verf’:
../epan/dissectors/packet-dcerpc-netlogon.c:8162:13: error: ‘digest’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 8162 |     guint64 digest;
      |             ^~~~~~
2021-05-20 03:00:21 +01:00
David Perry 32cc1c7906 Remove use of PACKAGE_VERSION in maxminddb version 2021-05-19 17:16:01 +00:00
David Perry a1ba9453ef Add version info for lz4, zstd, maxmind
This simply implements the patches given in a comment on bug 16270.
<https://gitlab.com/wireshark/wireshark/-/issues/16270#note_400748726>
2021-05-19 13:38:25 +00:00
Dirk Römmen a1a2b53663 BACnet: BACnet revision 22 secure connect datalink implementation.
- Implements the BACnet /SC datalink using encrypted TLS communication
over TCP/IP and the websocket protocol.
- Updated list of vendor ID's
- Added new BACnet services Who-Am-I / You-Are
- Some corrections for revision 22.
- Fixed bug issue #17142
2021-05-19 13:21:48 +00:00
Michał Kaźmierowski df508537be OER: check unused bit count while parsing bit string 2021-05-19 12:28:07 +02:00
João Valverde e10f761362 wslua: Replace g_assert() with ws_assert() 2021-05-19 03:52:45 +01:00
João Valverde 1fe4638648 wmem: Replace g_assert() with ws_assert() 2021-05-19 03:52:45 +01:00
João Valverde 8eacd615c8 Disable assertions for release builds
Currently our build generates very many warnings if
G_DISABLE_ASSERT is defined.

Add ws_assert() and ws_assert_not_reached() to incrementally
replace existing assertions and then disable them using
WS_DISABLE_ASSERT.

Assertions are disabled with CMake build type Release.
By default the build type is RelWithDebInfo so the current
behaviour of enabling assertions by default is (for now) preserved.

Add some notes to README.Developer.
2021-05-19 03:52:45 +01:00
Anders Broman 1ad447aab9 NRPPA: Update to 3GPP TS 38.455 V16.3.0 (2021-04) 2021-05-18 10:11:30 +00:00
Christian Fischer dd7639f64c packet-cip.c: Remove superfluous space in vendor name of cip_vendor_vals 2021-05-18 08:56:20 +00:00
Guy Harris 6e95a0aa47 PortsModel: don't populate it by doing a lot of weird string-pushing.
When enumerating port-to-name entries, the callback to
wmem_map_foreach() gets passed:

- a key, which is the port number for the entry;
- a value, which is a pointer to a structure containing pointers to port
names for various transport protocols;
- a user data pointer.

That's sufficient (if you work around some C++ annoyances) to append a
row to a PortsModel, if the user data pointer is a pointer to the
PortsModel.

The existing code, instead, appended to a QStringList of lines (in
effect, undoing the effort of the code that read the services file and
filled in the wmem_map, re-generating a set of lines) in the callback,
and then iterated over all the lines, splitting them with blanks and
appending rows.

Looking at that made my eyeballs bleed so badly that I decided not to
spend any time figuring out why it wasn't working.

So I just make the callback just append rows, avoiding all the
string-pushing.

Fixes #17395.
2021-05-18 01:03:04 -07:00
Nardi Ivan 389a899a18 QUIC: improve handling of unencrypted padding data
0af60377b4 added an heuristic to detect (unencrypted) padding data;
it is based on the fact that all coalesced QUIC packets must have the
same CID.
Unfortunately it doesn't work when the CID length is 0.

Treat decryption error of SH packets as a non fatal error, report them
as possible padding data misdetectd as coalesced packets and try
decrypting next traffic.

Close #17383
2021-05-17 20:10:59 +02:00
Dario Lombardo 5eb6b85a7a sparkplug: fix crash.
The crash occurs when we don't have enough data to perform a string
comparison. Fix by first check it.
2021-05-17 16:05:00 +00:00
Dario Lombardo 8f8453bb12 spakplug: fix leak. 2021-05-17 16:05:00 +00:00
Anders Broman dda4a4f4c8 LCS-AP: Update to V16.2.0 (2020-12) - no code change 2021-05-17 15:49:22 +00:00
Dario Lombardo 9d3069fe7d
http: fix compilation without zlib and brotli. 2021-05-17 10:06:08 +02:00
John Thacker 157222a031 NGAP, XNaP, NAS_5GS: Add E212_GUAMI to MCC/MNC field choices 2021-05-16 19:39:15 -04:00
Pascal Quantin 1767788e3c NAS EPS: use newly introduced E212_GUMMEI 2021-05-16 23:24:02 +02:00
John Thacker c571e0a5d5 S1AP, X2AP: Add GUMMEI MNC/MCC fields
Add a new MNC/MCC field type to packet-e212 for the GUMMEI
(Globally Unique MME Identity), and use it where appropriate
in S1AP and X2AP. See 3GPP TS 23.003.
2021-05-16 15:59:35 -04:00
Trevor Bergeron 7c0c66b3cc Docs: Fix git hook ln command 2021-05-16 14:31:31 +00:00
Gerald Combs e33147d573 [Automatic update for 2021-05-16]
Update manuf, services enterprise numbers, translations, and other items.
2021-05-16 09:29:06 +00:00
Uli Heilmeier 0630631e88 HTTP: Disabled decompression is not an error
When a user disabled decompression we shoudn't report this as an error.
2021-05-15 20:14:30 +00:00
Emmanuel Touzery 467f13f16c fix #17369 tshark json now handles mixed children 2021-05-15 13:35:01 +00:00
pengtian fb41f052bb Add Chinese GMTLSv1(1.1) protocol in tls dissector 2021-05-15 08:39:40 +00:00
Guy Harris 1a7b9c28d3 Don't include wsutil/plugins.h in epan/epan.h - it's not necessary.
It's *not* part of the exported API, but epan/epan.h is, and everything
that needs it either includes it or includes someething else that
includes it.

See issue #17390.
2021-05-14 23:46:31 -07:00
John Thacker 7ab95200c1 SBC-AP: Use specific MCC/MNC fields
Use specific MCC/MNC fields for ECGI, NRCGI, TAI, and 5GSTAI, continuing
to use E212_NONE for all other IEs.
2021-05-15 06:12:41 +00:00
John Thacker 2ab87f882d M2AP, M3AP: Use ECGI specific MCC/MNC fields
Use the specific MCC/MNC fields for the ECGI IE, and continue to
use E212_NONE for all others.
2021-05-15 05:57:37 +00:00
John Thacker e020b44e7c XNAP: Use specific MCC/MNC fields
Use the specific MCC/MNC fields for the E-CGI and NR-CGI IEs,
and the 5GSTAI IEs. Continue to use E212_NONE for all others
(including GlobalNG-RANCell-ID, which has a PLMN-Identity and
then a choice of EUTRA or NR cell identity in a way that makes
it difficult to determine if it is a ECGI or NRCGI when the
ASN.1 is processed in sequence.)
2021-05-14 19:23:11 -04:00
David Perry 162cba438d Don't try to install qt5-default
As of Debian bullseye and Ubuntu 21.04, `qt5-default` is no longer
available. This patch removes it and adds its dependencies instead
as suggested in <https://askubuntu.com/a/1335187/580576>.
2021-05-14 21:31:26 +00:00
Gerald Combs 7b2c0edb74 CMake: Remove a no-longer-needed workaround.
It looks like the setting autogen properties for the wireshark target in
2c62e2eb3f means we don't have to work around CMake issue 22085 any
more.
2021-05-14 13:45:47 -07:00
Gtker e693cd05b1 WOW: Change realm timezone to id
The timezone is not sent.

The id is used for initial sorting the in client realm list.

Wiki reference:
https://wowdev.wiki/Packets/Login/Vanilla#Server_2

C++ implementation:
https://github.com/EmberEmu/Ember/blob/development/src/login/grunt/server/RealmList.h
2021-05-14 15:18:34 +00:00
Gtker e10fc59720 WOW: Change realm color to category
The "color" was probably confused with the realm flags field.

Wiki reference:
https://wowdev.wiki/Packets/Login/Vanilla#Server_2

C++ implementation:
https://github.com/EmberEmu/Ember/blob/development/src/login/grunt/server/RealmList.h
2021-05-14 15:18:34 +00:00
Gtker ac1a9f1aed WOW: Add two factor fields for client proof packet
Wiki reference:
https://wowdev.wiki/Packets/Login/Vanilla#Proof_packets

C++ implementation:
https://github.com/EmberEmu/Ember/blob/development/src/login/grunt/client/LoginProof.h
2021-05-14 15:18:34 +00:00
Gtker c0e2f60325 WOW: Add two factor fields for server challenge packet
Wiki reference:
https://wowdev.wiki/Packets/Login/Vanilla

C++ implementation:
https://github.com/EmberEmu/Ember/blob/development/src/login/grunt/server/LoginChallenge.h
2021-05-14 15:18:34 +00:00
Gtker ac8f95951e WOW: Reduce indentation in main parsing function
Having basically the entire function inside an if block is annoying to
read.
2021-05-14 15:18:34 +00:00
Graham Bloice f6ad4812a2 Add SparkplugB dissector
Add a dissector for SparkplugB as a heuristic subdissector of MQTT
and which calls protobuf to dissect the messages payload.
2021-05-14 12:11:03 +01:00
Gerald Combs 2c62e2eb3f CMake: Set Qt autogen properties for Wireshark.
It looks like multi-configuration generators (notably MSBuild) need
Qt autogen properties set on the wireshark target as well as qtui. Do
so unconditionally in both cases. (We were doing so conditionally for
qtui before.)
2021-05-14 07:55:25 +00:00
Dr. Lars Völker 9a400118df UDS: Adding support for Routine ID and Data ID resolution 2021-05-14 07:39:10 +00:00
Dr. Lars Völker 771872cc7e SOME/IP-SD: Adding support for parsing into the config string
This patch splits the SOME/IP-SD configuration string according to
the specification into smaller key-value-pairs or keys. This makes
analysis involving the configuration options much easier since it
allows filtering on these elements of the configuration string.
2021-05-14 07:22:39 +00:00