Commit Graph

42821 Commits

Author SHA1 Message Date
Andreas Schultz ec0ce7919d ErlDP: use proto_tree_add_item_ret_XXXX where sensible 2021-05-13 05:00:21 +00:00
Andreas Schultz f44ba07774 ErlDP: decode old message format
The old message format is still in use when talking C nodes.
2021-05-13 05:00:21 +00:00
Andreas Schultz 1fed3443af ErlDP: add decoding for BINARY_EXT 2021-05-13 05:00:21 +00:00
Andreas Schultz e673a9ba75 ErlDP: fix small int printout
SMALL_INT_EXT store *unsigned* integers. Change the printf argument
accordingly.
2021-05-13 05:00:21 +00:00
John Thacker 2f51b2352d HNBAP: Use specific MNC/MCC fields
Use the specifc MNC/MCC fields for the RAI, LAI, CGI in HNBAP,
continuing to use E212_NONE for all occurances of PLMNidentity.
2021-05-13 04:28:31 +00:00
John Thacker 0a0f090f74 X2AP: Use specific MCC/MNC fields
Use the specific fields for ECGI, NRCGI, and TAI, and E212_NONE
as before for all other IEs.
2021-05-12 22:52:46 -04:00
Davide Caratti b77fc703ca mptcp: add support for the 'Subflow Reset' sub-option
dissect MP_TCPRST sub-option in accordance to RFC8684 §3.6

Link: https://github.com/multipath-tcp/mptcp_net-next/issues/189
Signed-off-by: Davide Caratti <davide.caratti@gmail.com>
2021-05-12 22:06:46 +02:00
Vasil Velichkov b9e942930f maxmin_db: Fix a memory leak in maxmind_db_pop_response
The mmdb_val needs to be allocated with the same wmem allocator as the
one used for mmdb_ipv4_map and mmdb_ipv6_map hash maps.

Build with ENABLE_ASAN and run `ctest -R suite_fileformats -V`

24: Direct leak of 144 byte(s) in 2 object(s) allocated from:
24:     #0 0x55e6deb6eebf in malloc (/home/vasko/sources/wireshark/build_clang/run/tshark+0x1f1ebf)
24:     #1 0x7f708f717bb8 in g_malloc (/lib64/libglib-2.0.so.0+0x5bbb8)
24:     #2 0x7f709c0a7b3c in maxmind_db_pop_response /home/vasko/sources/wireshark/epan/maxmind_db.c:622:49
24:     #3 0x7f709c0a895f in maxmind_db_await_response /home/vasko/sources/wireshark/epan/maxmind_db.c:661:9
24:     #4 0x7f709c0a895f in maxmind_db_lookup_ipv4 /home/vasko/sources/wireshark/epan/maxmind_db.c:696:17
24:     #5 0x7f709d1a97c5 in add_geoip_info_entry /home/vasko/sources/wireshark/epan/dissectors/packet-ip.c:570:33
24:     #6 0x7f709d1a2907 in add_geoip_info /home/vasko/sources/wireshark/epan/dissectors/packet-ip.c:662:3
24:     #7 0x7f709d1a2907 in dissect_ip_v4 /home/vasko/sources/wireshark/epan/dissectors/packet-ip.c:2205:7

Fixes: v2.9.0rc0-2687-g1bab83de53 ("maxmind: Move response processing to a thread.")
2021-05-12 11:58:13 +00:00
Eugene Adell 5f8612e973 TCP: Ignore Spurious Retransmissions during reassembly
Spurious Retransmissions are now ignored during the reassembly
because their respective payloads are already computed with
previous packets. Closes #10289.
2021-05-12 06:57:26 +00:00
Pascal Quantin aee224d5a4 DRBD: disable heuristic dissector by default
It is rather weak and thus can easily trigger false positives.
While in the area, ensure that the minimu number of bytes were
captured for heuristic checks.
2021-05-12 05:27:04 +00:00
John Thacker caed4cce7d RANAP: Use RAI specific MNC/MCC fields
The RANAP ASN.1 defines a RAI as being composed of an LAI and a RAC.
(Cf. the RNSAP ASN.1, which defines a RAI as being composed of a
PLMN-Identity, a LAC, and an RAC.) Handle it so that the RAI fields
are used when dissecting a RAI, only using the LAI fields if the LAI
dissection was not called from the RAI.
2021-05-12 04:53:23 +00:00
John Thacker b66bcdfedf NGAP: Use specific MCC/MNC fields
Use the specific MCC/MNC fields in NGAP for the ECGI, NRCGI, LAI,
TAI, and 5GSTAI, using E212_NONE elsewhre. (Note that NGAP refers to
the 5GSTAI as just TAI, and the original TAI as EPS-TAI.)
2021-05-11 22:45:31 -04:00
Gtker 26c3fd23a5 packet-wow: Replace fallthrough attribute with comment
As directed during PR.
2021-05-11 20:08:32 +00:00
Gtker 39621579e8 packet-wow: Add error handling for packets
Some packets with the error field do not include any remaining fields if
the error is not SUCCESS (0).
Previously this was not handled.

