Commit Graph

85370 Commits

Author SHA1 Message Date
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
João Valverde 58cf815173 CMake: Disable errors with -Wstringop-overflow=
Ping #18383.
2022-10-04 18:17:13 +00:00
João Valverde 09b27e5636 Qt: Disable -Werror for a deprecated declaration
Allow building with -Werror enable globally.
2022-10-04 17:35:55 +00:00
João Valverde f6de88707c Add DIAG_WARN() diagnostic macros
This enable the warning at "warning" level (neither ignored nor
an error). This is used to selectively disable -Werror for a section
of code but keep the warning enabled as useful and relevant.

For example it can be used to defer replacing deprecated declarations
and still build with -Werror enabled globally.
2022-10-04 17:35:55 +00:00
Pascal Quantin 1ef5af31ce LTE RRC: upgrade dissector to v17.2.0 2022-10-04 17:34:17 +00:00
João Valverde 35c06ad742 CMake: Fix Qt -Werror compilation flag
All source files should have COMPILE_FLAGS applied, not just
ui/qt/*.cpp.

This fixes setting -Werror on the Qt build, since that is
the only custom C++ compilation flag we are using at the moment.
2022-10-04 17:08:31 +00:00
João Valverde ec54b1c611 Qt: Fix deprecation of QByteArray::count()
Use size() instead, which is exactly the same as count(), and
is not deprecated. Seems to exist in all out supported Qt
versions, as far as I can tell.

warning: ‘qsizetype QByteArray::count() const’ is deprecated: Use size() or length() instead. [-Wdeprecated-declarations]
  257 |     while ((int) (row_y + line_height_) < widget_height && offset < (int) data_.count()) {
      |                                                                           ~~~~~~~~~~~^~
2022-10-04 17:08:31 +00:00
João Valverde 9acfcd1f9b Qt: Fix setTextAlignment() deprecation
Cast away bogus deprecation created by deprecating
setTextAlignment(int, int) without fixing textAlignment()
to not return int.

```
error: ‘void QTreeWidgetItem::setTextAlignment(int, int)’ is deprecated: Use the overload taking Qt::Alignment [-Werror=deprecated-declarations]
  597 |             wn_ti->setTextAlignment(col, ws_dlg->statsTreeWidget()->headerItem()->textAlignment(col));
      |             ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtWidgets/qtreewidget.h:105:17: note: declared here
  105 |     inline void setTextAlignment(int column, int alignment)
      |                 ^~~~~~~~~~~~~~~~
```
2022-10-04 17:08:31 +00:00
João Valverde f0a633622d Qt: Remove workaround for Qt bug fixed in Qt 5.5.1 2022-10-04 17:06:54 +00:00
Stig Bjørlykke 4512dfd66d wslua: Support FT_STRINGZPAD in FieldInfo
Add support for FT_STRINGZPAD in FieldInfo.
2022-10-04 15:28:18 +00:00
Pascal Quantin 34eebaeb10 LPP: upgrade dissector to v17.2.0 2022-10-04 14:59:37 +00:00
Pascal Quantin 6a0a153226 NR RRC: register a dissector by name for Reconfiguration Complete
Closes #18406
2022-10-04 14:57:55 +00:00
Ming Chen 01a3a19e15 Add copy as a Base64 string 2022-10-04 12:36:25 +00:00
Pascal Quantin 2c40dc97cd NAS 5GS: upgrade dissector to v17.8.0 2022-10-04 14:08:17 +02:00
Joakim Karlsson 00f4f4ee7d JSON: add seperate 3GPP file
Moving specific 3GPP keys handle to its own file
This will also enable custom JSON string dissector
2022-10-04 10:48:08 +00:00
João Valverde 0239242fb1 wslog: Improve help output 2022-10-04 11:16:42 +01:00
João Valverde 481d3cb804 wslog: Do not leak memory 2022-10-04 10:56:40 +01:00
Alexis La Goutte ede10ccc26 ISAKMP: Add IKEv2 notification (Private) type for Auto Discovery and Network Overlay ID (Fortinet) 2022-10-04 06:43:20 +00:00
garrymar 603cbd82ad Mixed-up interpretation of bgp.ext_com.type.auth 2022-10-04 06:09:27 +00:00
John Thacker 333fe08bb3 gtp: Use ENC_APN_STR for decode_apn
Using ENC_APN_STR is simpler and guarantees that we produce
valid UTF-8. Fix #18402
2022-10-03 21:18:42 -04:00
Gerald Combs ca0843f168 falcodump: Fixup our help output. 2022-10-03 15:09:55 -07:00