Commit Graph

86484 Commits

Author SHA1 Message Date
João Valverde fd709a6af3 dfilter: Indent DFVM program using spaces 2023-01-05 20:26:42 +00:00
Alexis La Goutte 46a7e84b69 DNS: it is a IP6 Address for AAAA
From IANA Table
2023-01-05 09:24:42 +00:00
Alexis La Goutte b797829022 DNS: fix a very old typo... MAILB -> MAILB 2023-01-05 09:24:42 +00:00
Alexis La Goutte 671df60225 DNS: Update type value (from IANA) 2023-01-05 09:24:42 +00:00
Hans Hinrichsen 030d8ad9f2 Implement sACN Universe Sync dissection 2023-01-05 09:23:25 +00:00
Joakim Wiberg 077a91a8c5 Added new ODVA specific TLV
Added new ODVA specific TLV that replaces an already existing
ODVA specific TLV that has been depredated.
2023-01-05 09:22:28 +00:00
Martin Mathieson 4d879b3b32 ORAN FH CUS: some trivial usability improvements, and TODOs 2023-01-05 09:05:03 +00:00
Jakub Pawlowski c95e8bd38a androiddump: btsnoop support on android T and onwards
After android T, BT process might be called i.e.
com.google.android.bluetooth, instead of com.android.bluetooth

It depends on what APEX version is installed.
2023-01-05 06:52:02 +00:00
John Thacker 0e93070745 follow: Add function for sub stream id to registration
When dissectors register for Follow Stream, have them register a
function for finding the next valid sub stream id for a given
stream and substream id pair. This function is NULL if the dissector
does not use sub stream IDs.

Use this function in follow_stream_dialog to update the sub stream
id widget (and use the absence of the function to disable and hide
the widget.) Use this function in the CLI tap-follow to determine
whether to parse a sub stream id from the command line options.

This removes the dependencies on epan/dissectors from the Qt
follow_stream_dialog, and gets us closer to having dissectors
being able to register for Follow Stream without having to update
anything in the common source code.
2023-01-05 05:04:33 +00:00
Gerald Combs 3120e64570 wslua: Fix the build.
Fix

    wireshark\epan\wslua\wslua_proto_field.c(423,29): error C2220: the following warning is treated as an error [wireshark\build\epan\wslua\wslua.vcxproj]
    wireshark\epan\wslua\wslua_proto_field.c(423,29): error C2220:             mask = (guint64)wslua_optguint32(L, idx, default_value); [wireshark\build\epan\wslua\wslua.vcxproj]
    wireshark\epan\wslua\wslua_proto_field.c(423,29): error C2220:                             ^ [wireshark\build\epan\wslua\wslua.vcxproj]
    wireshark\epan\wslua\wslua_proto_field.c(423,29): warning C4244: 'function': conversion from 'guint64' to 'lua_Number', possible loss of data [wireshark\build\epan\wslua\wslua.vcxproj]
    wireshark\epan\wslua\wslua_proto_field.c(423,29): warning C4244:             mask = (guint64)wslua_optguint32(L, idx, default_value); [wireshark\build\epan\wslua\wslua.vcxproj]
    wireshark\epan\wslua\wslua_proto_field.c(423,29): warning C4244:                             ^ [wireshark\build\epan\wslua\wslua.vcxproj]

on Windows and

    wireshark/epan/wslua/wslua_proto_field.c:1462:48: error: format specifies type 'unsigned long' but the argument has type 'guint64' (aka 'unsigned long long') [-Werror,-Wformat]
                                             f->vs,f->mask,f->blob);
                                                   ^~~~~~~
    wireshark/wsutil/wmem/wmem_strutl.h:51:56: note: expanded from macro 'ws_strdup_printf'
    #define ws_strdup_printf(...) wmem_strdup_printf(NULL, __VA_ARGS__)
                                                       ^~~~~~~~~~~

on macOS.
2023-01-04 09:54:52 -08:00
João Valverde 90084d8269 Add Wunused-parameter to DIAG_OFF_FLEX() 2023-01-04 15:50:07 +00:00
Nardi Ivan e6e3a91696 WSLUA: allow 64 bits bitmask for ProtoField objects
Mask might be specified using a (Lua) number, a string or a UInt64
object.

