Commit Graph

85082 Commits

Author SHA1 Message Date
Martin Mathieson ed7c6a9946 OCP1: Make all value_strings static 2022-08-27 21:05:45 +01:00
John Thacker fe22512461 debian packaging: Fix missing symbols for renamed routines
Commit deb95a275d and
commit 8195bdd340 renamed several
conversation related routines. Update the names for debian/ubuntu
2022-08-27 14:46:40 +00:00
John Thacker 6316d9a291 netflow: Sequence numbers are by Transport Session
RFCs 5101/7011 make it clear that sequence numbers are uniquely
associated for each Observation Domain withing a Transport Session.
That means that the sequence number tracking should be conversation
data. (This is not quite right on SCTP, because "Each SCTP Stream
counts sequence numbers separately, while all messages in a TCP
connection or UDP session are considered to be part of the same
stream," but find_conversation_pinfo for SCTP gets a conversation
based on the association, and getting the stream id is not transparent.
It is closer to correct.)

This prevents warning about bad sequence numbers when there are
multiple Transport Sessions within a capture for the same
Observation Domain ID (most likely for the default value 0.)

Go ahead and make the other map with the stored sequence analysis
results that is keyed by frame number into proto data as well.
2022-08-27 12:05:30 +00:00
John Thacker e725502afa tcp: Fix a comparison that should be strict in OOO processing
We don't want to add a zero length segment to the reassembly here.
Related to #17406
2022-08-27 11:47:42 +00:00
Dr. Lars Völker 89457e01da DoIP: Prepare for ISO 13400-2:2019Amd1 and newer
This patch allows to parse messages for the upcoming 2019 Amd1 version
that uses header version 4. Since the standard is not final yet, more
changes to fully support it are (probably) required.

In addition, this patch does not stop parsing, if the version is
unknown. Since the last releases were basically compatible, assuming
that the header can be parsed is the better choice.
2022-08-27 09:54:57 +00:00
Michael Tuexen 1576896e0a TCP: Raise an expert info for non-zero data after EOL
While it is the correct action for a TCP end-point to stop
processing of the options when an EOL is found, a protocol
analyzer should at least ensure that there is no non-zero
data after it.
2022-08-26 22:58:28 +02:00
João Valverde 867a068332 CMake: Add back a Wireshark env var to configure Qt
Use the variables WIRESHARK_QT{5,6}_PREFIX_PATH.

This allows having Qt5 and Qt6 paths configured isimultaneously and switch easily between them.

Use list(APPEND) to avoid clobbering other CMAKE_PREFIX_PATH paths.

Follow-up to b33210750c.
2022-08-26 09:55:41 +00:00
João Valverde fc952ac2f1 Qt: Increase file dialog size with a scale factor
By default Qt file dialogs are too small and cramped.

Fixes #18230.
2022-08-26 09:33:58 +00:00
Martin Mayer 3af04ebf87 OCP.1: Change Protocol Short Name 2022-08-26 09:13:31 +00:00
Dr. Lars Völker 05916eec1f DLT: Adding support to open DLT files
This patch allows Wireshark to open DLT files directly.
2022-08-26 07:45:36 +00:00
Guy Harris 95aff565ab conversation: fix some comments. 2022-08-26 00:10:01 -07:00
Guy Harris deb95a275d Rename routines that talk about conversation keys to talk about elements.
And change them to say "set" rather than "create"; they do more than
just allocate an array of conversation elements, they stuff a pointer to
that array into pinfo, which may affect what other dissectors do.
2022-08-25 22:37:19 -07:00
Guy Harris 8195bdd340 Rename a bunch of things with "conversation".
A conversation in Wireshark might have two endpoints or might have no
endpoints; few if any have one endpoint.  Distinguish between
conversations and endpoints.
2022-08-25 20:02:20 -07:00
John Thacker b65b95dda4 CMake: Build test_programs automatically when running test
Since we require CMake version at least 3.7, we can use fixtures
to ensure that the unittests have been built before running
suite_unittests.

This only applies to running the tests via ctest (including
'[ninja|make] test'), not when running pytest directly.

Fix #17191
2022-08-26 00:51:10 +00:00
João Valverde 67ceab96c8 Gitlab CI: Use Qt6 with Ubuntu builds
Our ubuntu container has Qt6 so use the default Qt version.