Wiki reference:
https://wowdev.wiki/Packets/Login/Vanilla#Opcodes_and_Errors

The ENC_LITTLE_ENDIAN values have been changed because the pre-commit
script complained.
2021-05-11 20:08:32 +00:00
Gtker ceddf3cc77 packet-wow: Fix realmlist parsing
The original implementation had incorrect field sizes, incorrect field
orders and extra "unknown" fields.

Wiki reference:
https://wowdev.wiki/Packets/Login/Vanilla#Server_2

C++ implementation:
https://github.com/EmberEmu/Ember/blob/development/src/login/grunt/server/RealmList.h
2021-05-11 20:08:32 +00:00
Gtker c496d62a34 packet-wow: Remove unneeded enum
The enum is from the original Mangos source. It is never sent over the
wire and thus can never be seen in Wireshark.
2021-05-11 20:08:32 +00:00
Gtker 1d998afb06 packet-wow: Add reconnection proof
Wiki reference:
https://wowdev.wiki/Packets/Login/Vanilla#Reconnection_proof_packets

C++ implementation:

Client:
https://github.com/EmberEmu/Ember/blob/development/src/login/grunt/client/ReconnectProof.h

Server:
https://github.com/EmberEmu/Ember/blob/development/src/login/grunt/server/ReconnectProof.h
2021-05-11 20:08:32 +00:00
Gtker 84f785e5fc packet-wow: Add reconnect challenge packet
Reconnection uses the same client challenge packet as the initial
connection.

Wiki reference:
https://wowdev.wiki/Packets/Login/Vanilla#Reconnection_challenge_packets

C++ implementation:
Server:
https://github.com/EmberEmu/Ember/blob/development/src/login/grunt/server/ReconnectChallenge.h

Client (same as normal connection):
https://github.com/EmberEmu/Ember/blob/development/src/login/grunt/client/LoginChallenge.h
2021-05-11 20:08:32 +00:00
Gtker 1366ea9f9d packet-wow: Add missing fields to proof packets
References on wiki
https://wowdev.wiki/Packets/Login/Vanilla#Proof_packets

Ember server packet
https://github.com/EmberEmu/Ember/blob/development/src/login/grunt/server/LoginProof.h

Ember client packet
https://github.com/EmberEmu/Ember/blob/development/src/login/grunt/client/LoginProof.h
2021-05-11 20:08:32 +00:00
Gtker e34a72d392 packet-wow: Add missing fields to Challenge Packets
Wiki for reference
https://wowdev.wiki/Packets/Login/Vanilla#Challenge_packets

Ember has an implementation
03c130d3d6/src/login/grunt/server/LoginChallenge.h (L60)

The two factor field is not present on versions before 1.12, although
getting a capture of it is difficult because clients before 1.12 are not
used for emulation.
2021-05-11 20:08:32 +00:00
Preston Hunt 3fb0a46319 IEEE 802.11: correct name of FTM
According to 802.11-2020, the frame is "Fine Timing Measurement" (FTM)
and not "Fine Timing Measurement Response".
2021-05-10 08:40:39 -07:00
Andreas Schultz a6dfdef9b5 PFCP: add dissector for Broadband Forum TR-459 2021-05-10 15:24:45 +00:00
Andreas Schultz 9e8e4f3ed3 PFCP: rework Enterprise IE decoder to be reusable
Add generic, table driven enterprise IE decode that can be reused
by all enterprise specific IEs.
2021-05-10 15:24:45 +00:00
Andreas Schultz 40d2584b46 PFCP: update Travelping vendor IEs 2021-05-10 15:24:45 +00:00
Gerald Combs 3a62834f46 IEC104: Initialize a variable.
Make sure "tm" is initialized. This should fix

