Commit Graph

85508 Commits

Author SHA1 Message Date
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
Gerald Combs b5b1949c5e falcodump: Updates for libsinsp and the cloudtrail plugin.
The libsinsp plugin API recently changed the way plugins are opened.
Update falcodump to match.

Plugins might return a nested and "$ref"ed config schema. Update our
parsing code to match.
2022-10-03 14:24:24 -07:00
Patricia Lindner ddf0d35516 BPv7: Enhance block data and payload data handling
This change improves sequence analysis and subdissector interfaces, adds
payload Decode As support for DTN and IPN services, and add heuristic
dissection for BTSD.
2022-10-03 20:02:43 +00:00
Chuck Craft 58cb2d6857 wsdg: PortableApps - update project path; drop 32-bits 2022-10-03 11:26:06 -05:00
João Valverde 241610b13f RPC: Do not truncate string blindly
The code is mixing character offsets with byte offsets. Do not
blindly truncate an UTF-8 string on a random length, it is likely
to be wrong and generate encoding errors.

Rename some variables for clarity.

Fixes #18399.
2022-10-03 12:50:33 +01:00
j.novak@netsystem.cz e091e8755a extcap: Fixed end application loop logic 2022-10-03 10:16:57 +00:00
Joakim Karlsson 4026590bd0 pfcp: Update to 3GPP TS 29.244 V17.6.0
Mostly documentation changes in this release
2022-10-03 09:38:50 +02:00
Guy Harris eba9adfa23 macos-setup: fix a test.
The syntax

    if [ <test> ]; then
        ...
    fi

isn't what one might think.  The way that works is that "[" is a
command; it's an alias for "test", except that if it's involked as "["
rather than as "test", it expects there to be a token "]" at the end, so
that the test expression is enclosed in square brackets.  (This dates
back all the way to, I think, V7, although the link from "/bin/test" to
"/bin/[" wasn't documented at that point.)

This means that the "]" must have white space before it, so it's a
separate token.

[skip ci]
2022-10-02 18:30:32 +00:00
João Valverde 539fbafce4 Remove encoding warnings from format_text()
The use of format_text() to sanitize strings by dissectors is
too widespread to make this check useful. Allow it for now.
2022-10-02 18:01:35 +00:00
João Valverde 0bc040b44a Tools: Test for UTF-8 errors in fuzz tests
Can be turned off with -U option.
2022-10-02 18:01:35 +00:00
Gerald Combs 45c6c79624 [Automatic update for 2022-10-02]
Update manuf, services enterprise numbers, translations, and other items.

services failed.
2022-10-02 16:43:23 +00:00
João Valverde afa2579124 Qt: Fix compilation with Qt 6.4
error: conversion function from 'gchar *' (aka 'char *') to 'QVariant' invokes a deleted function
            return entry->hostname;
                   ^~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:199:5: note: 'QVariant<char *, false>' has been explicitly marked deleted here
    QVariant(T) = delete;
    ^
2022-10-01 21:53:11 +01:00
Chuck Craft c4c38defa5 Qt: enabled/disabled protocols filtered list enable/disabled
Follow up to !8151
Calls to setData are wrapped with beginResetModel/endResetModel
so don't call emit dataChanged() (per Qt suggestion)

Fixes "As the loop is worked, the size of the parents shrinks
 with each item processed."
2022-09-30 22:46:16 -05:00