Commit Graph

85371 Commits

Author SHA1 Message Date
Dr. Lars Völker 2c2710e3e7 AUTOSAR-IPDUM: Remove warning by adding missing newline 2022-09-05 18:33:25 +00:00
Dr. Lars Völker 79e76e9c2f MacOS: Add qt6 to MacOS Brew Setup 2022-09-05 17:58:20 +00:00
Gerald Combs 4819716f14 Tools: Switch make-manuf.py URLs to HTTPS.
standards-oui.ieee.org is now served over HTTPS.
2022-09-05 17:55:33 +00:00
Jason Cohen 67326401a5 f5ethtrailer: Fix possible infinite loop in legacy trailer heuristic 2022-09-05 17:31:42 +00:00
Guy Harris eb83e055b8 AppleTalk, DSI: get rid of the "command" field.
It's not needed.

Instead, have get_transaction() return the request_val; the caller can
fetch the command from its "value" member.

While wee're at it, update some of the web reference information for
DSI.
2022-09-04 18:13:06 -07:00
Gerald Combs ab4a4304ee Add Logray icons.
Add lricon.svg and lriconinst.svg, which provide the core graphic
element for the various Logray icons. Add lricon*.png, which were
created using the templates at
https://developer.apple.com/design/resources/. Add Logray.icns,
logray.ico, and lograyinst.ico, and use them in various packaging
resources.
2022-09-04 23:01:06 +00:00
Michael Tuexen 9315cffd6a SCTP: remove support for NONCE_SUPPORTED parameter
The specification never hit RFC status, it wasn't implemented or
deployed and the ECN nonce stuff was moved to HISTORIC recently..
So remove support from the dissector, freeing parameter type
0x8001, which was also never assigned by IANA.
2022-09-04 22:06:03 +02:00
Gerald Combs 56a101f4d4 [Automatic update for 2022-09-04]
Update manuf, services enterprise numbers, translations, and other items.
2022-09-04 16:43:03 +00:00
Guy Harris a960e5fd2e AppleTalk, DSI: fix some names to be more correct.
The "seq" field in several structures is either a transaction ID from
ATP for AppleTalk or a request ID from DSI for AFP-over-TCP.  Call it
tid.

The "aspinfo" structure is really information from ATP *and* ASP for
AppleTalk or from DSI for AFP-over-TCP.  Call it atp_asp_dsi_info.

Among other things, this prevents confusing "aspinfo.seq" from the ASP
sequence number, which it is *NOT*.
2022-09-04 01:21:06 -07:00
Guy Harris 09785f0729 frame: always add the "length < caplen" expert info.
Add the "length < caplen" expert info regardless of whether the "frame"
protocol is referenced by a packet-matching expression, just as we do
with the "fractional time component of the absolute frame time is >=
1000000000" expert info.

Fixes #18312.
2022-09-03 23:10:36 -07:00
Guy Harris 022dfd56f3 Fix bogus tvbuffs to make sure reported length >= captured length.
A reported length less than a captured length is bogus, as you cannot
capture more data than there is in a packet.

Fixes #18313.
2022-09-03 21:04:55 +00:00
John Thacker e76ebbdecc epan: Fix tvb_find_guint16 with previous partial matches
Fix tvb_find_guint16 when there is a partial match (first byte
matches but second byte does not) in the buffer before an
actual match.

The function claims that it takes negative offsets and a negative
maxlength value (for "to the end of the buffer.") Convert those to
absolute offsets and limits at the start of the function rather than
repeatedly having special checks for negatives.

Fix the "number of bytes searched so far" calculation, which was only
correct for negative offsets (but only used when there was a partial
match.)
2022-09-03 20:05:41 +00:00
John Thacker 95b45b2555 Qt: Add percent-encoding to Show Packet Bytes
Add Percent-encoding to the list of encoding types that Show
Packet Bytes can handle.

There's a function added to glib 2.66 to handle this for arbitrary
bytes that might have internal nulls (and which allows the result
to be non UTF-8), but we don't require that version yet, so extend
the existing function.

Related to #1084
2022-09-03 17:25:28 +00:00
Martin Mathieson faf05a82da ROHC: trivial comments and changes while reading code. 2022-09-03 15:38:14 +01:00
Stig Bjørlykke 64ec90d3f1 AT: Add support for AT+CGDCONT 2022-09-03 09:55:36 +00:00
Dr. Lars Völker dbb12a28f6 UDS: Add DID and RID names based on standard
Adding the DID and RID names based on the ISO 14229-1 standard.
2022-09-03 07:42:00 +00:00
John Thacker 1940fd0d14 lapdm: Remove stray debug statement 2022-09-02 12:35:19 +00:00
John Thacker ee3f4a5d65 tcp: Improve reassembly when out-of-order is disabled
When using the TCP analysis results to ignore retransmissions
when out-of-order desegmentation is *not* enabled, if on the first
pass there is an unfinished MSP or the sequence number is newer than
any segment we've processed, then the segment is needed for reassembly.

In that case ignore any TCP Analysis claim that a segment is a
Retransmission and process it anyway. Fixes the capture in #13388
and some of the examples in #15993 with out-of-order desegmentation
off.