*** CID 1484550:  Uninitialized variables  (UNINIT)
/builds/wireshark/wireshark/epan/dissectors/packet-iec104.c: 1120 in get_CP32TimeA()
1114
1115     	/* The CP32Time2a structure does not contain any mm/dd/yyyy information.  Set these as default to 1/1/2000 */
1116     	tm.tm_mday = 1;
1117     	tm.tm_mon = 0;
1118     	tm.tm_year = 100;
1119
>>>     CID 1484550:  Uninitialized variables  (UNINIT)
>>>     Using uninitialized value "tm.tm_isdst" when calling "mktime".
1120     	datetime.secs = mktime(&tm);
1121
1122     	ti = proto_tree_add_time(tree, hf_iec60870_5_103_cp32time2a, tvb, *offset, 4, &datetime);
1123     	cp32time2a_tree = proto_item_add_subtree(ti, ett_iec60870_5_103_cp32time2a);
1124
1125     	proto_tree_add_item(cp32time2a_tree, hf_iec60870_5_103_cp32time2a_ms, tvb, *offset, 2, ENC_LITTLE_ENDIAN);
2021-05-10 05:38:47 +00:00
John Thacker 1701a2db5d S1AP: Use specific MCC/MNC fields
Use the specific MCC/MNC fields for the LAI, CGI, ECGI, NR-CGI, TAI,
and 5GS-TAI IEs, continuing to use E212_NONE for PLMNidentity in all
other cases. Add fields and an enum value for 5GS-TAI to packet-e212.
(The 5GSTAC has an additional octet compared to the original TAC.)
2021-05-09 23:07:19 -04:00
John Thacker a106ba9d27 F1AP: Use specific MCC/MNC fields for NRCGI
Use specific MCC/MNC fields for NRCGI IE, continue to use E212_NONE
by default for everything else.
2021-05-09 10:02:36 -04:00
Dr. Lars Völker 02fc9ea059 SOME/IP: Cleanup formatting and fixed typos
This patch makes the formatting a bit more consistent as well as
fixes and optimizes the help strings a bit.
2021-05-09 11:59:05 +00:00
Anders Broman 2fe4f1af76 gtpv2: Use the correct name for Remaining Running Service Gap Timer 2021-05-09 13:03:40 +02:00
Chris Bontje 37e7f331c3 Clear final build warning (hopefully) 2021-05-09 05:21:40 +00:00
Chris Bontje 81ecbc0cb5 Clear build warnings 2021-05-09 05:21:40 +00:00
Chris Bontje 0ad284cbbc packet-iec104.c - Add IEC 60870-5-103 Protocol Dissection
- IEC 60870-5-103 is a derivative protocol of the main 101/104 variants.
- It is used primarily for RTU to IED communication and facilitates
collection of basic status, metering and fault data with several same or
similar field types and data formatting.
- This protocol is primarily serial-only but it can be present on
Ethernet-tunneled-serial communication circuits if port servers are used.
- This initial version supports the following ASDU Types:
Prim-to-Sec (RTU-to-IED): Types 6, 7, 20, 45/46 (private)
Sec-to-Prim (IED-to-RTU): Types 1, 5, 6, 8, 9, 205 (private)
2021-05-09 05:21:40 +00:00
John Thacker 0b8051db67 E1AP: Use specific MNC/MCC fields for NR-CGI
Use E212_NRCGI for the NR-CGI IE, continue to use E212_NONE by default
otherwise.
2021-05-08 19:38:39 -04:00
John Thacker 7f4c33d634 RANAP: Use specific MNC/MCC fields when applicable
When the PLMNidentity information element is part of the CGI, LAI, RAI,
SAI, or TAI, use the specific MNC/MCC field types as appropriate.
Otherwise, use E212_NONE as before.
2021-05-08 17:26:04 -04:00
John Thacker 7c1efdf712 SABP: Use SAI specific MCC/MNC fields
The field here is always part of a Service Area Identifier (as expected
in the Service Area Broadcast Protocol), so use E212_SAI instead of
E212_NONE.
2021-05-08 15:45:05 -04:00
Volodymyr Khomenko 3994d52b82 NFS4: added dissector for fattr4.FS_Charset_Cap
Implemented dissector for FS_Charset_Cap attribute of fattr4.bitmap4;
it is needed for NFS4 GETATTR or READDIR Reply packets
when FS_Charset_Cap attr was used in request. Closes #17377
2021-05-08 18:47:27 +00:00
Anders Broman 71e6b0498a http: Add dissection of HTTP2-Settings
Closes #17370
2021-05-08 17:14:45 +00:00
Dr. Lars Völker 1dc5579366 WIP: SOME/IP: Adding support for WireType-Length-Value encoding
This patch adds support for a WTLV encoding. While this feature is
not part of the original SOME/IP standard, it got later added as
experimental/draft feature to the AUTOSAR specification.
2021-05-08 15:28:46 +00:00
Preston Hunt be3d6ed23c IEEE 802.11: indicate termination for FTM Response
Add (Termination) to the summary when dissecting an FTM Response with
Dialog Token == 0 (which indicates a termination).
2021-05-08 07:26:57 +00:00
Tomas Kukosa 9a31ed93c0 ITS: fix unused LongitudinalAccelerationValue_vals 2021-05-08 06:57:44 +00:00
Tomas Kukosa f04c6d3b18 ITS: use custom formatters for better readability 2021-05-08 06:57:44 +00:00
Vadim Yanitskiy ca86d0ab38 GSM A-bis/OML: show Manufacturer ID in vendor-specific messages 2021-05-06 14:49:34 +00:00
Tomas Kukosa 7291d7f951 R09: use tvb_get_bcd_string() 2021-05-06 14:09:39 +00:00
Tomas Kukosa 016a95721a R09: add license 2021-05-06 14:09:39 +00:00
Tomas Kukosa a84d08734b R09: new dissector for R09.x public transport priority telegrams 2021-05-06 14:09:39 +00:00
Pascal Quantin 98673850a4 GTPv2: add dissection of Mapped UE Usage Type IE
Fixes #17373
2021-05-06 13:52:22 +00:00
Anders Broman 607aeb5416 HTTP2: Make it possible to configure a port range. 2021-05-06 13:33:55 +00:00
Andreas Schultz 2afa79a14d PFCP: fix UE IP address Pool Identity
Fix multiple problems with UE IP address Pool Identity
* the length of the length field needs to be added to offset
* the length field is two bytes long
* the bitmask on the lenght field is wrong
* add "Length" to the description of the length field
* decode UE IP address Pool Identity as string

