Commit Graph

35992 Commits

Author SHA1 Message Date
Dr. Lars Völker 3d3a435903 Signal-PDU: Bugfix false positive truncation warning with multiplexing
This patch moves length check behind the multiplex check, so that we do
not get a false truncation warning, if other multiplex signals follow.
2021-10-29 04:21:17 +00:00
Dr. Lars Völker 0690da2456 SOME/IP: Adding resolution for Client IDs 2021-10-29 04:06:49 +00:00
Peter Dobransky 9c2f3b0dc6 DHCP: Add CableLabs suboptions from CL-SP-CANN-DHCP-Reg
Add parsing of DHCPv4 option 82.9.4491.2..7
- DPoE System Version (2)
- DPoE System DHCPv4 PBB Service (4)
- CMTS CM Service Class (5)
- CMTS MSO Defined Text (6)
- Secure File Transfer URI (7)

Add parsing of DHCPv6 Relay Agent CMTS Capabilities Option 2
- DPoE System Version (2)
2021-10-28 16:11:34 +00:00
Gerald Combs b760c356c7 C12.22: Track our allocation sizes.
Add an allocated size element to the TOP_ELEMENT_CONTROL struct and use
it to make sure we're not trying to read past the end of a buffer in
canonify_unencrypted_header. Fixes #17636.
2021-10-28 03:56:19 +00:00
John Thacker 50b4944aaf BSSAP: Simplify code
Remove now unused defines. Add the BSAP and BSSAP-LE pinos to the tree
as the parent protocol (so that the BSSAP default proto preference can
be selected from the Packet Details and Packet List).

Set the BSSAP+ Decode As preference with the newer Decode As API, so
that we don't need a preference callback.
2021-10-27 19:30:57 -04:00
Jaap Keuter 3e7465801d RDP: workaround setting pduLen for Manaro Linux
Fixes #17688
2021-10-27 21:13:28 +02:00
Jirka Novak e880cf61d7 Flow sequence: Shows more information about various skinny messages
For many skinny messages additional information is shown next to
message. It simplifies call flow analysis.
2021-10-27 06:47:55 +00:00
Gerald Combs d19bdb70ed BT LE LL: Add a NULL Check.
Fixes #17681.
2021-10-26 23:58:52 +00:00
Gerald Combs 32ee228a76 PVFS: Make sure we have pinfo when we need it.
Make sure we always pass a valid pinfo value to dissect_pvfs_string.
Fixes #17686.
2021-10-26 23:40:43 +00:00
Gerald Combs 4dbd58f803 SKINNY: Initialize our addresses.
Make sure read_skinny_ipv4or6 always sets its address. Fixes #17682.
2021-10-26 23:15:15 +00:00
Alexis La Goutte be9a656770 QUIC(Datagram): update to last IETF draft 2021-10-26 20:59:51 +00:00
Alexis La Goutte a2369eafbb QUIC: Update to final RFC... 2021-10-26 20:59:51 +00:00
Alexis La Goutte 646e3db99a EAP: Add Autority ID Data from EAP-FAST
4.1.1 Authority ID Data https://datatracker.ietf.org/doc/html/rfc4851#section-4.1.1
2021-10-26 20:15:41 +00:00
Gerald Combs 9104a3744e PNRP: Exit our main loop.
Make sure our main loop offset advances. Fixes #17684.
2021-10-26 10:00:37 -07:00
Manasa S 10352d552e TZSP: Add support for 6GHz band 2021-10-26 14:20:37 +00:00
Brian Sipos 1120f545d3 CBOR: Avoid infinite loop when sequence has not-well-formed data
This fixes a defect in the original MR !4752 adding cbor sequence dissecting.
2021-10-26 12:18:13 +00:00
Orgad Shaneh a114a115ba ACDR: Handle timestamps as time values instead of bytes 2021-10-26 12:15:10 +03:00
Orgad Shaneh 93b3f3b575 ACDR: Fix handling of short signaling packets
HOST --> PSTN layout is different than PSTN --> HOST.