The APT packages are still using Qt5 at the moment. We may want to
migrate those to Qt6 in the future and choose a single Linux build
using Qt5.
2022-08-25 21:55:46 +01:00
João Valverde f2073b6d74 Qt: Fix build with Logray and Qt6
Copied from 349787051e.
2022-08-25 21:55:46 +01:00
Alexis La Goutte f6a299ffc4 windows: Upgrade nghttp2 to 1.49.0 2022-08-25 18:01:37 +00:00
Pascal Quantin 5fa60f079e Windows: upgrade Npcap to 1.71 2022-08-25 18:01:11 +00:00
DarienSpencer65 f593c4165e AT: Implement CMGR command (binary mode) 2022-08-25 16:47:28 +00:00
Angelo Spampinato 52e34b2531 Adding some SharkFest info to the welcome screen 2022-08-25 16:43:56 +00:00
João Valverde 1d8f8d620d tools: Add --install-all option to some setup scripts 2022-08-25 10:35:02 +01:00
João Valverde 8e77b5c499 Gitlab CI: Build Fedora RPM job using Qt6 2022-08-25 08:26:32 +00:00
João Valverde 1f3876f48b Gitlab CI: Clean up formatting 2022-08-25 08:26:32 +00:00
João Valverde 94da25af6c RPM: Add support for Qt6 and Fedora Linux 2022-08-25 07:54:00 +00:00
João Valverde 1c26cb178f rpm-setup.sh: Add support for Qt6 2022-08-25 07:54:00 +00:00
Guy Harris b6a21c6855 mxproxy: don't mix PT_ and ENDPOINT_ values.
PT_TCP and ENDPOINT_TCP happen to have the same numerical value, and
PT_UDP and ENDPOINT_UDP happen to have the same numerical value, but we
shouldn't cheat and just type-pun a PT_ value to an ENDPOINT_ value.

Instead, make the relevant structure members endpoinnt_type values and
assign them ENDPOINT_ values.
2022-08-24 23:38:14 -07:00
Guy Harris bb8d23192e Add a comment explaining WTAP_NSTIME_32BIT_SECS_MAX. 2022-08-25 01:42:31 +00:00
John Thacker d8e877f610 HTTP: Test the first header line in a PDU more
For a PDU where we haven't seen a request, response, or
header line yet, check to see if the header name is valid
before deciding that it is a header. Prevents many false
positives on continuation data that happens to have a line
end and a colon, where we couldn't do desegmentation for
some reason.
2022-08-25 01:08:54 +00:00
Chuck Craft 4915b646d0 tls 1.3: set CCM aad_len for draft >= 25
Closes #18277
2022-08-25 00:51:40 +00:00
John Thacker 16563952f4 tcp: Update the maxnextseq on ooo MSPs properly
If we get a new contiguous fragment that is inserted into the
middle of a MSP in progress, we need to update maxnextseq by
looking at all the fragments part of that MSP that are now contiguous.
Related to #17406
2022-08-25 00:24:00 +00:00
Stig Bjørlykke e0c302330b wiretap: Fix build on 32-bit Linux
Add WTAP_NSTIME_32BIT_SECS_MAX to define the maximum timestamp
for some formats where this is not known.
2022-08-24 23:26:19 +00:00
João Valverde eba586040e msys2-setup.sh: Add support for Qt6 2022-08-24 20:34:35 +01:00
João Valverde 573a9d0aa4 debian-setup.sh: Add support for Qt6
One or both Qt version deps can be selected with a command line option.