Decoding the field as string makes sense because it originates from
a DIAMETER attrbiute that would usually also be decoded as string.
2021-05-06 11:37:57 +00:00
Tomas Kukosa 5af925e013 ITS: fix asn2wrs #.NO_EMIT
asn2wrs accepts #.NO_EMIT using module specific $Module$TypeName identifier
2021-05-06 07:36:08 +00:00
Tomas Kukosa be6aff9e11 ITS: fix - do not emit unused vals
Change-Id: I2c84dc965485ad12ea6703b4c11dce92b668b545
2021-05-06 07:36:08 +00:00
Tomas Kukosa 9d2f37a651 ITS: add Collective Perception Service (CPS) - ETSI TR 103 562 V2.1.1 (2019-12)
Change-Id: Ic0ddd713527ef60d49af5ac08388ce976d86c735
2021-05-06 07:36:08 +00:00
Alexis La Goutte 5682a264c1 isis(clv): Fix Dead Store (unused variable) 2021-05-06 07:18:22 +00:00
Alexis La Goutte 750563e356 vj-comp: Fix Dead Store (unused variable) 2021-05-06 07:18:22 +00:00
Alexis La Goutte 8aec509a22 nvme: Fix Dead Store (unused variable) 2021-05-06 07:18:22 +00:00
Alexis La Goutte 57024cdc0a icmp: fix Dead Store
packet-icmp.c:878:3: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
2021-05-06 07:18:22 +00:00
Vasily Utkin 8d0e1b798d packet-wow: Correct protocol_version field
Fixes a very small part of #11398.

The fields were incorrectly identified as error fields because Mangos,
the most popular open source emulator in 2009 incorrectly identified it
as such.

Reverse engineering of the client revealed that the fields were protocol
versions.

As well as misidentifying the field, the WOW_SERVER_TO_CLIENT version
also read the wrong field. The actual error field is the one that comes
after the protocol version field.

Correct packets are in Ember
WOW_CLIENT_TO_SERVER
03c130d3d6/src/login/grunt/client/LoginChallenge.h (L39)

WOW_SERVER_TO_CLIENT
03c130d3d6/src/login/grunt/server/LoginChallenge.h (L33)

As well as the Wiki
https://wowdev.wiki/Packets/Login/Vanilla#Challenge_packets
2021-05-06 04:10:13 +00:00
Preston Hunt c00aa5e967 IEEE 802.11: fix spelling for TBTT
TBTT is incorrectly spelled as TBBT in several places.
2021-05-05 20:49:17 +00:00
Chris Bontje 83dc9a247e packet-selfm.c - Resolve Uninitialized Variable 2021-05-05 09:26:43 -06:00
Anders Broman 1fae992dbe GRPC: Register both tables streaming_content_type/media_type 2021-05-05 09:09:55 +00:00
Chris Bontje 6747b20961 Remove unncessary temporary variables 2021-05-05 07:28:23 +00:00
Chris Bontje e8a5e2d8f6 packet-selfm.c - fix tabulation 2021-05-05 07:28:23 +00:00
Chris Bontje 0a7f5d4058 packet-selfm.c - Use proto_tree_add_time where appropriate 2021-05-05 07:28:23 +00:00
Thomas Dreibholz 0f86c41e73 Added NetPerfMeter statistics feature, including corresponding documentation. 2021-05-05 07:09:25 +00:00
Vadim Yanitskiy 7b81ddd35b GSM A-bis/RSL: add Osmocom specific channel rate and type values 2021-05-04 02:24:57 +02:00
Vadim Yanitskiy 77e990eb08 GSM A-bis/RSL: handle Osmocom specific Training Sequence IE 2021-05-04 02:24:57 +02:00
ismaelrti 81ce8bbade RTPS: Fixed GUID not initialized in dissect_rtps_submessages function
Not initialized GUID in function dissect_rtps_submessages leads to
malformed packets due the nested submessage dissection functions
insert/reads it from a map.
2021-05-03 20:09:19 +00:00
Rickard Holmberg 4dd71cfbb6 Update to DICOM Edition 2021b 2021-05-03 19:51:19 +00:00
ismaelrti 8335c597b9 RTPS: Added new flag to PID_VENDOR_BUILTIN_ENDPOINT_SET
Introduces a new bit "Cloud Discovery Service Announcer"
into the PID_VENDOR_BUILTIN_ENDPOINT_SET parameter
send with DATA(P) messages to indicate that the DATA(P) message is
coming from Cloud Discovery Service.
2021-05-03 19:31:45 +00:00
Tomas Kukosa a145ed6071 JSON NaN value supported
Change-Id: I0096d047fb6eab882ad943090f5c4a6c1864671a
2021-05-03 15:35:09 +02:00
Anders Broman 249eb294b3 SIP: Add decoding of protobuf fields. 2021-05-03 09:34:14 +00:00
Martin Mathieson aed3f61175 NVME: try to fix a value_string value
N.B. Didn't find the spec for this, but the pipeline warning is as follows
Field 'RDMA Provider Type (RDMA_PRTYPE)' (nvme.cmd.get_logpage.identify.rcrd.tsas.rdma_prtype) has a conflicting entry in its value_string: 3 is at indices 2 (RoCE (v1)) and 4 (iWARP)
2021-05-03 07:56:47 +00:00
Eugene Adell 6d3b86357d TCP: RTO calculation relies on a wrong reference packet
RTO was calculated on the last packet increasing the nextseq,
which ended on not identifying the original right packet later
retransmitted. We now consider the eldest unacked packet as
being likely to be the one to be retransmitted, and it gives a
much more accurate RTO value. Closes #12259.
2021-05-03 05:17:32 +00:00
John Thacker a682f45c23 BGP: Update and fix handling of Multiprotocol Extensions
In the MP_REACH_NLRI attribute, break out the Next Hop field into
constituent subfields for different address types. Add a field name
for the NLRI to make it filterable and consistent with the standard
NLRI attribute. Also add a field name for the withdrawn routes for
the MP_UNREACH_NLRI attribute.