The layout of HOST --> PSTN is:
BE16 - OpCode
BE16 - Data Size
REST - Data
2021-10-26 04:31:45 +00:00
Vadim Yanitskiy 31ca0069c9 GSM A-bis/RSL: dissect more fields in RSL_IE_OSMO_TOP_ACCH_CAP 2021-10-26 04:17:07 +00:00
Gerald Combs 79a9fe1cf0 BT-DHT: Fix another loop and add NULL checks.
Make sure dissect_bt_dht_values even when we have a zero-length string.
Add a couple of NULL checks. Fixes #17677.
2021-10-26 03:47:33 +00:00
John Thacker 511ca9204f BSSAP: Split BSSAP-LE, BSAP to pinos
Move BSSAP-LE and BSAP to pinos so that Decode As on a SCCP SSN
can specify the protocol of choice. The heuristic dissector still
depends on a preference, but change the existing two boolean
preferences to a three way enum. Separate the BSSAP and BSSAP-LE
dissector tables so that the code is cleaner.

Add BSAP, BSSAP-LE, and BSSAP+ to the SCCP UAT for even finer-grained
control. Fix #16828
2021-10-25 22:59:00 -04:00
Adrien Destugues d7ffd00504 DVB-S2: add to "decode as" for UDP
The heuristic dissector doesn't always work. It is convenient to have
DVB-S2 in the "decode as" menu as well.

The heuristic dissector does not dissect packets where the modeadapt
cannot be detected (CRC errors or other problems). The "decode as"
dissector, on the other hand, will attempt decoding anyway, using the
preferred mode adaptation set in preferences.
2021-10-25 04:43:40 +00:00
Gerald Combs 923ae6acca [Automatic update for 2021-10-24]
Update manuf, services enterprise numbers, translations, and other items.
2021-10-24 17:25:30 +00:00
Jirka Novak fe98151af3 Skinny: Create RTP stream based on messages (2)
Fix in IPv6 processing
2021-10-24 09:14:42 +00:00
Martin Mathieson b52585a0ce Signal-PDU: Make a function static. 2021-10-24 09:43:18 +01:00
John Thacker b5989badb4 tcp: Throw exception instead of ASSERT for unknown PDU length
If a subdissector requests one more segment for a PDU of unknown length,
but we can't do reassembly for whatever reason, that's not necesarily a
dissector bug (while it could be the result of a bad heuristic, it can
happen from a checksum failing validation or reassembly preferences
disabled.)