If no option is given the script will select Qt6 for Ubuntu 22.04 or
later, Qt5 otherwise.
2022-08-24 16:39:17 +00:00
Martin Mayer ffde66ea7c dissector: Open Control Protocol OCP.1/AES70 2022-08-24 14:20:18 +00:00
John Thacker fab27018b4 dtls: Handle invalid use_srtp protection profiles length
Handle a bad length, and set some expert infos if bad. Fix #18289
2022-08-24 08:30:03 -04:00
Guy Harris 2aeaf71fa5 Change names to reflect that it's an endpoint table.
More {host, hostlist} -> endpoint.
2022-08-23 22:15:45 -07:00
Chuck Craft 5399334ebc smpp: add NULL address_range to packet details
Sample capture attached to #6108
Account for all the bytes displayed in the packet bytes.
https://smpp.org/SMPP_v5.pdf - 4.7.3 address_range
2022-08-24 03:42:09 +00:00
Pau Espin e9618dccb1 BSSMAP: Show SAC in CellId tree
Similar is done for CGI, where LAC (%x)/CI (%u) is shown.
Let's do the same for SAI case, otherwise it's confusing since it first
looks as if LAC Cell Identifier was sent, but it is actually of type
SAI.
2022-08-24 03:01:50 +00:00
John Thacker 6da668d303 SMTP: Handle pipelining of DATA and BDAT
Handle RFC 2920 and RFC 3030 pipelining of DATA and BDAT. This
involves:

Instead of storing a single PDU type for each frame, storing
a linked list of PDUs (with end offsets), in order to handle
frames that switch between data and command state. This includes
handling other commands before or after a BDAT command, or handling
other commands after a DATA EOM. That means parsing the remaining
lines after BDAT and EOMs on the first pass instead of assuming that
the rest of the frame has a known type.

Also, RSET commands allow switching between BDAT transaction
and DATA transactions, per RFC 3030.

The case where more than one message is completed in a single frame
is not yet handled. RFC 2920 and 3030 imply that this is non-standard,
but it could work. To handle it, we would also have to track message
numbers in order to give fragment_add_seq_next unique frag IDs.
(It doesn't handle more than one fragment with the same ID ending in
the same frame.)

Fix #17269. Fix #17267.
2022-08-24 02:42:41 +00:00
Guy Harris 4b53f31d2d Fix comments to reflect reality.
It's an endpoint table, not a table of hosts.
2022-08-23 19:07:25 -07:00
John Thacker 66e19f9622 Qt: Silence warning
In the case that this is being called with an address type that
is neither IPv4 or IPv6, make sure that the char array used
to construct the QString is null terminated so that there's no
warning about using addr uninitialized or a possible strlen running
off the end.
2022-08-24 00:36:12 +00:00
João Valverde 30bfc732df debian-setup.sh: Add missing packages 2022-08-24 01:15:23 +01:00
Jérôme Pouiller ef513118f9 Update Wi-SUN FAN dissector with LBC-IE
The last specification of the Wi-SUN FAN (I have not checked when it
appeared, but it is present in 1.1v04) introduce LBC-IE (see
"6.3.2.3.1.17 LFN Broadcast Configuration Information Element
(LBC-IE)").
2022-08-23 19:54:17 +00:00
Jérôme Pouiller 3fc57d3f93 Update Wi-SUN FAN dissector with last LBS-IE specification
The last specification of the Wi-SUN FAN (I have not checked when it
appeared, but it is present in 1.1v04) introduce the field
broadcast_sync_period in LBS-IE (see "6.3.2.3.1.13 LFN Broadcast
Schedule Information Element (LBS-IE)").
2022-08-23 19:54:17 +00:00
Guy Harris ec6fd00518 Fix deprecation warning.
get_hostlist_packet_func() was not deprecated in favor of itself, it was
deprecated in favor of get_endpoint_packet_func().
2022-08-23 19:20:47 +00:00
Michael Tuexen 13a302da6e TCP: Improve consistency of reproting the SACK supported option
The =1 part does not make any sense in reporting SACK_PERM=1.
There is no value in the option and if it is not supported the
option is not there. So remove the =1 part.
2022-08-23 19:02:24 +00:00
João Valverde 1b210202a5 Gitlab CI: TShark build jobs don't need USE_qt6 2022-08-23 18:43:07 +00:00
Alexis La Goutte 73bd37cec8 NSIS: Remove Quick Gui checkkbox 2022-08-23 16:54:10 +00:00
João Valverde a27ecac02a Gitlab CI: Use DWARF-4 with Valgrind Fuzz job
Valgrind does not support Clang 14 + DWARF-5.

Ping #18191.
2022-08-23 16:09:23 +00:00
João Valverde 3109ba9e57 epan: Add back missing public API declaration.
Follow-up to d9e662bc54.
2022-08-23 14:44:23 +01:00