Correct a comment about RFC 2545 and the handling of what it allows,
viz. IPv6 next hop addresses being optionally followed by link-local
next hop addresses.

The above has nothing to do with RFC 2283 allowing multiple <afi, safi,
..., NLRI> tuples (which was impossible to implement, and RFC 2858
later explicitly disallowed), so correct the comment about that.
2021-05-01 09:07:21 -04:00
Guy Harris 57a1514ac7 Cast away the return value of g_strlcpy() and g_strlcat().
Most of the time, the return value tells us nothing useful, as we've
already decided that we're perfectly willing to live with string
truncation.  Hopefully this keeps Coverity from whining that those
routines could return an error code (NARRATOR: They don't) and thus that
we're ignoring the possibility of failure (as indicated, we've already
decided that we can live with string truncation, so truncation is *NOT*
a failure).
2021-04-30 03:19:19 -07:00
Thomas Dreibholz 0914739700 MAC-NR: workaround a gcc 9.3.0 for AMR64 false positive. 2021-04-30 08:43:36 +00:00
Pascal Quantin 5a109265a6 USBLL: allocate address in pinfo pool
The packet pool lifetime is too short for data added to the pinfo
structure

Fixes #17367
2021-04-30 09:32:40 +02:00
Vadim Yanitskiy 9896b1d65d GSM A RR: add missing 10.5.2.82 Extended TSC Set IE 2021-04-30 04:51:45 +00:00
Stefan Metzmacher 924e16a22a packet-smb-direct: also call payload dissector if tree is NULL
This is needed to get the COL_INFO and COL_PROTOCOL set
from the payload dissector.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2021-04-29 14:37:57 +02:00
Stefan Metzmacher 92faecc3f7 packet-iwarp-mpa.c: fix mpa_fpdu dissecting without marker pdu fragmentation
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2021-04-29 14:37:07 +02:00
Stefan Metzmacher 16988d2b4f packet-iwarp-mpa: make use of tcp_dissect_pdus() to reassamble pdus
There might be more than one mpa frame in a tcp pdu
or one mpa frame spans more than one tcp pdu.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2021-04-29 14:33:04 +02:00
Marius David f25c3ccc08 Update Keysight/Ixia netflow fields support. 2021-04-29 09:37:21 +00:00
Pascal Quantin 00b0cb180a RTPS: initialize guid.fields_present field
Fixes #17365
2021-04-29 08:17:00 +00:00
Pascal Quantin d8dedddf8a RTPS-PROC: fix a possible NULL pointer dereference spotted by Coverity
Fixes CID 1477404
2021-04-29 07:53:16 +00:00
ismaelrti b46d244a9b RTPS: Fixed crash when dissecting Type Code info.
Fixed crash when dissecting Type Object larger than 100 elements. Added
protocol option for setting up the maxumun number of Type Object elements to show.
2021-04-29 07:36:30 +00:00
Preston Hunt 4b41dc87d3 IEEE 802.11: display Partial TSF as microseconds
To save space, the value of Partial TSF is stored shifted to the right
by 10. When displaying to the user, shift it back to the left by 10 and
display as microseconds.
2021-04-28 17:16:50 -07:00
Pascal Quantin 40bc53a129 NVMe: do not use packet scope memory for BASE_CUSTOM fields
As the fallback string is not formated, use val_to_str_const() instead
Fixes #17364
2021-04-28 21:49:16 +00:00
Guy Harris eb4d68033e Don't cast away upper bits when assigning to a nstime_t's secs field.
The secs field is a time_t, which is not necessarily 32 bits.  If it's
not, casting away the upper bits, by casting to guint32, introduces a
Y2.038K bug.

