Commit Graph

86035 Commits

Author SHA1 Message Date
John Thacker 03b4c62be5 cli: Fix copying global profile to personal at startup
Fix up commit 1eeb0c9934
At initial startup, the hash of configuration files used
by profiles doesn't exist yet or is not completely filled.
(Files are only added to the list after initially parsing
the current configuration.)

So, if copying a global profile to the personal directory
at initial startup, just copy all the files from the global
profile.

Also, don't free to_dir and from_dir if we're returning them
in the case of errors.
2022-12-15 14:05:19 +00:00
Martin Mathieson d17c018013 tools/check_typed_item_calls: check FT_BOOLEAN mask length 2022-12-15 13:28:05 +00:00
Dario Lombardo 1e8d3d8695 tshark: fix duplicate fields issue in ek output.
Fix: #18036.
2022-12-15 12:22:30 +00:00
Jeremy Kerr ff728ab37d MCTP: Add decoder for message type
Once we have a full MCTP message, we can decode its type (including IC
field). This change adds type decode support, for the types present in
packet-mctp.h.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
2022-12-15 12:21:06 +00:00
Jeremy Kerr cfcb33e8b7 MCTP: Add NCSI (and ethernet) over MCTP dissection
This change adds support for trivially-encapsulated MCTP protocols,
starting with NCSI-over-MCTP.

We need to handle this slightly different from the existing MCTP-based
protocols (MCTP control protocol and NVMe-MI), as the inner protocol is
unaware of the type byte and (optional) checksum tailer. So, add a new
dissector table, "mctp.encap-type" for these, meaning we can just hook
into the raw NC-SI dissector.

We also add the type definition for MCTP-over-ethernet, as defined in
the NCSI-over-MCTP specification.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
2022-12-15 12:21:06 +00:00
Jeremy Kerr 728e89b955 MCTP: Add header for MCTP packet types
We have a few hard-coded MCTP type definitions in use (for MCTP control
protocol, and NVMe-MI) already, and we're about to add a couple more.

This change adds a header for packet-mctp, just with the type
definitions, and uses it for the current types.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
2022-12-15 12:21:06 +00:00
Bernhard Dick 7b53d22b27 DECT-DLC: Remove abandonend part 2022-12-15 12:17:29 +00:00
Bernhard Dick 969f12c365 DECT-DLC: Unify variable naming
Naming of variables, i.e. for header fields was inconsistent (dlc_ vs
dect_dlc_). This is now changed to use the abbreviation (dect_dlc_) on
all global places.
2022-12-15 12:17:29 +00:00
Bernhard Dick a3e624cb01 DECT-DLC: Add dissector to relnotes 2022-12-15 12:17:29 +00:00
Bernhard Dick f56a3fed08 DECT-DLC: Fix missing prototype 2022-12-15 12:17:29 +00:00
Bernhard Dick 584e65c950 DECT-DLC: Fix typos in hf definitions 2022-12-15 12:17:29 +00:00
Bernhard Dick 9a96284e5a DECT-DLC: Reassemble fragments
The DECT-DLC dissector now reassembles fragments before handing them
over to the NWK layer. Most of this is done by reusing of the reassembly code
from packet-lapdm.c.
2022-12-15 12:17:29 +00:00
Bernhard Dick 594207d04e DECT-DLC:DECT-DLC: Really disable abandoned func
The preprocessor definition to disable the stub
proto_reg_handoff_dect_aastra in packet-dect-dlc did not work, so it's
disabled via comment now.
2022-12-15 12:17:29 +00:00
Harald Welte c6fb1b2308 DECT-DLC: Don't call NWK dissector if there's no payload
Change-Id: Ia86185f52b724be61db2d94ffaf51fd00ebab84c
2022-12-15 12:17:29 +00:00
Harald Welte a13d71dab9 DECT-DLC: Initial dissector for DECT DLC protocol layer
Change-Id: Iabd75b0f9b12ea9162dc164741123feb1ba7992d
2022-12-15 12:17:29 +00:00
John Thacker 4672e73900 NBAP: Add UEID to HS-DSCH flows added from RadioLinkReconfiguration
A few HS-DSCH conversations are created when calling add_hsdsch_bind,
such as when a RadioLinkReconfigurationPrepare procedure has
a id-HSDSCH-MACdFlows-to-Add element. This method should add
the CommunicationContextID to the conversation just like the
other ways of creating the conversation. This provides a UEID
for a unique key for RLC reassembly.
2022-12-15 12:13:36 +00:00
João Valverde 7fef921875 wslog: Resynchronize UTF-8 display
When displaying the string with encoding errors resynchronize
the display to print the string after the invalid substring.
2022-12-15 11:08:41 +00:00
João Valverde ea8b5fb024 wmem: Add wmem_strbuf_append_c_count() 2022-12-15 11:08:41 +00:00
João Valverde 1f34529839 wmem: Optimize some strbuf functions
The changes in commit 32f88ad22c allow removing some checks that
could speed up the code.
2022-12-15 11:08:41 +00:00
Gerald Combs 963dba2d60 NSIS: Add an initial donation page.
Add a donation page to the Wireshark installer.
2022-12-15 08:36:50 +00:00
Tomasz Moń c6ee65db6b
Qt: Display extcap uncheckable multicheck items as labels
Commit e1a8f0119e ("Extcap prefs: Editor remembers empty values")
inadvertently made the immutable checkbox visible next to uncheckable
multicheck items. Restore former behavior, that is display only labels
for uncheckable multicheck items, by setting unchecked state only for
checkable items.

