Commit Graph

35932 Commits

Author SHA1 Message Date
Evan Huus e4b8a58513 ptvcursor: add explicit memory scope
I was hoping to avoid this, since the ptvcursor should already be
implicitly scoped to the tree it is working on. But there are a bunch of
call sites where the passed tree can be NULL (?) and a few places where
the tree is explicitly set/reset after creation, so requiring an
explicit scope is safer.

Avoids global memory pools in favour of ones the compiler can verify.
2021-09-16 07:12:20 +00:00
Evan Huus f4aa108913 tvbparse: explicitly memory-scope parser
Avoids the use of the global memory pool in favour of one the compiler
actually knows must be in scope.

Also delete a few-hundred lines of if-0ed code that hadn't been active
in 15+ years.
2021-09-16 06:54:42 +00:00
Guy Harris bfc7708f63 SV / IEC 61850: Accommodate Ethernet trailers
IEC 61850 is directly over Ethernet, so use set_actual_length
like other such protocols so that the Ethernet dissector has a
chance to detect and dissect trailers / FCS.

And do it in the template from which packet-sv.c is generated, rather
than in packet-sv.c, so that it doesn't get overwritten if somebody
regenerates the sv dissector.
2021-09-15 14:27:29 -07:00
Vivek Mangala 6c066adad7 twamp: improved decoding of Request-Session
Added decoding and display of "Number of Schedule Slots"
and "Number of Packets" parameters contained in Request-Session
message in TWAMP Control protocol, in accordance with RFC-4656.
2021-09-15 13:21:12 +00:00
Joakim Karlsson 24af672884 PFCP: Improved Rule ID visibility
In PFCP message multiple create/update/remove IE can be included,
displaying the Rule ID on top of the group will make finding wanted rule
easier. Rule ID is mandatory in these groups.
From:
    Create FAR : [Grouped IE]:
    Create FAR : [Grouped IE]:
    Create QER : [Grouped IE]:
    Create URR : [Grouped IE]:
    Create URR : [Grouped IE]:
    Create URR : [Grouped IE]:
    Create URR : [Grouped IE]:
    Create URR : [Grouped IE]:
    Create URR : [Grouped IE]:
    Create PDR : [Grouped IE]:
    Create PDR : [Grouped IE]:
    Create PDR : [Grouped IE]:
    Create PDR : [Grouped IE]:

To:
    Create FAR : [Grouped IE]: FAR ID: 1
    Create FAR : [Grouped IE]: FAR ID: 2
    Create QER : [Grouped IE]: QER ID: 1
    Create URR : [Grouped IE]: URR ID: 1
    Create URR : [Grouped IE]: URR ID: 2
    Create URR : [Grouped IE]: URR ID: 3
    Create URR : [Grouped IE]: URR ID: 4
    Create URR : [Grouped IE]: URR ID: 5
    Create URR : [Grouped IE]: URR ID: 6
    Create PDR : [Grouped IE]: PDR ID: 1
    Create PDR : [Grouped IE]: PDR ID: 2
    Create PDR : [Grouped IE]: PDR ID: 3
    Create PDR : [Grouped IE]: PDR ID: 4
2021-09-15 11:35:10 +00:00
Nardi Ivan cda79cb819 QUIC: fix "Follow QUIC stream" crashes when encryption keys are not available
Reported by @chuckcraft in
https://gitlab.com/wireshark/wireshark/-/issues/17453#note_676545721
2021-09-15 09:46:03 +02:00
Vivek Mangala aceb1aea10 twamp: improved decoding of Request-Session
Added decoding and display of Conf-Sender and Conf-Receiver
parameters contained in Request-Session message in TWAMP
Control protocol, in accordance with RFC-4656 (OWAMP RFC
which is baseline for TWAMP).
2021-09-15 06:04:42 +00:00
Joerg Mayer 8567f657aa MPLS: Some systems display labels (mostly) in HEX
E.g. EXOS
2021-09-15 05:43:24 +00:00
Taisuke Sasaki 806599b923 BGP: Add BGP-LS Flex Algorithm (draft-ietf-idr-bgp-ls-flex-algo-07) 2021-09-15 05:42:44 +00:00
Joel Helling a72df64a60 Fixed Mode S Interrogator Identifier type check.
Changed the Mode S Interrogator Identifier summary info to check the type instead of the code.
2021-09-14 23:32:50 +00:00
Joel Helling 0844c0862a Fixed typo in Mode S Interrogator Identifier. 2021-09-14 23:32:50 +00:00
GBLCA\amrobles bf18882a42 DD-14 Made changes to Mode S interrogator layout. 2021-09-14 23:32:50 +00:00
GBLCA\amrobles a804547019 DD-14 Added Mode S Interrogator Identifier Information Column.
Created checks in order to appropiately display mode S and its different values.
2021-09-14 23:32:50 +00:00
GBLCA\amrobles ca83fbcf42 DD-14 Added Mode S Interroator Identifier Record.
Created a check to determine if mode S would be displayed in place of Mode 4.
2021-09-14 23:32:50 +00:00
GBLCA\amrobles a0600993a1 DD-14 Added RRB Trandponder Code Record. 2021-09-14 23:32:50 +00:00
GBLCA\amrobles 2fd0c3a976 DD-6 Added System Designator and System Specific Information
Updated call to dissect_DIS_PARSER_IFF_PDU so that it contains the DIS version.
Updated info column so that it appends text in the right order. Added
System Designator and System Specific Information to DIS v7 IFF PDUs.
2021-09-14 23:32:50 +00:00
GBLCA\amrobles 1c3729a9fd DD-6 Updated Layer 1 Dissection with DIS v7 IFF Layer 1
Added fields that are new to DIS v7. Updated fields to use
add_item instead of add_bits.  Changed the bit_mask of header
field declarations.
2021-09-14 23:32:50 +00:00
GBLCA\amrobles 7c59dd00c2 DD-6 Updated Dissection of PDU Header
Updated records in correspondence to 1278.1-2012
2021-09-14 23:32:50 +00:00
GBLCA\amrobles 2a2fbf3921 DD-6 Updated Enums with SISO 2019
Updated the UIDs to have the new values added in SISO Ref 2019. New Message
2021-09-14 23:32:50 +00:00
Evan Huus 8b194a924f osi: avoid global memory scopes
Add scope arguments to the OSI helper methods which allocate buffers to
avoid the use of the global wmem_packet_scope().
2021-09-14 19:05:11 +00:00
Martin Mathieson 65bfe0ccd6 ORAN FH CUS: check dissected extension length against extlen 2021-09-14 12:27:57 +01:00
Developer Alexander 77e6110c59 websocket: Enable websocket as heuristic dissector for TCP
Add a new option to use websocket as heuristic dissector for TCP.

This is useful when the connection setup of a HTTP connection which got
upgraded to a websocket was not recorded.

If this option is disabled via preference the resulting behaviour should be
the same as prior. It is disabled by default.
2021-09-13 16:18:11 +00:00
Nardi Ivan 3cb302f05b HTTP2, QUIC: fix "Follow Stream"
"Follow Stream" functionality assumes that all data in a single packet
belongs to the same stream. That is not true for HTTP2 and QUIC, where
we end up having data from unrelated streams.

Filter out the unwanted data directly in the protocol dissector code with
a custom `tap_handler` (as TCP already does).