The correct error is a FragmentBoundsError (dissector requested bytes
that it couldn't get due to not being reassembled), which is what
we would also throw if the returned PDU length were greater than the
tvb length instead of unknown. Fix #16689.
2021-10-24 07:43:24 +00:00
Brian Sipos c79e35d45c CBOR: Show and return actual dissected length 2021-10-24 07:28:38 +00:00
Jirka Novak 35334a1f28 Skinny: Create RTP stream based on messages
When OpenReceiveChannel/OpenReceiveChannelAck and
StartMediaTransmission/StartMediaTransmissionAck messages are seen, RTP
streams are created so Wireshark decodes related UDP as RTP.

Note: Multichannel commands (e.g. OpenMultiMediaReceiveChannel) are not
processed as I have no sample to test it.
2021-10-24 07:12:24 +00:00
Brian Sipos d2b249a445 COSE: Fix fallback to CBOR dissection when map key is registered but disabled. 2021-10-23 17:04:23 +00:00
Brian Sipos 1e42357d19 BPv7: Add proper heuristic block/payload dissection.
This also touches up the INFO column display of bundle src/dst EID.
2021-10-23 16:26:47 +00:00
Huang Qiangxiong 33708af75f grpc: do not dissect empty grpc message body
close #17675
2021-10-23 15:26:35 +00:00
Alexis La Goutte 62de74f6a8 ieee80211: Fix warnings found by Clang Analyzer
packet-ieee80211.c:17420:9: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
2021-10-23 12:46:55 +00:00
Martin Mathieson 811a80b827 ORAN FH CUS: Avoid infinite loop on section extension
Found by fuzzing local captures.
2021-10-23 12:19:35 +00:00
John Thacker 11298a5b2c DCERPC: Strengthen heuristic, fix PDU length
The fragment length field of DCERPC connection-oriented PDUs includes
the length of the fixed header, and so must be at least that large.
Don't return a (bogus) PDU length zero from get_dcerpc_pdu_len,
because tcp_dissect_pdus interprets that as "need one more segment"
instead of as a bogus value; instead return one, which the TCP
dissector will correctly recognize as bogus.

Also, take into account the offset passed into get_dcerpc_pdu_len
(it is almost always 0, which is why the code previously worked),
and increase the fixed length value passed to tcp_dissect_pdus
to the real fixed header length (so that the TCP dissector will
recognize more bogus values as bogus.)
Fix #14728.
2021-10-22 23:16:39 -04:00
Martin Mathieson c983a219e3 Autosar IPDU Multiplexer: make some functions static
Also fix up check_static.py - dissectors.c.o has moved.wq
2021-10-22 17:50:21 +01:00
Nan Xiao 9c294546d1 EVS: Decode Reserved bit for 48/96/128 kbps 2021-10-22 17:30:32 +08:00
David Fort bfafc30aee rdp: dissect fastpath packets
This patch adds basic decoding of fastpath packets.
2021-10-22 07:35:59 +00:00
David Fort a0885c6e03 rdp_multitransport: fill the info column
Nothing was set for CreateRequest and CreateResponse messages.
2021-10-22 07:35:59 +00:00
David Fort 5eec78ca28 rdp: fix dissecting of bandwidth messages
There was a swap between server and client messages, the patch correct this.
2021-10-22 07:35:59 +00:00
Dr. Lars Völker 79b0e4999a AUTOSAR I-PduM dissector
This patch adds the AUTOSAR I-PduM dissector.
2021-10-22 05:49:34 +00:00
Nan Xiao a36e995dd3 EVS: Decode BW for 9.6/16.4/48/96/128 bps 2021-10-22 04:58:11 +00:00
John Thacker e2586301a3 bittorrent: Do some PDU length validity checking
We know the lengths (or at least bounds on them) for most message
types, so if we have a nonsense value assume that we're actually
seeing Continuation Data (or unsupported Message Stream Encryption.)

Also support the extended message type a little bit, at least to
display the bencoded dictionary when it's type ID 0.
2021-10-22 04:40:35 +00:00
Eugene Adell 6c3f62362f TCP: Contiguous ACK unseen segments are not wanted
In rare circumstances, a pure ACK will be followed by a series of
TCP ACK unseen segments in the opposition direction. Only the first
packet of this series should be marked as such. Closes #11624
2021-10-22 04:24:50 +00:00
Okan Palaz 98c0b5ad62 ieee1905: Add missing offset increment
In dissect_unassociated_sta_link_metric_response, offset wasn't being
incremented after sta_count was read. The same byte was being read as
the first octet of the MAC address.
2021-10-21 11:15:39 +00:00
Nan Xiao 63b602973d EVS: Support decoding Primary 7.2/8.0 kbps packets 2021-10-21 07:31:12 +00:00
John Thacker f58ccfc068 TCP, UDP, SCTP: Try user specified ports first
When the user has manually registered to a port a dissector other than
the default subdissector (through Decode As, or the preferences
registered via dissector_add_uint_[range_]with_preference), try
those ports with a custom dissector first.

There's a few dissectors (e.g., GTP) that have port preferences
that haven't been migrated to use the DECODE_AS_ preferences for
various reasons; this won't change anything when their preferences
are changed from the default, though it can still work via Decode As.

Fixes #6223 and #12168.
2021-10-21 06:48:52 +00:00
Brian Sipos 2fa1206063 CBOR: Add support for CBOR sequence dissection 2021-10-21 06:16:27 +00:00
Gerald Combs 08f17a6bf7 CMake: Compile dissectors.c independently.
Move dissectors.c to a separate object library so that the rest of the
dissectors don't have to wait for it to be generated. This reduces build
time here by a few seconds when ccache is enabled.
2021-10-21 03:40:39 +00:00
Alexis La Goutte a48645e142 tcpcl: Fix warnings found by Clang Analyzer
packet-tcpcl.c:1071:9: warning: Value stored to 'frm' is never read [deadcode.DeadStores]
packet-tcpcl.c:1706:21: warning: Value stored to 'sep' is never read [deadcode.DeadStores]
packet-tcpcl.c:1762:21: warning: Value stored to 'sep' is never read [deadcode.DeadStores]
2021-10-20 21:51:40 +00:00
Alexis La Goutte 8da8d46de7 ieee80211: Fix warnings found by Clang Analyzer
packet-ieee80211.c:17423:9: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ieee80211.c:17424:9: warning: Value stored to 'tag_len' is never read [deadcode.DeadStores]
packet-ieee80211.c:17430:10: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ieee80211.c:17431:10: warning: Value stored to 'tag_len' is never read [deadcode.DeadStores]
packet-ieee80211.c:17437:10: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ieee80211.c:17438:10: warning: Value stored to 'tag_len' is never read [deadcode.DeadStores]
2021-10-20 21:51:40 +00:00