Either cast to time_t or, if you're assigning a time_t to it, don't
bother with the cast.
2021-04-28 21:31:15 +00:00
Pascal Quantin ebdb6784fa wslua: fix compilation with gcc 11
Fixes the misleading-indentation warning
2021-04-28 20:12:19 +00:00
Guy Harris 3bfe597f5b etl: fix handling of the packet flags.
Use #defines, not numbers, for inbound and outbound. and test only the
direction part of the packet flags, in case any other bits are set.
2021-04-28 19:10:57 +00:00
Moshe Kaplan 00b86cf64d wslua: Fix crash on FieldInfo.range and FieldInfo.value for a nonexistent TVB
Fields such as '_ws.expert' have no underlying tvb; they are added
with offset 0 and length 0 and the field's underlying tvb is NULL. FieldInfo__call
passes tvb to tvb_memdup() without checking if the tvb is null and
assumes that a NULL tvb means that the tvb is expired and therefore raises an error:
"epan/tvbuff.c:477: failed assertion "tvb && tvb->initialized"

Fields such as '_ws.expert.group' have no underlying tvb; they are added
with offset 0 and length 0 and the field's underlying tvb is NULL. FieldInfo_get_range
calls push_TvbRange, which assumes that a NULL tvb means that the tvb is expired
and therefore raises a lua error of "expired tvb".

This commit explicitly adds a check to FieldInfo__call() to see if the tvb is null when
attempting to access the underlying tvb.

It also explicitly checks if the tvb is null when attempting to access the range
and if it is, returns nil. This is consistent with how FieldInfo.source also
returns nil for such fields.

This commit should fix issue #13542.
2021-04-28 16:59:54 +00:00
Pascal Quantin e2e4b79d0d M3AP: update release version in header 2021-04-28 13:38:22 +02:00
Anders Broman cb10c0f53a M3AP: Only version updated, no code changes. 2021-04-28 11:17:40 +00:00
Martin Mathieson e8fd04a145 DCT2000: Lookup xnap and ngap protocols 2021-04-28 10:37:16 +00:00
Pascal Quantin ebafa3a4b9 NAS 5GS: add NAS 5GS protocol to TCP port decode as table
This is useful to decode NAS messages received in a N3IWF
2021-04-28 09:39:04 +00:00
Richard Sharpe 855662f8dc ieee80211: Fix the handling of the ISTA Availability bit map.
Forgot to multiply by 8. So we get garbage displayed once the number of
bits is more than 15.

Change-Id: I069b9a9f47e3fa15ad9ae404a70555561fb496ba
2021-04-28 04:39:45 +00:00
Alex Sirr f4ba2c7545 Update packet-dcerpc-taskschedulerservice.c 2021-04-27 20:11:59 +00:00
Alex Sirr 31165fbbce remove comment 2021-04-27 20:11:59 +00:00
Alex Sirr 17ae0f6be2 DCERPC - Add dissector for ITaskSchedulerService 2021-04-27 20:11:59 +00:00
Preston Hunt ec14bbd892 IEEE 802.11: decode RSTA availability duration
RSTA Availability Duration has units of 100 microseconds. Display it as
ms for readability.
2021-04-27 19:47:12 +00:00
Martin Mathieson 1b2fdeca13 PTP: Fix a couple of spelling errors 2021-04-27 10:01:37 +00:00
Guy Harris 80a6e34d81 rtps-virtual-transport: fix printing of 64-bit integers.
There is no guarantee that "%l[doux]" are correct for 64-bit integers.
Use G_GUINT64_FORMAT for unsigned 64-bit integers.
2021-04-27 02:07:31 -07:00
Luis Colmenero 3cdbbcdfb9 RTPS-VT: New dissector to enhance the RTPS protocol
Added dissectors for RTPS Virtual Transport and RTPS Processed Protocols

RTI Connext DDS can capture RTPS-related traffic by using the Network Capture
Utility. The generated .pcap capture files will follow these protocols,
establishing a format for how information must be saved, and then
parsed. This will improve debuggability by including additional information
obtained from within Connext DDS.

RTPS-VT parses the information related to the transport. It then, calls
the RTPS-PROC dissector, which handles the rest: calling the RTPS
dissector when needed, and parsing additional information such as the
one related to security.
2021-04-27 06:15:42 +00:00
Wolfgang Steinwender ff9a89c8a2 http2: Rename GOAWAY Promised-Stream-ID to Last-Stream-ID
According to the RFC, the stream ID in a GOAWAY frame is called Last-Stream-ID.
2021-04-26 21:36:45 +00:00
Preston Hunt 21474fa308 IEEE 802.11: add dissection of FTM R2I/I2R reps
The max I2R and R2I repetition field values are one less than the actual
value. Display the actual count when displaying to the user.
2021-04-26 11:43:09 -07:00
Jirka Novak c1084fe97e RTP Player: Settings for enabling use of disk as temporarly store
New advanced settings are created:
- rtp_player_use_disk1 - controls if decoded samples are stored in
  memory or on disk.