Uncheckable items, since its introduction in commit 9c1225f735
("Modify multicheck to accept parent parameter."), were used to display
additional labels in USBPcap configuration options to aid user in
determining which individual device to filter on. Without the additional
information determining for example which "USB composite device" is of
interest to the user is really problematic.
2022-12-15 06:50:49 +01:00
João Valverde 415389eb84 CMake: Update a comment
The stringop-overflow warning is active with both GCC and Clang
in the master branch and was not triggered by our build bots so
update the comment to reflect that.

```
epan/dissectors/packet-lwm.c:464:31: error: writing 16 bytes into a region of size 0 [-Werror=stringop-overflow=]
  464 |                     vector[i] ^= text_dec[i];
      |                     ~~~~~~~~~~^~~~~~~~~~~~~~
epan/dissectors/packet-lwm.c:419:21: note: at offset 192 into destination object ‘nwkSecurityVector’ of size 16
  419 |             guint32 nwkSecurityVector[4];
      |                     ^~~~~~~~~~~~~~~~~
```
2022-12-15 03:34:06 +00:00
João Valverde 38e73b895a SGsAP: Use ENC_APN_STR
Fixes #18701.
2022-12-15 03:08:39 +00:00
João Valverde 31ab1a0a17 SIP: Fix heap-use-after-free crash with ASAN
Fixes 358641a5ca.

Fixes #18735.
2022-12-15 02:13:30 +00:00
João Valverde 2d3de008f5 CMake: Disable UTF-8 debug checks for release builds
Disable UTF-8 debug checks for release builds for optimization
purposes.

Also remove unused macro that currently lacks a proper use case.

