Commit Graph

35932 Commits

Author SHA1 Message Date
Martin Mathieson 54ac7b4424 Fix some spelling errors 2021-10-20 10:00:12 +01:00
Martin Mayer d4cad23807 Added Allied Telesis Loop Detection Frames 2021-10-20 06:49:44 +00:00
Nan Xiao 3106386f44 EVS: Support decoding Primary 2.8 kbps packets 2021-10-20 06:32:28 +00:00
Nan Xiao 0818981ccb EVS: Fix bug in decoding SID frame CNG type
In 3GPP 26.449 Codec for Enhanced Voice Services (EVS); Comfort Noise Generation
(CNG) aspects, Computational details and bit allocation:
For the EVS primary modes, the SID payload consists of 48 bits. The first bit of
the payload determines the CNG scheme, where 0 stands for the LP-CNG and 1 for
the FD-CNG.
2021-10-20 09:32:13 +08:00
Nardi Ivan 763247c2b3 QUIC: fix compilation on Raspberry 2021-10-19 20:04:17 +00:00
ismaelrti a1031afbff RTPS: ixed dissection of unions in user data.
Removed the type_id check when dissecting user data. That check avoids
dissection in valid cases.
2021-10-19 19:47:24 +00:00
Brian Sipos c1c5db86b6 TCPCL: Reassemble with full 64-bit transfer ID 2021-10-19 19:30:34 +00:00
Sangeetha Jain 2e65045db6 MeshConnex (MCX): MCX packet decode logic
Dissect MCX IE present in 802.11 packets like Beacon, Assoc Req, Assoc Res ...
2021-10-19 19:11:05 +00:00
John Thacker db8e63614e BT-uTP: Hand to bittorrent dissector, dissect multiple PDUs
Handle uTP payload to the bittorrent dissector.
Implement dissect PDUs to handle more than one bittorrent PDU
in a uTP payload.
Implement basic multisegment PDU tracking; not enough to actually
desegment, but enough to provide a hint to the start offset of the
next PDU when a PDU does span segments. (Provided that they're in
order, but OOO handling isn't implemented yet either.)
Improves #8792.
2021-10-19 18:53:46 +00:00
Nan Xiao 9a8feb8abd EVS: Fix CNG schema for SID payload
In 3GPP 26.449 Codec for Enhanced Voice Services (EVS); Comfort Noise Generation
(CNG) aspects, Computational details and bit allocation:
For the EVS primary modes, the SID payload consists of 48 bits. The first bit of
the payload determines the CNG scheme, where 0 stands for the LP-CNG and 1 for
the FD-CNG.
2021-10-19 15:44:56 +00:00
Dr. Lars Völker 95092e6582 SOME/IP: WTLV type 5 complains about 6 bit length field (BUGFIX)
Closes #17666
2021-10-19 14:38:57 +00:00
Pau Espin 736a54a3ad CSN.1: Fix definition for DownlinkDualCarrierCapability_r7_t in MS RA cap
Related spec: 3GPP TS 24.008 Table 10.5.146
2021-10-19 15:44:09 +02:00
Pascal Quantin 017eb216c1 BSSMAP LE: fix dissection of APDU in 2 messages
The APDU information element in Perform Location Request and Perform
Location Information messages is optional and not mandatory, as seen in
3GPP 49.031. This commit fixes a regression introduced in ga6ed603f5c.

Closes #17667
2021-10-19 09:53:19 +00:00
Jakub Pawlowski 0f7217aadf Bluetooth: Update Assigned Numbers
Updated UUIDs to match new version from 1st October 2021

Change-Id: Ifab0296389fe3815f7ce9b15de841e8675faba32
2021-10-19 05:02:41 +00:00
Guy Harris f275ccf2ab socketcan: use ett_can_fd for CAN FD. 2021-10-19 02:22:42 +00:00
Gerald Combs d8742418aa IDMP: Initialize some variables.
Try to make sure protocolID and saved_protocolID are initialized before
we use them. Another attempt at fixing #16342, #17664, and related bugs.
2021-10-18 20:19:35 +00:00
Gerald Combs e15e987468 BT SDP: Don't overrun our continuation state buffer.
Fixes #17635.
2021-10-18 10:30:39 -07:00
Matias Karhumaa ac31124514 btsmp: Fix endianess of debug public key
Bluetooth LE SMP protocol uses Little-endian byte order. Convert
Bluetooth LE Secure Connections debug public key to Little-endian
byte order to fix the problem that dissector did not properly
identify debug keys when they were used during the pairing.
2021-10-17 14:46:47 +00:00
Brian Sipos c36ce0b01b TCPCLv4: Update TCPCL dissector to include version 4 from dtn-wireshark
Some enhancements and visual fixes to version 3 dissector are also included.
2021-10-17 14:09:07 +00:00
John Thacker 71ccbe9f37 bencode: remove pointless recursion
This statement is at the top of the function, calls itself recursively
without changing any state, reaches the max recursion level, and then
travels back up the stack adding expert infos and returning -1, and
then at the end always causes a variable to be set to a known value.

Remove all that, and just set the variable to the value it's going to
have anyway. This speeds things up a lot and prevents adding dozens
of expert infos to dictionaries without otherwise changing the
behavior, which does seem to work.
2021-10-16 07:23:03 +00:00
Mikael Kanstrup fbeb33ee99 Websocket frame reassembly support
Add support for websocket fragmented payload reassembly.
2021-10-15 13:23:50 +00:00
Роман Донченко e116110f0c jpeg: add support for dissecting inline IFD values
In many cases, the "value offset" is actually the value itself.
Handle those cases correctly.
2021-10-15 04:53:03 +00:00
Guy Harris 3960474089 socketcan: support the CANFD_FDF flag for identifying CAN FD frames.
The Linux SocketCAN header now uses the formerly-reserved byte in the
SocketCAN header after the "payload length" field as an "FD flags"
field, with a flag bit reserved to indicate whether the frame is a
classic CAN frame or a CAN FD frame, with two other bits giving frame
information for FD frames.

For LINKTYPE_CAN_SOCKETCAN, use that flag bit to determine whether the
frame is classic CAN or CAN FD.  As some older LINKTYPE_CAN_SOCKETCAN
captures have SocketCAN headers in which the fields after the "payload
length" field were uninitialized, so trust that thge "FD flags" was
filled in, rather than possibly randomly uninitialized, only if the only
bits set in that field are the bits defined to be in that field and the
two reserved bytes after it are zero.

This will be needed when the current main-branch libpcap is released, as
it uses LINKTYPE_CAN_SOCKETCAN rather than LINKTYPE_LINUX_SLL for
ARPHRD_CAN devices; we add it now to future-proof the Wireshark releases
to which this is being committed.  It also handles what existing CAN FD
captures using LINKTYPE_CAN_SOCKETCAN exist.

For LINKTYPE_LINUX_SLL frames, we have the protocol field to distinguish
between classic CAN and CAN FD, so we use that to determine the frame
type, rather than looking at the CANFD_FDF flag.

dissect_socketcan_common() now handles both classic CAN and CAN FD
frames.
2021-10-14 19:15:07 -07:00
Vadim Yanitskiy 30863e5298 GSM A-bis/RSL: dissect some more Osmocom specific IEs 2021-10-13 18:10:49 +00:00
Vadim Yanitskiy 278dcc83ea GSM A-bis/RSL: add a checkbox for Osmocom specific definitions 2021-10-13 18:10:49 +00:00
Vadim Yanitskiy 91f050cd82 GSM A-bis/RSL: fix wrong tree/length in dissect_rsl_ie_message_id() 2021-10-13 18:10:49 +00:00
Gerald Combs acaaad150b BT HCI_ISO: Don't overrun our reassembly buffer.
Fixes #17649.
2021-10-13 17:36:13 +00:00
Ben Huddleston 79ed34e1c6 couchbase: Add Subdoc replace body with xattr opcode
Change-Id: Icce8f7a30caf0d52c01b20b8535a1f157a1e4f56
2021-10-13 15:55:13 +00:00
Ben Huddleston 7fa7aa8191 couchbase: Add ReviveDocument subdoc flag
Change-Id: I914f4aae11b4c459a6db0d7b18ab81b73747fd58
2021-10-13 15:55:13 +00:00
Ben Huddleston 0e019290ef couchbase: Add new subdoc error codes
Change-Id: I7d5350d1a590e8c5a2b87f4cc0d815d5da63a2f1
2021-10-13 15:55:13 +00:00
Joakim Karlsson 9cc514957f gprscdr: Update to 3GPP TS 32.298 V17.0.0 2021-10-13 08:29:20 +00:00
Anders Broman db80da2adc SIP: 200 ok put resp to method in info col 2021-10-13 09:25:41 +02:00
Joakim Karlsson 4887894a15 pfcp: Update to 3GPP TS 29.244 V17.2.0 2021-10-13 06:02:34 +00:00
John Thacker c6e44fb00c BT-uTP: Track conversations
Add endpoint type for uTP connection IDs.
Manage uTP conversations, creating generated stream ID to filter
on both sides of a conversation.
Display more information in INFO column, similar to TCP.
This is some progress towards #8792.
2021-10-13 04:37:21 +00:00
Martin Mathieson abcadce44f BPV7: Address check_static.py issues
epan/dissectors/packet-bpv7.c (00000000000010d0 T bp_block_canonical_free) is not referred to so could be static?
epan/dissectors/packet-bpv7.c (0000000000000e50 T bp_creation_ts_new) is not referred to so could be static?

One function was not called at all - the other only in this dissector so could be static.
2021-10-13 04:21:31 +00:00
Brian Sipos 01e858e0a3 BP: Fix crashes on invalid fuzzed inputs 2021-10-12 23:15:50 +00:00
John Thacker 634650f1e4 TCP: Follow: Don't treat placeholder value 0 as a real ACK number
Since the wraparound aware GT_SEQ is used, passing in 0 for the
ACK number can result in thinking that bytes are missing and
dropping frames from the follow stream tap.
2021-10-12 04:09:11 +00:00
Eugene Adell f6b0de6b12 TCP: Port reuse ends with false Retransmissions
In rare circumstances when a connection could not established on
the first try, succeeding in establishing it later would generate
many Retransmissions. Closes 17616.
2021-10-12 03:52:01 +00:00
Gerald Combs ed98abe208 BT-DHT: Exit a loop.
Always make sure our offset advances in dissect_bencoded_list.
Fixes #17651.
2021-10-12 03:35:32 +00:00
Guy Harris c2b6a27e97 autosar_nm: get rid of unused protocol IDs.
We fetch the protocol IDs for several protocols, but use none of them.
Get rid of them.
2021-10-11 20:44:41 +00:00
Lin Sun fdd1a82ed9 packet-btmesh: fix build without GCRYPT 2021-10-11 19:10:41 +00:00
Dr. Lars Völker 7f9b8874b5 BPSEC, BPv7, COSE: Bugfix MacOS build
The usage of PRIi64 and PRIu64 may lead to failed builds on MacOS - at
least it did for me.

This patch fixes this.
2021-10-11 11:58:23 +02:00
Martin Mathieson a5df18e51e Fix some spelling errors 2021-10-11 04:44:49 +00:00
Dr. Lars Völker 9aa87dae84 TECMP: Bugfix: TECMP should not decode NULL frames
Null frames are frames with invalid data. This patches makes sure that
the invalid data is not further dissected.

Closes #17644

Bug present since Wireshark 3.4.
2021-10-10 20:16:13 +00:00
Dr. Lars Völker 0d276b47d1 AUTOSAR NM: Bugfix: wrong filters for user defined elements
When UDP-NM was renamed into AUTOSAR-NM (as well as filename changed)
the author of that patch missed the dynamic filters. This patch fixes
this oversight and makes sure all filters of AUTOSAR NM start with
"autosar-nm.".

Fixes #17643
2021-10-10 20:00:15 +00:00
Brian Sipos ce0592514c BPv7: Add Bundle Protocol version 7 and BPSec dissectors from dtn-wireshark 2021-10-10 13:27:17 +00:00
John Thacker 35d09a7854 BT-DHT, BT-uTP: Use conversation_set_dissector_from_frame_number
Since the UDP connection switches back and forth between DHT and uTP,
use conversation_set_dissector_from_frame_number so that the dissector
called by try_conversation_dissector in packet-udp.c doesn't change for
a given frame based on the last packet clicked in the GUI.

Split out a heuristic dissector from uTP so that conversation_set_dissector
is only called from the heuristic dissector.

This doesn't make a difference when the heuristics are accurate but
might in some edge cases.
2021-10-10 11:31:06 +00:00
David Fort faf6fabfe3 rdpudp: update parsing of AckVec packets to last spec
Last version of MS-RDPEUDP2 has detailled the interpretation of ackvec packets. The
patch also adds the interpretation of ack vector items (bitmap or RLE encoded).
2021-10-10 09:59:44 +00:00
Dr. Lars Völker 08a8429125 TECMP: Bugfix wrong payload length for payloadtvb
The TECMP dissector did not set the length to the correct value but by
accident just used all bytes present. This is not correct.

This bugfix is for Wireshark 3.4 and newer.

Closes #17638
2021-10-10 06:49:22 +00:00
Dr. Lars Völker a534b7aed0 ISO15765: Bugfix, LIN config influenced CAN
This patch fixes the update_config routine, which turned off the CAN
config, when LIN diagnostic frame parsing is deactivated.

Closes #17639
2021-10-10 06:33:15 +00:00