Commit Graph

86268 Commits

Author SHA1 Message Date
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
Uwe Heuert eb05f77b71 BSI TR-03109 required extensions 2023-01-03 07:44:19 +00:00
Huang Qiangxiong e60dc74d90 JSON: fix a displaying two dimensional array bug in compact form 2023-01-03 07:40:06 +00:00
Martin Mathieson 872db1fe87 For 'fields' param in add_bitmask_, check item masks 2023-01-03 07:28:48 +00:00
Martin Mathieson dd8828014c Change some vals entries to equivalent common tfs 2023-01-03 07:26:20 +00:00
Martin Mathieson 704eaa1839 DEC-NWK: Fix a couple of spelling errors 2023-01-02 17:06:05 +00:00
Stig Bjørlykke ddebd0c9dd cql: Fix 64-bit print format issue 2023-01-02 12:37:55 +00:00
Stig Bjørlykke b80043835f avsp: Fix 64-bit print format issue 2023-01-02 12:35:59 +00:00
Dr. Lars Völker ca941e3881 SOME/IP-SD: improve Entry/Option handling and port registering
- Show which options are referenced by entries in entry overview.
- Show IPv6 address in option overview too (before IPv4 only).
- Only register ports of endpoint referenced by SOME/IP services.

Endpoint Options referenced by Service 0xfffe (non SOME/IP) are not
automatically registered to be SOME/IP anymore [improvement].
2023-01-02 12:33:16 +00:00
Alexis La Goutte 49e273941f BGP: Fix IP length when Root Node (IPv6) 2023-01-02 12:24:25 +00:00
Alexis La Goutte f6e92abc20 BGP: Wrong Tunnel ID format in PMSI tunnel attribute
Close #18759
2023-01-02 12:24:25 +00:00
Tomasz Moń 8c6854fb65 Qt: Cache only recently accessed columns text
Remove MINIMIZE_STRING_COPYING define because the code does not even
compile anymore. Do not cache strings when ensuring rows are colorized
to avoid thrashing cache. Store column data only for last 500 accessed
records to ensure there is upper bound for the cache size.

Fixes #18741
2023-01-02 12:22:34 +00:00
Bernhard Dick bf7be8a1ae DECT-NWK: Fix possible overflow
Calculating ipei_digits happened using signed int arithmetic due to type
promotion rules. Explicitely casting the static number to guint64
ensures usage of unsigned 64bit arithmetics.
2023-01-02 12:21:44 +00:00
Bernhard Dick 12591d0a42 DECT-NWK: Fix ELI type decoding
The extended location information type field is a four bit value. This
was handled correctly while displaying, but not by interpreting the
value. Hence the according MASK and SHIFT values have been updated.
2023-01-02 12:21:44 +00:00
Gerald Combs 659b830aef TIPC: Add a recursion check
Add a recursion check.
Fixes #18770.
2023-01-02 12:17:49 +00:00
Gerald Combs d9adb6f712 Qt: Escape HTML when setting ElidedLabel text
ElidedLabels use Qt's rich text internally, but we need to make sure the
text we're passed via setText() is plain.

Fixes #18774
2023-01-02 12:16:35 +00:00
Gerald Combs 1c24e49c67 Qt: ElidedLabel cleanup
Add Doxygen documentaiton and fix a clazy-qstring-arg warning.
2023-01-02 12:16:35 +00:00