Change version info to be more complete about the build type without
being too verbose.
2022-12-15 01:57:39 +00:00
João Valverde 400235ad7e CMake: Re-enable -Wno-error=stringop-overflow= 2022-12-15 01:57:39 +00:00
Gerald Combs f2caa6a0cc Extcap: Fix falcodump gcc warnings and errors.
Fix warnings and errors reported by gcc 11.3.
2022-12-15 01:46:03 +00:00
Brendan Meath 3a43d97898 NAS-5GS: change TLV to TLV_E for CAG Information list IE 2022-12-14 18:55:55 +00:00
Chuck Craft 2aa40d4488 Qt: crash on negative row in Conversations 2022-12-14 18:10:58 +00:00
Alexis La Goutte 8504578ec2 ieee80211: fix typo for encoding 2022-12-14 15:58:38 +00:00
Alexis La Goutte 30df11941b ieee80211: fix trailing whitespace 2022-12-14 15:58:38 +00:00
Alexis La Goutte 1856d1368a ieee80211: Add Location Civic (Measurement Report) 2022-12-14 15:58:38 +00:00
Alexis La Goutte 4b9aef8371 ieee80211: Add Location Civic (Measurement Request) 2022-12-14 15:58:38 +00:00
Alexis La Goutte 7191006bc4 ieee80211: Add Usage Rules/Policy Subelement
for LCI Report
2022-12-14 15:58:38 +00:00
Alexis La Goutte ce58638fe4 ieee80211: Add Measurement Request LCI Report dissection 2022-12-14 15:58:38 +00:00
Alexis La Goutte 0a5fcb4680 ieee80211: Update Measurement Request/Report value_string
From 802.11-2020.pdf
2022-12-14 15:58:38 +00:00
Alexis La Goutte b54c882df5 ieee80211: Add Measurement Request LCI Request dissection 2022-12-14 15:58:38 +00:00
Moshe Kaplan 14880b13ba WSDG: Consistent capitalization for GitLab
Use consistent and proper
capitalization for GitLab
throughout the WSDG.
2022-12-14 15:56:55 +00:00
Martin Mayer 4bbc640763 OCP.1: Fix Notification Context Parsing
The notification context field was parsed as a 4-byte fixed-length field but is defined as type OcaBlob (variable length).
This fix parses the notification context as an OcaBlob parameter while maintaining the field `ocp1.context`.
2022-12-14 15:54:10 +00:00
Jim Young dfa387d405 file-pcapng: Add Darwin Flow ID and Wake Packet flag 2022-12-14 15:52:26 +00:00
John Thacker 925904d6ce pkixqualified: Clear the oid at the start of each QCStatement
Clear the object_identifier_id global at the beginning of
each QCStatement, in case the statementId BER has errors and
does not put a value in the ptr. (call_ber_oid_callback correctly
handles being passed a NULL.)

Fix #18552.
2022-12-14 15:51:09 +00:00
Brian Sipos 9866cf3bad BPv7: Add conversation and endpoint tracking
This adds BPv7 source and destination as first-class text addresses for the packet.
This fixes proto-data used for decode-as table editing outside of a layer.
2022-12-14 15:44:36 +00:00
Developer Alexander edf48633bb IO Graph: 3 new styles 2022-12-14 15:02:54 +00:00
Moshe Kaplan ac96e5f318 WSDG: Remove reference to Gerrit
Removes reference to Gerrit in
internationalization documentation.
Fixes #17150.
2022-12-14 14:06:49 +00:00
David Perry c6abd4ff7b Support SCTP over DTLS 2022-12-14 14:06:06 +00:00
Peter Dobransky 2d9e8416da OAM: Add support for missing DPoE and 1904.1 attributes
Add support for several DPoE and IEEE 1904.1 OAM attributes and
enhanced the decoding of several others.
2022-12-14 13:07:58 +00:00
David Fort bf158b3e41 tpkt: don't have the heuristic enforce TPKT dissecting
Most RDP connections starts with TPKT and then switch to TLS, so enforcing TPKT
for the whole conversation makes the decoding fail.
2022-12-14 12:00:47 +00:00
David Fort d90d525dd7 tls: do not enforce the TLS dissector for the whole connection
In the case of RDP traffic, the conversation usually starts with 3 TPKT packets
and then switch to TLS. The SSL dissector was setting the conversation dissector
without specifying any start packet which were leading to have the 3 first packets
interpreted as invalid SSL records (which they are as it's TPKT packets). This patch
fixes by specifying the first true SSL packet.
2022-12-14 12:00:47 +00:00
David Fort d560ae612a rdpudp: support desegmentation
The RDPUDP protocol transports TLS or DTLS records, but as the payload of RDPUDP is small,
most of the time records are splitted over multiple RDPUDP packets. This patch adds
support for desegmentation in RDPUDP so that we interpret the results of the SSL
dissector and we can give back untreated content when dissecting the next packet.
2022-12-14 12:00:47 +00:00
David Perry 8513da747d BGP: improve PDU handling 2022-12-14 09:22:34 +00:00