Commit Graph

85390 Commits

Author SHA1 Message Date
Gerald Combs 2a97e729dc [Automatic update for 2022-10-09]
Update manuf, services enterprise numbers, translations, and other items.
2022-10-10 08:13:49 +00:00
Dr. Lars Völker f504d02e8e MACsec: improve FCS and Padding detection for Ethernet
This patch fixes some bugs that occur with padded Ethernet frames and
frames, when a Ethernet FCS is present. In the past that lead to wrong
detection of the ICV by the Ethernet dissector (trailer).

Such errors did occur for example with frames that were padded and
MACsec was added later; thus, being bigger than expected for the
heuristics in the packet-eth.c: "pinfo->fd->pkt_len >= 60 ..."
2022-10-09 19:05:29 +00:00
Mokhtar Ben Messaoud 517d2be149 WPS: Multi-AP Profile and Multi-AP Default 802.1Q Settings subelements
Format is defined by Wi-Fi EasyMesh™ Specification Version 4.0
* 5.2.2 Backhaul STA Configuration (Table 4. Multi-AP Default 802.1Q Setting
	subelement format)
* 7.1 AP configuration (Table 15. Multi-AP Profile subelement)
2022-10-09 11:25:38 +00:00
Gerald Combs a820b439b4 Qt+extcap: editselect value fixups.
Fix our value handling.
2022-10-09 00:44:27 +00:00
Gerald Combs 80656552c7 Update our capture control icons.
Add a standard "record" button icon for Logray. Add a corresponding
"restart" icon. Touch up the "stop" and "restart fin" icons.
2022-10-08 16:37:29 -07:00
Gerald Combs 3b074f7344 Update our Logray icons.
Enlarge the left fin, which makes the 16x16 blob look a little better.
Shorten the tail.
2022-10-08 15:08:22 -07:00
John Thacker e040ca9015 GIOP: Translate string to UTF-8
We need to convert strings to valid UTF-8 for internal Wireshark
use. Since we aren't storing the code set service context as
conversation data (it's sent only when initially connecting, not
on a per-request basis), use the default of ISO-8859-1.

Also some automatic fixes of allocation patterns

Fix #18410
2022-10-08 19:14:03 +00:00
João Valverde bc67d45d72 Fix Debian symbols
[skip ci]
2022-10-08 18:31:50 +01:00
João Valverde 7b4abf8341 dfilter: Fix integer comparison on big-endian
Fix copy-paste mistake to use the correct struct field.

Fixes #12236.
2022-10-08 16:50:10 +01:00
João Valverde 3949d289d1 Add log init message to main() 2022-10-08 15:33:47 +00:00
David Perry 68a581afdc esl_eth: support nanosecond timestamps
Applies the patch from #18308, in lieu of original commenter doing so.

Closes #18308
2022-10-08 14:01:19 +00:00
Eugène Adell 9a6d496e64 Conversations dialog : rename the B to A packets column 2022-10-08 13:36:14 +00:00
Uli Heilmeier a471aa7628 sshdump: Add '-f ' for capture filter
Fixes #18420
2022-10-08 12:27:30 +00:00
João Valverde 9ab1f35641 Move print_hex_data_buffer() to wsutil
Move this generic function to wsutil so it can be used
by other libraries.
2022-10-08 12:39:04 +01:00
João Valverde 05a32852a0 wmem: Avoid header dependency on wsutil
Including wireshark.h also pulls some wsutil headers. Avoid that.
2022-10-08 11:18:08 +00:00
João Valverde 46d018627b wslog: Improve display for UTF-8 strings
Print the valid substring as UTF-8, not ASCII+hex.
2022-10-08 10:18:08 +00:00
João Valverde 0662a3f6ac dfilter: Amend a numeric pattern in the scanner
We amend the :<numeric> pattern to not eat the leading
colon. Because the colon can be part of the value (with IPv6 addresses
for example) we want to avoid doing that.

IPv6 addresses are covered by their own rules but this removes the
requirement in the future to handle any special cases and avoids
surprises.

For this reason the colon-prefix syntax is already explicitly defined to
work only for byte arrays and there is currently no universal
syntax for all literal values or even all numbers.

Other numbers can keep using the lexical type "unparsed".