It is useful to handle 64 bit bitfields.
2023-01-04 14:32:23 +00:00
AndersBroman d4cd1d9d1d packet.c: Wrong pointer conversion in get_data_source_tvb_by_name()
Closes #18517
Solution by Zhao Ziqing
2023-01-04 12:30:16 +00:00
Pascal Quantin 253e19b8b2 NAS EPS: upgrade dissector to v17.9.0 2023-01-04 11:20:15 +00:00
Matthias Isele ddb187fe0c fixes #18777 wrong decoding order in parseDiagnosticInfo 2023-01-04 10:31:24 +00:00
Jonas Falkevik 49b639e5ba editcap: add sll and sll2 headers + offsetof
add sll and sll2 header structs to enable the usage of
offsetof into the structs.
mainly to make it clear on where to read and set data.
2023-01-04 09:40:03 +00:00
Jonas Falkevik 3e2c04fe78 editcap: flag to set unused bytes in SLL headers
Unused bytes in SLL Link Layer address can be random bytes.
Which makes the duplicate check think the packets are different.
Even if the unused bytes was the only difference.

This flag enables editcap to set the unused bytes to zeros to enable
the duplicate check to detect duplicates.
2023-01-04 09:40:03 +00:00
Rubin Gerritsen 8f747e41c9 Bluetooth: Dissect features defined in 5.1 - 5.3
See Core_v5.3, Vol 6, Part B, Section 4.6.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2023-01-04 09:32:28 +00:00
Rubin Gerritsen 78c7b184c9 Bluetooth: Dissect 5.3 ACL control procedure packets
The dissection also includes adding control procedure sequence validation.
See Core_v5.3, Vol 6, Part B, Section 2.4.2.36-39 and Section 5.1.19-22.

Core_v5.3 was released in 2021.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2023-01-04 09:32:28 +00:00
Rubin Gerritsen f41ce48d39 Bluetooth: Perform control proc validation on LL_CIS_TERMINATE_IND
This will add expert info if the packet is being sent when
it is not allowed to be sent

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2023-01-04 09:32:28 +00:00
Rubin Gerritsen e273428b7c Bluetooth: Perform control proc validation on LL_PERIODIC_SYNC_IND
This will add expert info if the packet is being sent when
it is not allowed to be sent

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2023-01-04 09:32:28 +00:00
Rubin Gerritsen c0b6b858dc Bluetooth: Add more validation to power control procedures
The LL_REJECT_EXT_IND is an allowed response to the LL_POWER_CONTROL_REQ,
see Core_v5.3, Vol 6, Part B, Section 5.1.17.

Performs control procedure validation one a LL_POWER_CHANGE_IND is sent

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2023-01-04 09:32:28 +00:00
Rubin Gerritsen 1ebd11dd49 Bluetooth: Allow LL_REJECT_EXT_IND as a response to LL_CIS_REQ/RSP
In Core_v5.3, Vol 6, Part B, Section 5.1.15 describes that this
is allowed.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2023-01-04 09:32:28 +00:00
Rubin Gerritsen 62fafa5fc9 Bluetooth: Allow LL_REJECT_EXT_IND as a response to LL_CTE_REQ
In Core_v5.3, Vol 6, Part B, Section 5.1.12 describes that this
is allowed.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2023-01-04 09:32:28 +00:00
Rubin Gerritsen 1eeb342476 Bluetooth: Detect invalid incompatible control procedure conflict resolution
Core spec 5.2, Vol 6, Part B, Section 5.3 describes how the link layer should
resolve the scenario where a collision occurs where both link layers initiate
incompabile control procedures.

This commit adds expect information for the case where these conflicts are not
handled according to spec.

Example of an invalid scenario:

M->S: LL_PHY_REQ
S->M: LL_PHY_REQ
S->M: LL_PHY_RSP
M->S: LL_PHY_UPDATE_IND

The correct sequence for this scenario is:
M->S: LL_PHY_REQ
S->M: LL_PHY_REQ
S->M: LL_PHY_RSP
M->S: LL_REJECT_EXT_IND
M->S: LL_PHY_UPDATE_IND

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2023-01-04 09:32:28 +00:00
Rubin Gerritsen aefd842613 Bluetooth: Refactor adding control procedure packets to contexts
By defining control_proc_add_frame(), control_proc_add_last_frame(), and
control_proc_add_frame_with_instant() a lot of duplicate code can be removed.

This commit makes the checks for the CIS establishment procedure follow the spec.
Previously the dissector had two bugs:
 - It allowed both master and slave to initiate this procedure
 - The procedure was marked as complete once the LL_CIS_RSP was received.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2023-01-04 09:32:28 +00:00