Close #16093
2021-09-13 15:13:10 +00:00
Uli Heilmeier 2d08611d54 BGP: Add RFC 9104 Extended Administrative Groups
Added support for RFC 9104 "Distribution of Traffic Engineering
Extended Administrative Groups Using the Border Gateway Protocol
- Link State (BGP-LS)"
2021-09-13 04:30:36 +00:00
John Thacker 902b614fe2 eth: Allow assuming no FCS as well as assuming FCS or using heuristic
Replace the "assume_fcs" preference with a "fcs" tri-state preference
that has three options: use the FCS preference (still the default),
assume no FCS, and assume FCS is present. Fix #10457, #11597, #15303.

Also fix previous behavior where the assume_fcs preference always
overrode wiretap even if the pseudoheader indicated that there
definitely was no FCS on the packet.
2021-09-13 04:14:54 +00:00
John Thacker 21e7bb1073 VSS Monitoring: Tighten heuristic, reduce false positives by default
Add a preference to VSS Monitoring for dissecting packets that
lack a timestamp and only have port stamping, and set it to false
by default. There's no heuristic for port stamping, so it defaults
to accepting all trailers with 1, 2, 5, or 6 bytes (1 or 2 byte
port stamp plus optional 4 bytes for Ethernet FCS.) That's too
indiscriminate, especially if there are other possible trailers
(e.g., if the PRP-1 dissector is eventually changed to a eth.trailer
dissector, see #17066 which this helps with).

Also, VSS Monitoring has never actually supported two byte port stamps,
and recent product releases have dropped port stamping in favor of
VLAN tagging for port tagging, so only support 1 byte port stamps by
default and add a preference for 2 byte port stamps.

With these changes by default the VSS Monitoring heuristic dissector
only dissects trailers that pass the timestamp heuristic, greatly
reducing the number of false positives. This does much of #8997,
though the timestamp heuristic could be tightened as well.
2021-09-13 03:58:12 +00:00
Guy Harris 76b08ea083 Fix spelling errors.
The Ubuntu build commented on some spelling errors in executable code
files.  Fix the errors that don't come from external files containing
the spelling errors (USB product and vendor IDs, PCI IDs, ASN.1
specifications), and fix some errors that don't show up in the
executable code files (e.g., in comments and variable names).
2021-09-11 10:01:27 +00:00
Martin Mathieson 7f1f5b40b3 ORAN FH CUS: add section ext10 2021-09-10 23:42:05 +01:00
Evan Huus 059c7906c0 h225: fix tvblist used uninitialized
6caf24e966 uncovered a bug
in the h225 dissector where h245_list was used in a path that wasn't
guaranteed to be initialized. It wasn't causing fuzz errors before
because the memory was at least being zeroed, although that state was
still technically invalid.

Initialize and call the tvb_lists in dissect_h225_h225_RasMessage, which
is the other h225 entrypoint, just like dissect_h225_H323UserInformation
(the other dissector entrypoint) was already doing.
2021-09-10 15:24:48 -04:00
John Thacker d87fb12bc2 SV / IEC 61850: Accommodate Ethernet trailers
IEC 61850 is directly over Ethernet, so use set_actual_length
like other such protocols so that the Ethernet dissector has a
chance to detect and dissect trailers / FCS.
2021-09-10 05:12:37 +00:00
Tomasz Moń 8a311003df USB HID: Handle different usage pages in fields
Replace custom keyboard page array handling with generic array handler.
2021-09-10 04:55:49 +00:00
Tomasz Moń 739666a7f5 USB HID: Support extended usages in descriptors
Usage, Usage Minimum and Usage Maximum can be "Extended" Usages. When
parsing report descriptor, respect page encoded in extended usage value.

Remove arbitrary usage count limit, as the usage ranges are limited to
16-bit value and thus the usages array can grow by up by 256 KiB with
single usage range.
2021-09-10 04:55:49 +00:00
David Fort d46e31a48a rdp_drdynvc: fix channel name displaying in SOFT_SYNC_REQUEST 2021-09-09 15:37:54 +00:00
David Fort 0da1babbb3 rdp: fix endianess in misc places
Some fields were interpreted with the wrong endianess.
2021-09-09 15:37:54 +00:00
Jim Borden cb88f6d4e8 BLIP: Add next gen Web-Sec-Protocol
Starting with 3.0 there is a new non backwards compatible Web-Sec-Protocol for BLIP, so the plugin should handle both (the differences are irrelevant from Wireshark's standpoint)
2021-09-09 06:38:46 +00:00
Taisuke Sasaki 42372c0dfa BGP: Add BGP-LS SR Local Block TLV (rfc9085)
- Add BGP-LS Prefix Attribute Flags TLV (rfc9085)
- Add BGP-LS Node/Link MSD (rfc8814)
- Add BGP-LS Link Local/Remote Identifiers TLV (rfc5307)
- Modified from error to warning for unsupported BGP-LS Attribute TLVs
2021-09-09 06:22:09 +00:00
John Thacker 69176a0eff IEEE 1722 / MP2T: Call MP2T subdissector from AVTP
Have the IEEE 1722 AVTP dissector call the MP2T dissector when that
is the payload type. Comment out the "if (tree)" statement since
the MP2T dissector needs to be called on the first pass regardless
to handle fragmentation.

Since there is a 4 octet source packet header timestamp before each
MPEG2-TS packet when carried on AVTP, the MP2T dissector has to be
called multiple times per frame. Since the fragmentation data is
indexed by the offset in the tvb passed to the MP2T dissector, create
a table for each MP2T layer in the packet via pinfo->curr_layer_num.
Fix #10702.
2021-09-09 06:04:42 +00:00
Evan Huus 6caf24e966 tvblist: explicitly scope memory
Allocate the root node in the same pool as the list itself, and make
that pool explicit so we can pass the pinfo scope instead of using the
global packet pool.
2021-09-08 01:37:07 +00:00
John Thacker d5a3824f54 IEEE1722 AVTP: Support UDP/IP Encapsulation
Fix support for IEEE 1722-2016 Annex J IP Encapsulation.
Dissect extra 4-octet encapsulation_sequence_num field that
is present when carried on UDP/IP. Perform rudimentary sequence
analysis with it. Fix #17389.
2021-09-07 14:06:52 +00:00
Triton Circonflexe 22768e218c Thrift: Allow partial definition of sub-dissectors
When written by hand, it’s difficult to have a fully functional
subdissector for a given command if the structures in it contain at lot
of fields and/or numerous level of sub-structures, making the definition
of all sub-structures mandatory before we have all sub-structures fully
defined before we can dissect anything.

This patch makes it easy not to defined some structure fields and let
the generic Thrift dissector handle them.

If you care only about some fields for your analysis or you have some
obsolete fields that may appear in your captures due to old client but
are no longer defined in the .thrift files, you can still write the sub-
dissector for your protocol just by omitting the obsolete field.

For example:

static const thrift_member_t tcustom_data[] = {
    { &hf_tcustom_data_id, 1, TRUE, DE_THRIFT_T_I64, TMFILL },
    { &hf_tcustom_data_name, 2, TRUE, DE_THRIFT_T_BINARY, TMUTF8 },
    { &hf_tcustom_data_content, 3, TRUE, DE_THRIFT_T_STRUCT, &ett_tcustom_resource, { .members = tcustom_resource } },
    { NULL, 0, FALSE, DE_THRIFT_T_STOP, TMFILL }
};

could become:

static const thrift_member_t tcustom_data[] = {
    { &hf_tcustom_data_id, 1, TRUE, DE_THRIFT_T_I64, TMFILL },
    { &hf_tcustom_data_name, 2, TRUE, DE_THRIFT_T_BINARY, TMUTF8 },
    { NULL, 3, TRUE, DE_THRIFT_T_GENERIC, TMFILL },
    { NULL, 0, FALSE, DE_THRIFT_T_STOP, TMFILL }
};

and avoid the need to define the extremely complex "resource" struct.

In this case, the structured data would be dissected by the generic
dissector while keeping the possibility for the user to filter on the
resource id or name.
2021-09-07 11:36:00 +02:00
David Fort aae500d32b add RDP multi-transport dissector
This patch adds decoding of RDP multi-transport according to MS-RDPEMT, transported
on top of RDP UDP.
2021-09-07 08:13:57 +00:00
David Fort 8a1649c5a5 rdpudp: dissect the RDP UDP protocol
This patch adds a dissector to analyze the RDP UDP protocol according
to MS-RDPEUDP and MS-RDPEUDP2.
2021-09-07 08:13:57 +00:00
David Fort a3eafc6a5b rdp: parses heartbeat messages
This patch adds parsing for Heartbeat packets and also fixes the ett that was used
for this tree.
2021-09-07 08:13:57 +00:00
Florian Bezold fece6e0440 SOME/IP: Adding dissection support for SOME/IP over TLS
This patch adds support to SOME/IP to be dissected on top of DTLS. This
can be used via the Decode As feature of Wireshark.

This extends the existing support for DTLS.
2021-09-06 15:42:43 +00:00
John Thacker f6e0589f89 MP2T: Expert info, counter drop is PI_SEQUENCE, not MALFORMED 2021-09-06 09:16:58 +00:00
Triton Circonflexe c30e111ceb Thrift: Improve error reporting
Add an expert info for more protocol issues:
- Thrift protocol exceptions.
- Thrift application exceptions.
- Negative field id that are now prohibited in new interfaces.
- Out-of-order field ids (not prohibited but unusual).
2021-09-06 08:46:03 +00:00
Alexis La Goutte a5494200c6 tiff: Fix Dead Store found by Clang Analyzer
file-tiff.c:794:5: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
2021-09-06 04:21:15 +00:00
Alexis La Goutte 90a060c339 autosar-nm: Fix Dead Store found by Clang Analyzer
packet-autosar-nm.c:572:7: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
2021-09-06 04:21:15 +00:00
Alexis La Goutte a39fcee57a catapult-dct2000: Fix Dead Store found by Clang Analyzer
packet-catapult-dct2000.c:2826:21: warning: Value stored to 'sub_dissector_result' is never read [deadcode.DeadStores]
2021-09-06 04:21:15 +00:00
Alexis La Goutte 7644d6cc4a dvb-s2-bb: Fix Dead Store found by Clang Analyzer
packet-dvb-s2-bb.c:1902:17: warning: Value stored to 'next_tvb' is never read [deadcode.DeadStores]
2021-09-06 04:21:15 +00:00
Alexis La Goutte 104242836b erldp: Fix Dead Store found by Clang Analyzer
packet-erldp.c:403:13: warning: Although the value stored to 'buf_ptr' is used in the enclosing expression, the value is never actually read from 'buf_ptr' [deadcode.DeadStores]
packet-erldp.c:922:9: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-erldp.c:928:7: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
2021-09-06 04:21:15 +00:00
Alexis La Goutte 34c094a6e9 iso15765: Fix Dead Store Found by Clang Analyzer
packet-iso15765.c:534:13: warning: Value stored to 'pci' is never read [deadcode.DeadStores]
2021-09-06 04:21:15 +00:00
Alexis La Goutte c58400a2ed json: Fix Dead Store found by Clang Analyzer
packet-json.c:365:7: warning: Value stored to 'is_valid_unicode_character' is never read [deadcode.DeadStores]
packet-json.c:371:7: warning: Value stored to 'is_valid_unicode_character' is never read [deadcode.DeadStores]
packet-json.c:383:8: warning: Value stored to 'is_valid_unicode_character' is never read [deadcode.DeadStores]
packet-json.c:389:8: warning: Value stored to 'is_valid_unicode_character' is never read [deadcode.DeadStores]
2021-09-06 04:21:14 +00:00
Alexis La Goutte b007d13f57 oran: Fix Dead Store found by Clang Analyzer
packet-oran.c:1073:25: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
2021-09-06 04:21:14 +00:00
Alexis La Goutte 3d0017ec9f rdp: Fix Dead Store found by Clang Analyzer
packet-rdp.c:1600:3: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-rdp.c:1614:3: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
2021-09-06 04:21:14 +00:00
Alexis La Goutte 9b4263fa3c thrift: Fix Dead Store Found by Clang Analyzer
packet-thrift.c:1382:17: warning: Value stored to 'len_pi' is never read [deadcode.DeadStores]
packet-thrift.c:1388:9: warning: Value stored to 'len_pi' is never read [deadcode.DeadStores]
2021-09-06 04:21:14 +00:00
Alexis La Goutte da6ef0a3f0 extreme-exeh: fix conflict
'exeh.unknown17' exists multiple times with incompatible types: FT_BOOLEAN and FT_UINT8
2021-09-06 03:47:56 +00:00
Alexis La Goutte 95b63d04d9 dcerpc_spoolss: fix display filter name
found by conflict check
 'spoolss.driverversion' exists multiple times with incompatible types: FT_UINT64 and FT_UINT32
2021-09-06 03:47:56 +00:00
Alexis La Goutte ea6267d12b ncsi: Fix typo (on display name)
found by conflict tools
 'ncsi.mlx.gama.st' exists multiple times with incompatible types: FT_ETHER and FT_UINT8
2021-09-06 03:47:55 +00:00
Uli Heilmeier 86d5606be3 IEEE 802.15.4: Add PAN ID when flag is set
According to IEEE 802.15.4-2020 Section 7.3.5.1 Destination PAN ID field is
present when PAN ID Present bit is set. Therefore we should check for the bit.

Fixes: wireshark/wireshark#17496
2021-09-04 11:17:08 +02:00
Martin Mathieson fb02f423b1 Some spelling fixes 2021-09-03 22:45:06 +00:00
Graham Bloice 436eab0d77 SparkplugB: Fix handling of malformed message
Make the dissector more defensive when handling a message with
a malformed topic string

Fixes #17566
2021-09-03 17:57:07 +01:00
Alexis La Goutte 738670df7e woww: Fix conflict
Typo on display name filter (copy/paste ?)
2021-09-03 13:41:13 +00:00
Martin Mathieson 571c0c9580 ORAN FH CUS: Fix section 6 summary 2021-09-03 10:45:35 +01:00
Taisuke Sasaki b4ef378e5e BGP: Fix BGP-LS TLV offset of IGP TE Metric (RFC8571) 2021-09-03 05:51:39 +00:00
Natale Patriciello 57376bdf3e RTCP: Fix padding dissection in transport feedback
The transport feedback definition, from
(https://datatracker.ietf.org/doc/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#section-3.1)
has the third bit as the padding bit (as any RTCP feedback message). However,
the transport feedback dissector was consuming the padding (if present),
leaving the outer RTCP dissector with a padding bit set, but no padding to
analyze/show. That resulted in a "Malformed packet" error.

With this patch, any padding that is consumed in the transport feedback
dissection clears the outer padding bit set, leaving the RTCP dissector happy.
2021-09-03 05:36:23 +00:00
ismaelrti 00438ef755 RTPS: Fixed structure alignment when dissecting user data samples.
Fixing the initial offset when dissecting user data samples.
2021-09-03 05:20:36 +00:00
Tomas Kukosa bf1039a529 Vector BLF: WLAN frame supported 2021-09-03 05:03:48 +00:00
Martin Mathieson 92fb6a72f8 UDP: Add long help text for length field
Because it does include the 8 bytes of the header.
2021-09-02 20:09:54 +01:00
Joakim Karlsson 8684ba27a2 DVB-S2: fix build issues [-Werror=maybe-uninitialized] 2021-09-02 18:04:56 +00:00
Joakim Andersson 5c46e0eac3 btle: Add support for CTE Info field in Data Physical Channel PDUs
Add support for the optional CTE Info field in the Data Physical Channel
PDU header.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2021-09-02 17:48:43 +00:00
John Thacker 994bf73f46 IEEE 1722 AVTP: Fix name
AVBTP was used in drafts, but the name has officially been AVTP
in all releases, IEEE Std 1722-2011 and -2016. Change AVBTP to
AVTP and remove "Bridging" where it appears.
2021-09-02 16:23:09 +00:00
Martin Mathieson fb6aa10c12 ORAN FH CUS: avoid undefined shift in block fp decompress
Fixes #17552
2021-09-02 15:43:36 +00:00
Chuck Craft 2be72076f0 f5ethtrailer: greedy conversation filters 2021-09-02 14:07:45 +00:00
Martin Mathieson 124f7ce798 ORAN FH CUS: Add C SectionType=6 2021-09-02 12:11:43 +00:00
Alexis La Goutte cfc60b3f6e thrift(.h): Fix Warning about -Wdocumentation
remove extra : after each variable
2021-09-02 10:26:59 +00:00
Anders Broman 062994e089 GSM MAP: Handle Version 1 of ResetArg
Closes #17549
2021-09-02 09:36:44 +00:00
John Thacker 4091b31444 IEEE 1722/AVTP: Update Compressed Video Format
Call existing MJPEG and H.264 dissectors for those subtypes,
and remove duplicate fields. Use common true_false_string.
Warn about invalid length, and only process the payload length
show in the payload field, allowing for Ethernet FCS autodetection,
among other things. Register the MJPEG dissector by name so
that AVTP CVF can call it. Add some value string entries to the
MJPEG dissector.

When the format value is reserved, ignore the subtype field
and add expert info and show the payload as data. (IEEE 1722-2016
8.3.2) Fix #12490
2021-09-01 21:03:35 -04:00
Dr. Lars Völker 3f92ae9db9 IEEE1609dot2: fix missing import (BUGFIX)
Closes #17568
2021-09-01 20:09:56 +02:00
Ugur ILTER 43d2655f16 ieee1905: fix dissection of DPP messages
- Handle 'Category' field under 'Encapsulated Frame' field inside 1905 Encap DPP TLVs

![incorrect](/uploads/be54a9e6757aacbccb3625b4aa11db9b/incorrect.png)

![correct](/uploads/285b14d3945c2821ba3606e7da7ae94d/correct.png)
2021-09-01 13:08:21 +00:00
Anders Broman 9cf6caee62 Thrift: Fix warning about unused variable.
/epan/dissectors/packet-thrift.c:1619:9: error: ‘type_pi’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]
2021-09-01 13:53:55 +02:00
Alexis La Goutte 875d607892 Aruba(IAP): Add IAP-635 (Norma) 2021-09-01 08:44:54 +00:00
John Thacker b04165a57b DVB-S2: Only create composite if used
It violates the tvb_composite API to create composite TVBs if
they're not going to have at least one TVB put in them. Prevent
dissector bug failed assertions in the case of packets incorrectly
identified as DVB Baseband frames carrying TS by the heuristic
dissector.
2021-09-01 07:00:16 +00:00
Tomas Kukosa 033068916d ITS: use custom value format for CPM elements 2021-09-01 06:44:20 +00:00
Evan Huus cdfab0d6e9 tvbuff: convert helper methods to pinfo->pool
A few of them just needed scratch memory, so allocate and free it
manually after doing any exception-raising checks.

A few others were returning memory, and needed conversion to accept a
wmem scope argument.
2021-09-01 03:54:52 +00:00
Tomas Kukosa 2dc8b74afc IEEE1609dot2: fix psid-collective-perception-service value 2021-08-31 16:55:52 +00:00
Tomas Kukosa 3bd885d42e IEEE1609dot2: use custom formatters for better readability
fix Ubuntu build
2021-08-31 16:55:52 +00:00
Tomas Kukosa 16b1cdb23f IEEE1609dot2: use custom formatters for better readability 2021-08-31 16:55:52 +00:00
Pascal Quantin a728da1f28 NAS-5GS: fix dissection of port management information container IE
Closes #17562
2021-08-31 17:25:14 +02:00
Berk Akinci 40685047a5 USBHID: Report Descriptor: Fix Push and Pop global item parsing.
Still to do: fix the corresponding HID data parsing.
2021-08-31 14:14:33 +00:00
Adrien Destugues 8223405abc DVB-S2: allow dissection of DVB-S2 over RTP 2021-08-31 09:48:56 +00:00
John Thacker d900777d68 KNX/IP: Handle multiple PDUs per TCP segment / UDP datagram
Handle multiple PDUs per TCP segment or UDP datagram. Add
preference for handling PDUs that span multiple TCP segments.
Fix nested depth handling so as not to clear COL_INFO in the
second PDU of a segment (and also make dissect_knxip have the
standard signature.) Fix #17545.
2021-08-31 09:32:18 +00:00
Jorge Mora 981ec7f3c7 iwarp_mpa: fix iWarp MPA for NFS-over-RDMA
On the first packet of the conversation, the MPA layer is
dissected correctly followed by the DDP, RDMAP, RPC-over-RDMA,
RPC and NFS layers. The MPA layer sets the TCP conversation as
MPA protocol but when it dissects the RPC layer it also sets
the TCP conversation as RPC protocol thus overwriting the previous
protocol.

Added new port type PT_IWARP_MPA so that when the RPC layer
is dissected it does not overwrite the default protocol for
the TCP conversation which has already been set to MPA.

Fixes #15869.
2021-08-31 08:14:31 +00:00
Dr. Lars Völker e446bbc3e7 ISO10681: Adding support for ISO10681 (FlexRay ISO TP)
This patch adds support for the ISO 10681-2 protocol, which is similar
to the ISO 15765-2 protocol (see packet-iso15765.c).

This patch also add support for registering combined FlexRay IDs to
register the new dissector.
2021-08-31 07:37:59 +00:00
Dr. Lars Völker 2c543f999b DoIP/ISO15765/UDS: Passing addresses to UDS to refine lookup
This patch adds support to DoIP and ISO15765 to pass the diagnostic
address or addresses to UDS. UDS takes the relevant address into account
for the data identifier and routine identifier name resolution.
2021-08-30 16:10:55 +00:00
Stig Bjørlykke 3efb3cab62 gsm_sim: Fix MANAGE CHANNEL
Use correct offset for P1 and P2 when showing channel operation
and channel number.

According to TS 102 221 V14.2.0 the Open channel operation is using
P2 for channel, and let UICC assign when this is 0. Show P3 as Le.
Make P3 optional because it's not present in at least Close channel
operation.

Change text in Info column to avoid "Channel Channel: x".
2021-08-30 08:49:38 +00:00
Joey Salazar 28dbab369d git: Add test cases
Add git dissection test cases to existing testing suite for: finding git
packets, finding the Git Protocol version, finding the right amount of
Flush and Delimiter packets, not finding Malformed packets.

Part of #17093
2021-08-30 06:34:52 +00:00
Tobias Mueller 853d55b871 pcapng: declare offset to be volatile to fix build error on aarch64
This attempts to fix an error encountered when building Wireshark on aarch64:

[254/2488] Building C object epan/dissectors/CMakeFiles/dissectors.dir/file-pcapng.c.o
FAILED: epan/dissectors/CMakeFiles/dissectors.dir/file-pcapng.c.o
/usr/bin/cc -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DWS_BUILD_DLL -I. -isystem /usr/include/glib-2.0 -isystem /usr/lib/aarch64-linux-gnu/glib-2.0/include -isystem /usr/include/libxml2 -isystem epan/dissectors -isystem epan -fvisibility=hidden  -fexcess-precision=fast -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wredundant-decls -Wframe-larger-than=32768 -fdiagnostics-color=always -Wunused-const-variable -Wshadow -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Werror=implicit -Wno-pointer-sign -std=gnu99 -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fmacro-prefix-map=/run/build/wireshark/= -fmacro-prefix-map=/run/build/wireshark/= -O2 -g -DNDEBUG -fPIC -Werror -MD -MT epan/dissectors/CMakeFiles/dissectors.dir/file-pcapng.c.o -MF epan/dissectors/CMakeFiles/dissectors.dir/file-pcapng.c.o.d -o epan/dissectors/CMakeFiles/dissectors.dir/file-pcapng.c.o -c epan/dissectors/file-pcapng.c
epan/dissectors/file-pcapng.c: In function ‘dissect_spb_data’:
epan/dissectors/file-pcapng.c:1599:9: error: variable ‘offset’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
 1599 |     int offset = 0;
      |         ^~~~~~
epan/dissectors/file-pcapng.c: In function ‘dissect_epb_data’:
epan/dissectors/file-pcapng.c:1791:9: error: variable ‘offset’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
 1791 |     int offset = 0;
      |         ^~~~~~
epan/dissectors/file-pcapng.c: In function ‘dissect_pb_data’:
epan/dissectors/file-pcapng.c:1541:9: error: variable ‘offset’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
 1541 |     int offset = 0;
      |         ^~~~~~
cc1: all warnings being treated as errors
[255/2488] Building C object epan/dissectors/CMakeFiles/dissectors.dir/packet-autosar-nm.c.o
[256/2488] Building C object epan/dissectors/CMakeFiles/dissectors.dir/packet-bblog.c.o

Fixes: https://gitlab.com/wireshark/wireshark/-/issues/17554
2021-08-30 05:49:52 +00:00
Jiří Engelthaler 40aebad079 IEC104: Added Counter integrrogation command qualifier dissection 2021-08-30 04:51:11 +00:00
Berk Akinci 0ba0d4e779 USB HID: Fix Usage Maximum typo
Fix typo preventing 'Usage Maximum' values from being parsed.
Values were were reported as 'Usage:'.
2021-08-29 20:02:25 +02:00
Berk Akinci 64a76cca7f USB HID: Update to match HID Usage Tables version 1.22
Add camera control page (0x90). Usages are up to date with HID Usage
Tables for USB version 1.22.
2021-08-29 20:02:16 +02:00
Martin Mathieson eb2078e89e Thrift: make some functions static. 2021-08-29 11:59:38 +01:00
Jörg Mayer c8656a2dcb New dissector for EXOS internal capture extra header 2021-08-29 14:11:34 +00:00
Joakim Andersson ed9e958a2e nordic_ble: Update text for channel to include index
Update channel to include index to clear up possible confusion if this
is RF channel, or channel index.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2021-08-29 13:37:23 +00:00
Joakim Andersson eda513d972 btle: Update text for channel to include index
Update channel to include index to clear up possible confusion if this
is RF channel, or channel index.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2021-08-29 13:37:23 +00:00
Allan Møller Madsen 23a3daefbf BTHCI: Add new Bluetooth v5.3 HCI commands/event dissection
New HCI commands/event dissected:
- LE Set Data Related Changes Command
- LE Set Default Subrate Command
- LE Subrate Request Command
- LE Subrate Change Event

5.3 version number added, LE event mask, supported commands and
LE feature bitmaps updated.
2021-08-29 13:09:57 +00:00
Joakim Andersson 1f0251a82d nordic_ble: Mark failure to decrypt reason as CRC error over MIC error
A packet that has been received by the sniffer with CRC errors will not
decrypted properly by the sniffer. Mark the decrypt failure reason as
CRC error instead of MIC error.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2021-08-29 12:53:43 +00:00
Guy Harris bce7cbf529 lapd: clean up variable names, remove unnecessary initialization.
Use "flags" for the OPT_PKT_FLAGS option value, as we do elsewhere.  Use
"lapd_flags" for the variable holding the LAPD flags.

We don't need to initialize flags, as we extract the OPT_PKT_FLAGS
option into it immediately after initializing it (if the attempt to get
that option fails, it's not set, but it's not used, either).
2021-08-29 08:34:46 +00:00
Guy Harris 5e2fb6c000 packet-frame: assorted cleanups.
Remove unnecessary initializations.

Rename the variable for the packet ID option to match the name of the
option (it's epb_packetid in the pcapng spec, with no underscore between
"packet" and "id").
2021-08-28 23:43:44 -07:00
Jiří Engelthaler b428fa509d IEC104: Added Substituted / Not substituted dissection of CP56Time2a
Closing #17209
2021-08-28 12:39:08 +00:00
Martin Mathieson 70e26d691e Some spelling fixes. 2021-08-27 22:21:40 +00:00
John Thacker f997f28898 AMQP: Fix dissection of PDUs split across TCP segments
AMQP calls a subdissector table before tcp_dissect_pdus() is used to
desegment PDUs (see commit 27c10ed72e),
so pinfo->can_desegment needs to be restored before it is decremented
a second time.  Fixes #14217.
2021-08-27 12:23:00 +00:00
John Thacker 0e3782831a SMB: Don't canonize filenames to ASCII for Export Objects
Windows can allow Unicode in filenames now, and export_object.c
has its own eo_massage_str function that the GUI and CLI already
call to create safe filenames when they are saved. There's no need
for an individual dissector like SMB to have its own (worse)
implementation of the same functionality, and to call it before
filenames are displayed. Fix #17530
2021-08-27 08:24:55 +00:00
Jeroen Sack 0ceaaad763 Isobus-VT: Fix description of auxiliary input status enable message
Show if message indicates that auxiliary input was enabled or disabled
2021-08-27 08:04:54 +00:00
Jeroen Sack 2468cfefe2 Isobus: Change email address
Used my work email previously, but have not been working for them for a long
time already.
2021-08-27 08:04:54 +00:00
Triton Circonflexe d4de52690f Thrift: Complete handling of Binary & Compact protocols
- Make sure reassembly requests & errors are properly propagated from
  any point in the PDU, no matter how many sub-structure levels.
- Handle the sub-dissection methods as well:
  - Ensure the sub-dissection methods handle errors from previous calls.
  - Reduce the error handling needed in sub-dissector implementations.
  - Add missing sub-dissection methods for list, set, and map.
  - Add the handling of sub-structure.
- Handle Compact protocol in addition to the existing binary protocol.
  - Include and improve MR !3171
  - Handle reassembly the same way as for binary protocol.
  - Handle sub-dissection with the same functions.
    => Sub-dissectors only depend on .thrift files.

Additional changes:
- Use of constants instead of hard-coded values.
- Removed U64 support (never supported by thrift code generator, only
  referenced in the C++ thrift library header but not supported in reality.
- Removed references to UTF-8 and UTF-16 string for the same reason.
- Replaced references to UTF-7 string with just string (same reason).
- Replaced references to byte with i8 as the documentation explicitly
  states that byte is a compatibility name.

Documentation reference:
- https://thrift.apache.org/developers
- https://thrift.apache.org/docs/idl.html
- https://github.com/apache/thrift/blob/master/doc/specs/thrift-compact-protocol.md
- https://erikvanoosten.github.io/thrift-missing-specification/
- https://diwakergupta.github.io/thrift-missing-guide/

Closes #16244

Additional changes:
- Add authors and improve consistency
- Fix typo and clarify documentation
2021-08-27 06:04:17 +00:00
Michael Tuexen b17f354304 Add initial support for BBLog files 2021-08-27 04:48:21 +02:00
Alexis La Goutte fef6a490cc woww: Fix Dead Store (Found by Clang Analyzer) 2021-08-27 00:09:26 +00:00
Tomasz Moń 7370516d21 USBLL: Reassemble transactions into transfers
Create pseudo URB and pass the reassembled data to USB URB dissector.
Reassembly for control transfers is not problematic as the transfer
length is known. For bulk transfers assume the transfer can span across
multiple transactions, however for periodic (interrupt and isochronous)
assume the transfer never spans across multiple transactions.

Rely on USB dissector to provide endpoint maximum packet size. Actual
interface/configuration handling in USB dissector needs to be reworked
as the code assumes that there is only one configuration and alternate
interface configurations have matching endpoints.

While the reassembly bulk transfers and never reassemble periodic
transfers result in pretty good dissection, the USB class dissectors
need a mechanism to provide transfer size hints to USBLL dissector.
Such hint is not needed for software USB capture as software sniffers
essentially capture URBs and every transfer is associated with one URB.
The problem can be seen for example in Mass Storage Class where it is
common for data transfers length to be multiple of endpoint maximum
packet size. Because USBLL dissector doesn't know expected transfer
size, it combines together data and status transport.

Related to #15908
2021-08-26 17:50:18 +00:00
Reinhard Speyerer da8e7086f6 gsm_sim: add decoding for GET IDENTITY and GET DATA
Add support for decoding instruction byte 78 (GET IDENTITY) from
TS 102 221 v15.11.0 and instruction byte CA (GET DATA) which is used to
retrieve the EID for eSIMs according to GSMA SGP.02 v4.2 available from
https://www.gsma.com/esim/esim-m2m-specifications/.

Closes #17548.
2021-08-26 17:29:22 +00:00
Michail Koreshkov 88657fd57e gtp: alternative GSN address decoders
All fields with GSN address were decodes as common hf_gsn_addr. But if
ETSI order is used, it's possible to specify alternative decoder
depending on message type and field position.
Alternative decoder for GSN address was added for mandatary fields and
optional/conditional field in the case there is single GSN address in
message.

Added new function as common dissector for all addr types.
2021-08-26 16:25:15 +00:00
Christian Krump 28bc920e27 EPL: fix length detection of SDO 'read by index'
correction of the length-calculation of SDO 'read by index' payload data
2021-08-26 12:09:50 +00:00
Dr. Lars Völker 322ae5037a Signal PDU: Speed up dissection
This patch speeds up the dissection of signal pdus, if not filtering.
With an example trace file full of signal PDUs, I gained about a 4x
speed up in opening the trace.
2021-08-26 07:20:12 +00:00
Joerg Mayer 280085838b packet-extreme.c EDP Link TLV: Decode some flags
Fix a signed vs. unsigned warning while at it.

Whitespace fixes
2021-08-25 21:04:11 +00:00
Alexis La Goutte f7755972c9 LDP: Display Generic label with DEC
Fix #17539
2021-08-25 20:12:28 +00:00
Nardi Ivan 1f28ac3ef5 DoQ: update to latest draft (-03)
See https://www.ietf.org/archive/id/draft-ietf-dprive-dnsoquic-03.txt
2021-08-25 19:23:20 +00:00
Gerald Combs f6e2cdcc54 HTTP3: Define dissect_http3_settings only if needed.
Define dissect_http3_settings only if HAVE_LIBGCRYPT_AEAD is defined.
This should hopefully fix

```
epan/dissectors/packet-http3.c: In function 'dissect_http3_settings':
epan/dissectors/packet-http3.c:212:9: error: implicit declaration of function 'http3_is_reserved_code' [-Werror=implicit-function-declaration]
         if (http3_is_reserved_code(settingsid)) {
         ^
epan/dissectors/packet-http3.c: At top level:
epan/dissectors/packet-http3.c:200:1: warning: 'dissect_http3_settings' defined but not used [-Wunused-function]
 dissect_http3_settings(tvbuff_t* tvb, packet_info* pinfo _U_, proto_tree* http3_tree, guint offset)
 ^
cc1: some warnings being treated as errors
```

on the CentOS 7 builds.
2021-08-25 17:54:47 +00:00
Taisuke Sasaki 95f3f58e0d ISIS: Fix Flexible Algorithm issues
- Fix "Priority" field name in FAD TLV (draft-ietf-lsr-flex-algo-16)
- Fix SABM/UDABM length in ASLA TLV (rfc8919)
2021-08-25 17:35:26 +00:00
Tomas Kukosa 522414a091 ITS: use custom value format for DSRC element DeltaTime 2021-08-25 16:29:23 +00:00
Maxime Meignan 09a993da39 NTLMSSP: Remove unnecessary condition in decryption
If a "NT Password" value is provided by the user, the NTLMSSP decryption
should take place, whether or not Kerberos decryption option is enabled
 (disabled by default).
2021-08-25 16:11:11 +00:00
Maxime Meignan 1e697fb7ff NTLMSSP: Allow empty NT passwords for decryption
NT Accounts may have empty passwords; this allows the dissector to try
decrypting the NTLMSSP session using an empty password (when "NT
Password" preference is left blank).
2021-08-25 15:53:55 +00:00
David Perry 697f28c1d3 RTPS: use proto_data instead of private_table
Rewrite storage and retrieval of `endpoint_guid`s to use private proto
data instead of `pinfo->private_table` which was meant solely for Lua
use.

Closes #17156
2021-08-25 15:37:03 +00:00
Arkady Gilinsky cbada6faf4 oampdu: Improve Queue object parsing
Signed-off-by: Arkady Gilinsky <8351139-ark-g@users.noreply.gitlab.com>
2021-08-25 15:20:29 +00:00
Anders Broman d884af52e9 F1AP: Make it possible to exort F1AP PDUs 2021-08-25 10:19:37 +00:00
Gtker 75881ac914 WOWW: Add maps enum and strings
The "unused versions" are not unused in Wireshark, they're just
literally called `unused` for some reason.

DBC file:
https://wowdev.wiki/DB/Map#1.12.1.5875

SMSG_CHAR_ENUM:
https://wowdev.wiki/SMSG_CHAR_ENUM
2021-08-25 08:41:17 +00:00
Gtker 07da0d01ef WOWW: Rename _zone to _area and add strings
`Zone` is not entirely correct, since the value can also be used for
areas within a zone.

AreaTable:
https://wowdev.wiki/DB/AreaTable#1.12.1.5875

SMSG_CHAR_ENUM:
https://wowdev.wiki/SMSG_CHAR_ENUM
2021-08-25 08:41:17 +00:00
Gtker cf28565d4d WOWW: Fix class enum
Original values were incorrect.

Mangos link:
e45aa74e0f/src/game/Server/SharedDefines.h (L75)
2021-08-25 08:41:17 +00:00
Gtker 41eeb05bd1 WOWW: Add case for messages without bodies
This will allow distinguishing messages that have been handle, but have
no body, and unhandled messages (default case).
2021-08-25 08:41:17 +00:00
Gtker a9831231e7 WOWW: Add movement messages 2021-08-25 08:41:17 +00:00
Gtker bc440490c5 WOWW: Refactor parse_SMSG_CHAR_ENUM to take ptvcursor_t 2021-08-25 08:41:17 +00:00
Alexis La Goutte fbabba338c HTTP3: Add define value for HTTP3 Frame Type
use switch for support dissect of other H3 frame_type
2021-08-25 07:48:48 +00:00
Alexis La Goutte f0fa2b333a HTTP3(Settings): Append settings with value 2021-08-25 07:48:48 +00:00
Alexis La Goutte b0bd1c4c2a HTTP3(Settings): Support of GREASE frame 2021-08-25 07:48:48 +00:00
Alexis La Goutte d8618462f5 HTTP3: Add Settings from QPACK (draft-ietf-quic-qpack-21) 2021-08-25 07:48:48 +00:00
Alexis La Goutte b70fa0d4ad HTTP3: Add Settings dissection 2021-08-25 07:48:48 +00:00
Adam Mitz 1089bd47f8 RTPS: fixed expected size of fragment number set
The size of this submessage is 8 + the number of 32-bit ints
needed for the value of the num_bits field to be represented
in the bitmap.
2021-08-25 07:15:28 +00:00
John Thacker 7bd16e0dd9 MP2T: Fix packet length for short packets
Small payload packets that fit into a single TSP without
fragmentation are dissected without ever being placed in
the reassembly table, so fragment_get_reassembled_id returns
NULL even on the second pass and later. Handle them (and
distinguish that case from packets not reassembled because they
were at the end of a capture.)

Add a few comments to clarify what's going on.
2021-08-25 06:57:41 +00:00
Lin Sun 5e59ffd12d [build] fix warnings for unused variables 2021-08-24 18:47:15 +00:00
ismaelrti ed2d004181 RTPS: Fixed UDPv4 WAN locator port encoding and always dissecting of all fields
Always dissecting the UUID IP and port of UDPv4 WAN no matter the
locator flags set. Also fixing the port encoding.
2021-08-24 16:54:22 +00:00
Evan Huus 678541878c h248: convert to pinfo->pool
This one was non-trivial in places and involved converting a few methods
to use strbufs to simplify.
2021-08-24 12:43:52 +00:00
Evan Huus e8f967f162 asn1: convert more dissectors to pinfo->pool
Just h248 left of the asn1 templates, and it's gonna be tricky.
2021-08-24 12:16:15 +00:00
Joakim Karlsson 28ab4bed8e PFCP: added missing PFCP Session Change Info IE 2021-08-24 11:05:35 +00:00
Joakim Karlsson 51327a330b JSON: adding more 3GPP EPS IEs 2021-08-24 12:00:07 +02:00
Guy Harris f7d05a0d0f pdcp-lte: stub out calculate_digest() if we don't support any crypto.
In the non-stub routine, all parameters are used, so remove the _U_.

In the stub routine, mark all unused parameters with _U_.
2021-08-24 01:14:18 -07:00
Guy Harris e3d93143c8 btmesh: don't provide stub custom field formatting routines.
Use the non-stub versions even if we don't have libgcrypt 1.6.0 or
newer; yes, it's code that won't ever be used, but if you want to
eliminate waste, remove all the fields that aren't used if we don't have
libgcrypt 1.6.0 or later.

This avoids the need to create stub routines, making the code a bit less
confusing (and avoiding the risk of using those fields with
non-functional formatting routines).

It also eliminates "function argument unused" warnings when building
with an older version of libgcrypt, and does so more cleanly than adding
a bunch of _U_s to the stub functions.
2021-08-24 00:40:50 -07:00
Martin Mathieson 36793d1298 ORAN: Fix width of TRX weight pair in ext11.
It depends upon the iqwidth, was hardcoded to uncompressed
16-bit weights.
2021-08-23 18:03:38 +01:00
Martin Mathieson febd96affd PFCP: Fix a conflict in ie_type value_string 2021-08-23 14:31:37 +00:00
Martin Mathieson 381e2a35f9 ORAN FH CUS: Fix inclusion of C section 5 fields 2021-08-23 15:12:05 +01:00
ismaelrti 030a80f8a9 RTPS: Added dissection of submessage DATA_FRAG_SESSION.
Introduced new submessage DATA_FRAG_ASESSION (id 0x81). It is the same
as a DATA_FGRAG_submessage but with an extra sequence number field
called "virtualSeqNum".
2021-08-23 11:25:14 +00:00
Martin Mathieson d3b016a365 Remove trailing colons from item label names
This is a new check added to check_typed_item_calls.py --label

Ignoring cases where item type is FT_NONE, as fpr tjpse
text was appended that otherwise would lack a colon.
2021-08-23 08:32:56 +00:00
Dr. Lars Völker d3392ffb55 BLF: Fixing Typo to fix FlexRay Status 2 2021-08-22 23:27:58 +00:00
Dr. Lars Völker 0ace04ae7a Signal PDU: Adding LIN PDUs to info col (Bugfix)
This patch activates the update of the info column for singnal pdus
coming in using the LIN path.
2021-08-22 22:32:05 +00:00
Dr. Lars Völker 514281f9a7 TECMP: RTR is only CAN (BUGFIX!)
Bugfix. ESI in CAN-FD was interpreted as RTR
2021-08-22 22:15:55 +00:00
Dr. Lars Völker 2883fb22e9 ISO15765: Adding support for AUTOSAR TP frame formats
This patch adds support for the FlexRay AUTOSAR TP frame formats as
defined by AUTOSAR_SWS_FlexRayARTransportLayer.pdf
2021-08-22 21:59:08 +00:00
Martin Mathieson 21c222a66e ORAN FH CUS: Fix dissection of UEId field. 2021-08-22 20:40:32 +01:00
Martin Mathieson 82b1092fe9 ORAN: Decompress block floating point numbers (used in ext11). 2021-08-22 13:39:20 +01:00
Dario Lombardo 8bcd077eb0
kerberos: add missing parameter. 2021-08-21 22:52:35 +02:00
Guy Harris 4de9f6ef83 Fix some issues with Exported PDUs.
Fix the description in wsutil/exported_pdu_tlvs.h to reflect reality
(i.e., to match what the code in Wireshark that reads the exported PDU
TLVs, and all code that writes them, does).

In the code that dissects them, treat all strings as FT_STRINGZPAD, as
any null bytes at the end of the string are padding, not part of the
string.

See merge request !3895 and issue #17535.
2021-08-21 02:31:45 -07:00
Jorge Mora 2c556a0e90 Infiniband: display the NAK error code
Display the NAK error from the ACK Extended Transport Header (AETH)
when the syndrome is a NAK error code.
2021-08-20 23:20:07 +00:00
Martin Mathieson 4fc200ce51 UDPCP: Set length of Packet Transfer Options subfree 2021-08-20 17:57:58 +01:00
Pascal Quantin e20e6e30d7 LPPe: upgrade dissector to OMA-TS-LPPe-V1_0-20200630-D
Closes #17531
2021-08-20 18:19:23 +02:00
Taisuke Sasaki 79e82c3018 OSPF: Add Flexible Algorithm (draft-ietf-lsr-flex-algo-17) 2021-08-20 15:56:51 +00:00
Martin Mathieson 78b4835bc5 ORAN FH CUS: For Ext12, create subtree for value pairs 2021-08-20 11:05:19 +00:00
Alvin 9d8f38e600 ORAN : add extension type 12 2021-08-20 09:47:18 +00:00
Guy Harris 4e80643cc0 Move LINKTYPE_WIRESHARK_UPPER_PDU definitions to a separate header.
Have wsutil/exported_pdu_tlvs.h define the LINKTYPE_WIRESHARK_UPPER_PDU
TLV type and length values, as well as the port type values written to
files in EXP_PDU_TAG_PORT_TYPE TLVs.

Update the comment that describes the LINKTYPE_WIRESHARK_UPPER_PDU TLVs
to more completely and correctly reflect reality (it was moved from
epan/exported_pdu.h to wsutil/exported_pdu_tlvs.h).

Rename those port type values from OLD_PT_ to EXP_PDU_PT_; there is
nothing "old" about them - yes, they originally had the same numerical
values as the PT_ enum values in libwireshark, but that's no longer the
case, and the two are now defined independently.  Rename routines that
map between libwireshark PT_ values and EXP_PDU_PT_ values to remove
"old" from the name while we're at it.

Don't include epan/exported_pdu.h if we only need the
LINKTYPE_WIRESHARK_UPPER_PDU definitions - just include
wsutil/exported_pdu_tlvs.h.

In extcap/udpdump.c, include wsutil/exported_pdu_tlvs.h rather than
defining the TLV types ourselves.
2021-08-20 02:18:19 -07:00
Stig Bjørlykke ebf5da61c6 gsm_sim: Show status in info column when response only
Show value from status word in info column when packet is a
response only (not SIMtrace).
2021-08-20 08:29:00 +00:00
Stig Bjørlykke 1807d3874a coap: Do not handle Accept as Content-Format
Only use value of Content-Format to dissect the content in the
current packet. Accept is used to tell which format is expected
in the reply.

Fixes: #17536
2021-08-20 08:12:44 +00:00
Kaige Ye 487445c596 MySQL: Fix COM_QUERY response dissector when CLIENT_DEPRECATE_EOF is set
When CLIENT_DEPRECATE_EOF is set, no EOF packet between field packets and row
packets. See
https://dev.mysql.com/doc/internals/en/com-query-response.html#text-resultset
2021-08-20 07:56:05 +00:00
Guy Harris d679564d7b Use the wsutil/pint.h functions to fill in "exported PDU" headers.
That makes the code cleaner, including making it clearer that the fields
in those headers are big-endian.
2021-08-20 00:35:33 -07:00
Guy Harris 1b54c40a5b jpeg: don't free something allocated from a wmem pool.
If it's allocated with the NULL "pool", yes - that's just a regular
allocation - but if it's allocated from a pool, no.
2021-08-19 15:59:43 -07:00
Evan Huus eda26f9e5f wmem: convert more asn1 dissectors to pinfo->pool
We prefer pinfo->pool over the global wmem_packet_scope() now. Convert a
few more asn1 dissectors. After this commit, just three asn1 dissectors
remain.
2021-08-19 15:07:44 +00:00
Thomas Dreibholz 042001fb55
Added heuristics to ICMP and ICMPv6 dissectors to decode the payload. 2021-08-19 16:13:16 +02:00
Thomas Dreibholz a104403dad
Added HiPerConTracer dissector. 2021-08-19 16:13:15 +02:00
Michail Koreshkov 595a5a1c9d gsm_a_rr: add NRI decoding when pool is used
Protocol BSSGP has option in GUI to enable decoding NRI when SGSN pool
is used. But this configuration option is not used in code.

I have marked this option as obsolete and add new single option to protocol dissector gsm_a_rr
where TLLI is decoded and added code for processing NRI.
2021-08-19 09:51:39 +00:00
Kaige Ye e5062a2249 MySQL: Fix EOF packet dissector when CLIENT_DEPRECATE_EOF is set
Closes: #13467
2021-08-18 09:24:44 +00:00
Chloe Pelling a2b17d3dbe X11: Handle GenericEvents longer than 32 bytes.
While X11 Events are generally fixed-length, GenericEvents extend the protocol
to provide a length field, similar to Replies. As noted in the extension spec,
if a GenericEvent longer than 32 bytes is sent to a client unable to process it,
"future interpretation of replies and events by this client will fail." See
https://www.x.org/releases/current/doc/xextproto/geproto.html

This patch merely prevents that failure case. It does not attempt to
meaningfully dissect the contents of such packets, which in any case will vary
depending on the relevant X11 extension.
2021-08-16 23:06:36 +00:00
Rui f5dc703259 MPTCP: Add support for MP_CAPABLE C Flag
Interpret C Flag as described in section 3.1 RFC8684

Issue: https://github.com/multipath-tcp/mptcp_net-next/issues/190
2021-08-16 19:15:57 +01:00
Martin Mathieson 545eab808e Fix some item label names with unbalanced parens/braces/brackets
Spotted by new check added to check_typed_item_calls.py --label
2021-08-14 21:24:13 +01:00
Gerald Combs cd899ce8d1 LWAPP: Fix a preference description.
Fix a typo in the "Swap Frame Control" preference description, which
makes it match its CAPWAP counterpart.
2021-08-14 04:53:19 +00:00
Dylan Ulis 8c811459b3 CIP Motion: Parse more bits in Act/Cmd Data Sets
Parse Unwind Cycle Count and Position Displacement in the Actual Data
Set and Command Data Set.
2021-08-12 11:14:35 -04:00
David Garcia Villalba b77f028b29 PFCP: Fix Enterprise IE generic decoding offsets
Reduce by two every offset in generic enterprise IE decoding.
Closes: #17523
2021-08-12 09:53:01 +00:00
Ignacio Martínez Rivera 5b9c0fde98 WebSocket: Add support for "x-webkit-deflate-frame" frame compression 2021-08-12 07:25:13 +00:00
Adrian Granados 5f3278c8d5 ieee80211: Add dissector for the Non-Inheritance IE Extension
Implements dissector for Element ID Extension 56 (Non-Inheritance).
See 9.4.2.240 Non-Inheritance element in IEEE 802.11-2020.
2021-08-12 00:21:35 -04:00
Joakim Andersson b75107c77f Bluetooth: Fix clock accuracy field offset in sync info
Fix clock accuracy field offset in the sync info information in the
extended advertising header.
The field was placed at offset 4 instead of the current offset + 4.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2021-08-10 20:33:25 +00:00
Guy Harris 4aee405974 etw: use PACK_FLAGS_DIRECTION() to extract the direction from the flags.
Use PACK_FLAGS_DIRECTION() rather than making with
PACK_FLAGS_DIRECTION_MASK.  They happen to be at the bottom of the flags
option, so no shifing is needed, but it's cleaner to use the macro.

Make the packet flags variable local to the code that uses it, and fix
indentation (don't use tabs - they're not used elsewhere), while we're
at it.
2021-08-09 15:57:29 -07:00
Martin Mathieson c0faa8f1da Some more dissector spellings. 2021-08-08 22:21:38 +01:00
Martin Mathieson 03c3c9a056 check_typed_item_calls: Add some ptvcursor_add...() calls
Fix up some NFAPI calls.
2021-08-08 17:47:42 +01:00
Martin Mathieson 21eb235d15 ORAN FH CUS: Fix ext11 with disableBFs for orphaned PRBs 2021-08-08 12:01:23 +01:00
Dr. Lars Völker 54d47868b8 ISO15765: Cleanup and Bugfix
This patch fixes the wrong value for frame_length being shown in the
header field.

In addition, code is cleaned up and simplified.
2021-08-06 21:38:18 +02:00
Martin Mathieson aaf79b62d7 F1AP stats 2021-08-06 09:31:15 +00:00