```
run/dftest "_ws.ftypes.uint8 == :fd"
Filter: _ws.ftypes.uint8 == :fd
dftest: ":fd" is not a valid number.
	_ws.ftypes.uint8 == :fd
	                    ^~~

run/dftest "_ws.ftypes.uint8 == fd"
Filter: _ws.ftypes.uint8 == fd
dftest: "fd" is not a valid number.
	_ws.ftypes.uint8 == fd
	                    ^~

run/dftest "_ws.ftypes.uint8 == 0xfd"
Filter: _ws.ftypes.uint8 == 0xfd

Syntax tree:
 0 TEST_ANY_EQ:
   1 FIELD(_ws.ftypes.uint8 <FT_UINT8>)
   1 FVALUE(253 <FT_UINT8>)

Instructions:
00000 READ_TREE		_ws.ftypes.uint8 <FT_UINT8> -> reg#0
00001 IF_FALSE_GOTO	3
00002 ANY_EQ		reg#0 == 253 <FT_UINT8>
00003 RETURN

run/dftest "_ws.ftypes.bytes == fd"
Filter: _ws.ftypes.bytes == fd

Syntax tree:
 0 TEST_ANY_EQ:
   1 FIELD(_ws.ftypes.bytes <FT_BYTES>)
   1 FVALUE(fd <FT_BYTES>)

Instructions:
00000 READ_TREE		_ws.ftypes.bytes <FT_BYTES> -> reg#0
00001 IF_FALSE_GOTO	3
00002 ANY_EQ		reg#0 == fd <FT_BYTES>
00003 RETURN

run/dftest "_ws.ftypes.bytes == :fd"
Filter: _ws.ftypes.bytes == :fd

Syntax tree:
 0 TEST_ANY_EQ:
   1 FIELD(_ws.ftypes.bytes <FT_BYTES>)
   1 FVALUE(fd <FT_BYTES>)

Instructions:
00000 READ_TREE		_ws.ftypes.bytes <FT_BYTES> -> reg#0
00001 IF_FALSE_GOTO	3
00002 ANY_EQ		reg#0 == fd <FT_BYTES>
00003 RETURN
```
2022-10-08 09:51:49 +00:00
João Valverde 14f5121c4a dfilter: Remove problematic <...> literal syntax
The <...> syntax for literals, intended to be as generic as
possible, unintentionally introduced an ambiguity with the
relational expression "a < b or a > c".

Literals are values like numbers, bytes, IPv6 addresses or, one
could imagine, UNC paths for example, if an FT_UNC type were to
be added in the future.

We could use a new unique symbol like @...@ but the <...>
syntax is very recent and may not be necessary with ":xxx" so
just remove it.

A byte array can be explicitly declared by prefixing with a colon. It
is not as generic but the main ambiguity that this new syntax attempted
to solve is bytes vs protocol names. We don't want to introduce a new
reserved symbol for now, until other requirements if any are more clear.

Fixes #18418.
2022-10-08 09:51:49 +00:00
j.novak@netsystem.cz 2c56c0bad6 RTP Player: Fix: Only silence played on Windows with Qt 6.x 2022-10-08 09:30:52 +00:00
Gerald Combs a1ec850894 falcodump: Prefill the Cloudtrail profile and region fields.
Make the cloudtrail-aws-profile and cloudtrail-aws-region settings
prefilled selection lists. Make them editable as well.
2022-10-07 17:01:17 +00:00
Gerald Combs 2b4fcae31f Qt+extcap: Add editable extcap selectors.
Add an "editselector" argument type, which lets the user override a
predefined selection list with a custom value.
2022-10-07 17:01:17 +00:00
João Valverde 52c130ced7 Fix Debian symbols
[skip ci]
2022-10-07 16:14:52 +01:00
Stig Bjørlykke da4277971f f5ethtrailer: Only remove registered taps
Add checks to only remove registered taps.
2022-10-07 12:26:53 +00:00
João Valverde 0c1461817f wslua: Add catch-all enum tables 2022-10-07 10:33:50 +01:00
João Valverde 91f7762fad wslua: Use wiretap introspection 2022-10-07 10:28:47 +01:00
João Valverde 3c99478cef wiretap: Add enum generation 2022-10-07 10:28:47 +01:00
João Valverde 9faaf0ecff wslua: Use introspection API to generate constants 2022-10-07 10:28:47 +01:00
João Valverde ab96dffa3f epan: Add stat_groups.h to introspection enums 2022-10-07 10:28:47 +01:00
Chuck Craft 3f83a3b364 Qt: Display filter edit - update status line only when on mainWindow.
There are many screens with a display filter edit box but they should
not wallop the status line on the main window. Display syntax errors
on the local window in "hints" area.
Only update Status Line message when editing a display filter in the
Filter toolbar or Find Packet toolbar.
2022-10-07 06:41:29 +00:00
Dr. Lars Völker 2fd83ac8f8 TECMP: Config option for Ethernet below TECMP optimization
This patch allows to turn off the optimization to move Ethernet and
following protocols below the TECMP Tree instead of below root.
2022-10-07 06:37:29 +00:00
Brian Sipos 80c95b26d0 COSE: Cleanup custom dissector keys with new API 2022-10-07 06:36:21 +00:00
Stig Bjørlykke 245df5da62 f5ethtrailer: Default disable preference to perform analysis
The f5ethtrailer.perform_analysis preference is documented to
"slow down Wireshark", so make it default disabled.
2022-10-07 06:35:25 +00:00
Joakim Karlsson 0f46eef597 gtpv2: Update to 3GPP TS 29.274 V18.0.0 2022-10-06 21:19:49 +00:00
Joakim Karlsson de0a1f2626 gprscdr: Update to 3GPP TS 32.298 V17.4.0
Only documentation changes
2022-10-06 16:00:22 +00:00
Alexis La Goutte bffa66ed13 nas_5gs: Fix Dead Store found by Clang 2022-10-06 15:32:48 +00:00
Balint Reczey 3c933a6dba debian/control: Make libwsutil-dev break/replace libwireshark-dev (<< 4.0.0)
Libwsutil now ships header files previously present in libwireshark-dev.

