Commit Graph

42632 Commits

Author SHA1 Message Date
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