- rtp_player_use_disk2 - controls if dictionary for decoded samples
is stored in memory or on disk.
- documentation updated
2021-04-26 10:57:22 +02:00
Uli Heilmeier fd14396972 PTP: Check for enough bytes
Make sure we have enough bytes for Length and Type fields before we read
from tvb.
Using existing msg_len for the checks.

Closes: wireshark/wireshark#17355
2021-04-26 07:45:18 +00:00
Tomasz Moń 340019b233 USBLL: Group packets into transactions
Move USB state machine tracking into one function. Do not store source
and destination addresses, simply generate them based on transaction
info and state when needed.

Related to #15908
2021-04-26 07:28:30 +00:00
Martin Mathieson d9ad3b15c5 Fix more item lengths. 2021-04-24 19:22:37 +01:00
Dr. Lars Völker 8a96d2a903 CAN, AUTOSAR NM, Signal PDU: Fix the interpretation of CAN ID
This patches makes sure that the registered IDs are not influenced
by the three flags mapped into the same uint32.

This was a oversight in the AUTOSAR NM and Signal PDU dissectors.
2021-04-24 11:40:57 +00:00
Daniel Dulaney e35efdee8d TIFF: Add a basic TIFF dissector 2021-04-24 10:42:59 +00:00
John Thacker 9569288c3b BGP: Update Subsequent Address Family Identifiers (SAFI)
Update SAFI defines and value string from last update at
https://www.iana.org/assignments/safi-namespace/safi-namespace.xhtml
2021-04-24 08:28:10 +00:00
ferst da80daaf83 DNP3: Add TLS dissector
IEEE 1815-2012[1] section 7.8 describes the use of DNP3 over TLS using TCP
port 19999. This commit creates a global to store the return of
`register_dissector` and then calls `ssl_dissector_add` in
`proto_reg_handoff_dnp3`.

[1] https://ieeexplore.ieee.org/servlet/opac?punumber=6327576
2021-04-24 07:56:40 +00:00
Piotr Winiarczyk 91d21fc334 btmesh: Fix typo in PDU name
The Light Lightness Get is the proper name for the PDU 0x824B
2021-04-24 09:02:31 +02:00
Joakim Karlsson 1bd0cf5fbd NVMe: fix build error
packet-nvme.c:2396:8: error: ‘grp’ may be used uninitialized in this
function [-Werror=maybe-uninitialized]
     ti = proto_tree_add_item(grp, hf_nvme_get_logpage_lba_status_nel,
cmd_tvb, poff, len, ENC_NA);
        ^
packet-nvme.c:2378:17:
note: ‘grp’ was declared here
     proto_tree *grp;
                 ^
2021-04-23 08:04:58 +00:00
Christian Ambach 96e8ab4682 AJP13: properly display request attributes
do not show only the value of an attribute, but also its name

Change-Id: Ieb07e994dd984bdc98a52a947b2d3b06bc26fd30
Signed-off-by: Christian Ambach <ambi@samba.org>
2021-04-23 07:05:40 +00:00
Christian Ambach de5a830e95 AJP13: properly display common headers
do not show only the value of a header value, but also the header's name

Change-Id: I84ef3107cf3d4b0c8aa96fe137aa9be19c30c6ab
Signed-off-by: Christian Ambach <ambi@samba.org>
2021-04-23 07:05:40 +00:00
Preston Hunt 9ad9bb8969 IEEE 802.11: display STA Info STS with custom func
Updated dissection of number of STS field to use the same custom
function as used by STS dissection in other frames.
2021-04-23 05:44:43 +00:00
Martin Mathieson c182fa4268 Make some vars static. 2021-04-22 09:47:51 +01:00
Josh Schmelzle f3bd0b5772 80211: Rename VHT_TX_PWR_ENVELOPE to TX_PWR_ENVELOPE 2021-04-22 04:30:19 +00:00
John Thacker 50dda353ec SGSAP: Use ECGI specific fields for the ECGI MCC/MNC 2021-04-22 04:14:30 +00:00
Thomas Dreibholz 4232d2f81d Fix for the ASAP and ENRP statistics.
Removed wrong stat_tap_set_field_data() call -> interval display is working
correctly now.
2021-04-22 03:55:15 +00:00
Richard Sharpe fe13ec8fd2 ieee80211: Fix handling of PASN Auth for seq==3.
The original code was too complex and missed some IEs.

Change-Id: I0734f31e9f4b37b8a876b675dbde8972745f124e
2021-04-21 22:52:25 +00:00
Peter van der Perk 4959ae652e UAVCAN/CAN dissector see https://uavcan.org/ 2021-04-21 19:36:44 +00:00
Pascal Quantin f15d35b0c8 CSP: fix compilation with MSVC 2021-04-21 20:45:48 +02:00
Thomas Dreibholz f199c00d40 Improvements for the CSP dissector 2021-04-21 11:16:43 +00:00
Jim Young d42042fcbb Qt: Add checkbox for enabling/disabling packet-list hover_style
At times the presence of the packet-list hover_style colorization can make
it difficult to determine the state of the packet directly under the mouse
cursor. This forces the user to move the mouse cursor away from the
packet-list row to reveal the next colorization state. The packet-list row
colorization style precedence, from highest to lowest, is: hover_style,
Selected, Ignored, Marked and then coloring rules.