Follow-up to d391d86c33.
2022-10-06 11:18:13 +00:00
João Valverde 48c4c646f3 Fix Debian symbols
[skip ci]
2022-10-06 10:44:56 +01:00
Guy Harris b2cbc6f034 TRANSUM: fix fetching of Boolean values.
As of a change many years ago, Boolean values are stored as 64-bit (the
change was made to handle Boolean bitfields in 64-bit fields).  Fix the
extractor for Boolean values to fetch from the 64-bit unsigned integer
field, and, while we're at it, add a change that the field in question
really *is* a Boolean field (the functions used to fetch the value in
the other extractors do such a check).
2022-10-05 14:57:08 -07:00
Martin Mathieson 9b62db9308 NAS-5GS: make a value_string_ext variable static 2022-10-05 21:12:08 +00:00
João Valverde 51320ae59b wsutil: Improve UTF-8 APIs for debugging
In particular add an UTF-8 specific wslog API that should
make it easier to interpret invalid encodings.
2022-10-05 19:34:47 +01:00
Brian Sipos f9aba04431 BPv7: Add guard to avoid crash when no identity could be read 2022-10-05 17:06:49 +00:00
Brian Sipos 98e866cfa0 DLEP: Handle data item length different than expected
This change treats each data item value as a subset TVB which isolates its handling and allows using a dissection table to handle the type switching.
This also allows extending DLEP dissector outside of this dissector by, for example, a plugin.
2022-10-05 15:05:46 +00:00
Ales Povalac 763202f839 LoRaTap: support for v1 encapsulation 2022-10-05 15:01:57 +00:00
Dylan Ulis e74f7f172d CIP Security: Support UDP-only EtherNet/IP transport profile 2022-10-05 14:58:43 +00:00
João Valverde 287170eabd Gitlab CI: Add test for Release build
Release build increases optimization level (throws new warnings) and
disables assertions and debug code (catch unused variables, etc.).
2022-10-05 10:48:39 +00:00
Pascal Quantin f1f9f2d2f3 NAS 5GS: fix dissection of Extended CAG information list IE 2022-10-05 11:18:23 +02:00
Gerald Combs 09ee321847 JSON 3GPP: Remove some duplicate code. 2022-10-05 09:01:21 +00:00
Pascal Quantin 4dcafcf976 NR RRC: upgrade dissector to v17.2.0 2022-10-05 08:50:43 +02:00
John Thacker 9de534b8c6 smb: Get the dialect name as ENC_ASCII
The dialect name is technically an OEM string, in the local
OEM Extended ASCII DOS code page, but in practice there are
no known dialect names that use anything outside of ASCII.
We don't know what the local OEM code page is, anyway.

tvb_get_const_stringz does no translation into UTF-8, and should
only be used in rare instances.

Fix #18401.
2022-10-04 17:23:17 -04:00
Gerald Combs 0046163269 Docs: Update the release notes. 2022-10-04 19:44:46 +00:00