Some subdissectors, such as those that are state-based, will always
require an in order stream to process correctly and it is difficult
to make those work with out-of-order desegmentation disabled.
2022-09-02 12:17:06 +00:00
Guy Harris 308e295669 conversation: bring back conversation_pt_to_endpoint_type().
It may be used by third-party code, and it may be useful on its own, at
least for now.
2022-09-02 00:07:53 -07:00
Gerald Combs b984e6e29d CMake: Split more Wireshark/Logray variables.
Split our macOS application bundle variables into Wireshark- and
Logray-specific ones. Make sure Logray's PkgInfo and CFBundleSignature
match.
2022-09-01 09:05:58 -07:00
Yuya Kusakabe 189611504a BGP: add SRv6 Endpoint Behaviors for MUP
https://www.iana.org/assignments/segment-routing/segment-routing.xhtml
2022-09-01 11:01:18 +00:00
Yuya Kawakami d8886a2c76 packet-bgp: Support BGP-MUP SAFI and Extended Community 2022-09-01 11:00:33 +00:00
Guy Harris 2aebd660ac conversation: fix debug logging code so that it compiles. 2022-08-31 18:54:19 -07:00
John Thacker cd8dca85a7 http: Fix a problem with a key expiring
The tcpinfo struct is declared on the stack in dissect_tcp. If we need
to use a member of it (seq) as a key in a map that is declared at file
scope, just use the integer directly with GUINT_TO_POINTER.

Fix #17854 (at least one instance of it; the issue can crop up in a number
of subtle ways.)
2022-08-31 21:18:42 -04:00
Dirk Römmen 9464cc51ce BACnet: Minor bug fixes for protocol revision 24.
- corrected wrong assigned error codes.
- corrected printing of present-value bitstring object.
- added BACnetPropertyStates decoding for unsigned and signed states.
- added new vendor id's.
2022-08-31 08:37:50 +02:00
John Thacker f3df91b90d tcp: Fix handling of retransmission for reassembly
When reassemble_ooo is set, we can do a better job determining
if a segment is retransmitted or not from the reassembler perspective,
which is different than what TCP sequence analysis determines, which
is retransmission from the sender's perspective.

This also allows us to have a good way of dealing with retransmission
but with additional data.

This only works when reassembling out of order is set. Without it,
we fall back to the old method of detecting retransmissions, which
has a harder time with the edge cases.

Fix #17406, fix #15993, fix #13388, fix #13523.
2022-08-30 21:44:11 +00:00
Alexander Clouter bed5b0e025 EAP: TEAP support for sub-TLVs in TLVs 2022-08-30 19:36:33 +00:00
Dr. Lars Völker 940010336e MKA: Fix header field names "lowest acceptable PN"
This patch makes clear that the "Lowest Acceptable PN" is only the most
signifant 32 bits. While the standard states this, Wireshark did not.
2022-08-30 20:31:24 +02:00
Guy Harris 68a77b48e9 conversation: give more details of the various conversation keys.
Give details about the conversation elements key and the pair of
address/port endpoints key, including a bunch of XXX comments about how
this should perhaps be cleaned up.
2022-08-30 10:25:35 +00:00
Michael Tuexen bba433af5a TCP: use unsigned type for AccECN counters
Thanks to Vidhi Goel for reporting the issue.
2022-08-30 09:47:17 +02:00
Guy Harris a6ee179427 conversation: speak of the "conversation key" as just address/port endpoints.
It's not a general key for looking up arbitrary conversations - that's
what an array of conversation elements is for - it's just a pair of
address/port endpoints.  (It's not even hijacked for conversations
identified by a circuit ID any more.)
2022-08-29 19:19:59 -07:00
Gerald Combs 5243ffa4c2 extcap: Add falcodump.
Add an extcap that fetches a scap from a Falco/libsinsp plugin. Tested
using the cloudtrail plugin.
2022-08-29 15:35:19 -07:00
j.novak@netsystem.cz 90143855af extcap: Signal processing unified for C based extcaps 2022-08-29 19:46:59 +00:00
Martin Mayer 621b94a090 OCP.1: Fix potential infinite loop 2022-08-29 16:27:06 +00:00
Anders Broman 0cb58524f8 Diameter AVPs: Fix a couple of copy-paste errors
Closes #18302
2022-08-29 15:07:30 +02:00
Gerald Combs fce0b28a39 [Automatic update for 2022-08-28]
Update manuf, services enterprise numbers, translations, and other items.
2022-08-28 16:44:11 +00:00
Alexander Clouter 093cd2077c EAP: fix TEAP Identity TLV decoding caused by typo 2022-08-28 09:08:30 +00:00
John Thacker b90196f28a bt-utp: Implement Close Reason extension
There's another extension type used in the uTorrent Transport Protocol.
https://github.com/arvidn/libtorrent/blob/master/include/libtorrent/close_reason.hpp

Simplify the extension handling a bit by consolidating redundant code.
2022-08-28 08:49:37 +00:00
Jeremy McCormick 3f41e6c72a AUTHORS: Update email address
Update to personal email address
2022-08-28 02:06:16 -05:00
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