This patch adds a new 'Packet List settings:' checkbox option 'Enable
mouse-over colorization'. By default the supporting preference
`gui.packet_list_hover_style.enabled` will be enabled (TRUE). When this
checkbox is disabled, the packet-list hover_style (mouse-over)
colorization will not be used.
2021-04-21 08:36:27 +00:00
Vadim Yanitskiy eb3e124b46 GSMTAP: use Wireshak's API for displaying dB/dBm units 2021-04-21 02:24:29 +02:00
ismaelrti eb5f4eea99 RTPS: Added new coherent sets PIDs.
Add support for new PIDs (PID_GROUP_COHERENT_SET, PID_END_COHERENT_SET,
PID_END_GROUP_COHERENT_SET, PID_END_COHERENT_SET_SAMPLE_COUNT).
2021-04-20 20:53:31 +00:00
ishaangandhi 1e012c2c00 Read ICMP extensions from after the original datagram
RFC 4884 requires ICMP extensions be read after the original datagram. For backwards compatibility, if there is no `icmp_original_dgram_length` field in the packet, we assume they are 128. However, if this field is there, we should prefer to use that.
2021-04-20 20:36:07 +00:00
BasiL 3173a808a3 GSM_MAP: Error Code typo's fix
some of the error codes have missed last character
2021-04-20 20:16:20 +00:00
Constantine Gavrilov 4d72ce1a4a NVMe: Get LogPage: Sanitize Response.
This closes #17327
2021-04-20 17:47:13 +00:00
Constantine Gavrilov 59d81aa02a NVMe: Get LogPage: Reservation Response. 2021-04-20 17:47:13 +00:00
Constantine Gavrilov 6b80b58506 NVMe: Get LogPage: Endurance Group Aggregate Response. 2021-04-20 17:47:13 +00:00
Constantine Gavrilov 01e32eaa20 NVMe: Get LogPage: LBA Status Response. 2021-04-20 17:47:13 +00:00
Thomas Dreibholz a228c46030 Added decoding of NetPerfMeter message flags 2021-04-20 16:56:29 +00:00
Martin Mathieson d75e9f95eb More trivial spellings. 2021-04-20 08:46:16 +00:00
Gerald Combs b7a0650e06 MS-WSP: Don't allocate huge amounts of memory.
Add a couple of memory allocation sanity checks, one of which
fixes #17331.
2021-04-20 08:13:50 +00:00
David Perry 26c5635973 [#17212] Define loading order for lua plugins
Instead of loading lua plugins in the random-seeming order that is
returned by the filesystem, sort the list of plugin filenames in
ASCIIbetical order. This makes the load order of plugins predictable.

This particular order was chosen to be consistent with the precedent set
by various *nix tools.
2021-04-20 05:38:32 +00:00
Thomas Dreibholz 42c54434a8
Using REGISTER_STAT_GROUP_RSERPOOL for ENRP statistics. 2021-04-19 12:50:33 +02:00
Thomas Dreibholz fe04fb5e98
Added ENRP statistics. 2021-04-19 12:50:32 +02:00
Martin Mathieson 53c67e31e7 NVME: Fix some spellings
Also added some of its words to wireshark_words.txt
2021-04-19 09:24:38 +01:00
Constantine Gavrilov 4959389fc3 NVMe: Windows compiler support. 2021-04-19 07:14:51 +00:00
Constantine Gavrilov 3a0e1ba1e2 NVMe: Increase PROTO_PRE_ALLOC_HF_FIELDS_MEM. 2021-04-19 07:14:51 +00:00
Constantine Gavrilov f19298d2e1 NVMe: Get LogPage: ANA Response. 2021-04-19 07:14:51 +00:00
Constantine Gavrilov d24d62ea0e NVMe: Get LogPage: Predictable Latency Agrregate Response. 2021-04-19 07:14:51 +00:00
Constantine Gavrilov fa07609955 NVMe: Get LogPage: Predictable Latency Response. 2021-04-19 07:14:51 +00:00
Constantine Gavrilov d3c5eb2a71 NVMe: Get LogPage: Endurance Group Response. 2021-04-19 07:14:51 +00:00
Constantine Gavrilov b5d770fc5f NVMe: Get LogPage: Telemetry Response. 2021-04-19 07:14:50 +00:00
Constantine Gavrilov 2ca3707be1 NVMe: Get LogPage: Device Self-test Log. 2021-04-19 07:14:50 +00:00
Constantine Gavrilov bb5ec812fe NVMe: Get LogPage: Commands Supported and Effects 2021-04-19 07:14:50 +00:00