Rubin Gerritsen 616ca5f512 Bluetooth: Refactor starting control proc context
Moves the check of starting a control procedure before the previous was complete inside
the function control_proc_start(). This check should be beformed before starting any
control procedure. Therefore it is better to simply move it inside the funciton to remove
code duplication.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2023-01-04 09:32:28 +00:00
Gustavo Garcia 4537f4fd50 packet-http3: add support for webtransport settings and frame types 2023-01-04 09:28:10 +00:00
Developer Alexander 39191ca8d0 IO Graph: Allow changing order of graphs
Allow changing the order of graphs in IO Graph.
This improves usability when working with many graphs.
2023-01-04 09:25:49 +00:00
Hans Hinrichsen 55b165617b Implement sACN Universe Discovery dissection 2023-01-04 09:24:09 +00:00
Developer Alexander 3107af85a7 lua: ByteArray integer parsing APIs
Adds APIs for parsing different kinds of integer from a lua ByteArray:

-16, 32 and 64 bit

-singed or unsigned

-encoded little endian or big endian
2023-01-04 07:47:13 +00:00
David Perry 86730990f6 Lua: make evaluate_lua and run_console public 2023-01-04 07:42:07 +00:00
David Perry c96a629c24 Support `FT_CHAR` in Lua `TreeItem_add_item_any()`
Treat a `FT_CHAR` field like a `FT_UINT*` field, the same as Wireshark's
`proto_tree_add_item()` does.

Closes #18353
2023-01-04 07:39:28 +00:00
Ferry Huberts 8043acd767 locamation-im: fix an snprintf compiler warning
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-01-04 07:36:58 +00:00
Ferry Huberts ff1b5f8e57 locamation-im: fix the windows build in an easier fashion
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-01-04 07:36:58 +00:00
Ferry Huberts 9386404984 Revert "locamation-im: fix windows build"
This reverts commit ee509cc3f25eacecd60a73da135a2065c34a77d8.
2023-01-04 07:36:58 +00:00
Ferry Huberts 67483b58bd locamation-im: fix windows build
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-01-04 07:36:58 +00:00
Ferry Huberts 0a7dde98d4 locamation-im: process review comments
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-01-04 07:36:58 +00:00
Ferry Huberts 92e1bd734f locamation-im: process review comments
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-01-04 07:36:58 +00:00
Ferry Huberts 51395014e5 locamation-im: process review comments
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-01-04 07:36:58 +00:00
Ferry Huberts 8f8ba172ec locamation-im: support the (optional) timestamps block
Applies to IM2R0 only.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-01-04 07:36:58 +00:00
Pavel Strnad 22599aa2ac DTLS: add DTLS over SCTP for PPIs assigned to 3GPP NGAP, XnAP, F1AP and E1AP
Change-Id: Ie52ffaffd72fb1aa273ea0d3ce9ff6754e3dbd56
2023-01-04 07:36:06 +00:00
John Thacker fdc335e686 tests: Get tests working with Python 3.11 (except with pytest)
We use a common idiom ( https://stackoverflow.com/a/39606065
https://gist.github.com/hynekcer/1b0a260ef72dae05fe9611904d7b9675 )
for getting the results of our unittest.TestCases in the tearDown
method. This method accesses a private property, and that private
property was removed in Python 3.11

The StackOverflow answer has been updated with a new approach for
Python 3.11, which also uses a private property. This fixes things
for CTest (and the test target when building), but it still doesn't
work when using pytest's unittest support.

Ping #18740
2023-01-03 21:08:00 -05:00
Martin Mathieson 6581901810 ORAN FH CUS: add new session extension types to value_string 2023-01-03 17:02:32 +00:00
João Valverde e990b25ea2 dfilter: Remove semcheck arithmetic commute argument
No one is using this so I'd like to explore other
options first to handle constants in arithmetic
expressions that lack type information.

Reverts 3ddb017a88.
2023-01-03 12:46:13 +00:00
João Valverde b893616048 proto: Fix validity test for proto names
We want at least one letter.  Because protocol names can contain
dots and hyphens testing for !isdigit is not enough to make it
dissimilar to decimal numeric expressions.
2023-01-03 11:56:21 +00:00
Martin Mathieson 396f20606e MBIM: restore use of VALS 2023-01-03 10:33:14 +00:00
Huang Qiangxiong 4693428c83 JSON: add "Display JSON in raw form" 2023-01-03 07:59:15 +00:00
Uwe Heuert 44189659ea code cleaning 2023-01-03 07:44:19 +00:00
Uwe Heuert 8429ed971f prevent unused function 2023-01-03 07:44:19 +00:00