Commit Graph

84776 Commits

Author SHA1 Message Date
John Thacker 5a2bd62cd3 gsm_sms: Add Language IEIs
Update the list of possible UDH IEs. Include some rudimentary decoding
of the Language Shift IEs, though actually implementing the different
encodings is an entirely different beast.
2022-06-09 12:17:48 +00:00
John Thacker a530d45c20 SMPP: Fix DCS decoding
The DCS in SMPP has many reserved values, and only can take a few
possiblities from the GSM DCS (and cannot be interpreted as Cell
Broadcast DCS.) Remove unused DCS fields and add others that are
missing.

Determine the proper text encoding for the values from 3GPP TS 23.038
DCS with the high two bits set.

Add support for EUC-KR. Add a preference for GSM 7-bit alphabet packed
versus unpacked for the DCS values that unambiguously indicate the
7 bit alphabet (unlike DCS 0).
2022-06-09 02:53:49 +00:00
John Thacker 7394527038 roon_discovery: Include stdlib.h
Looks like the Windows build needs to include stdlib.h in order to
get bsearch()
2022-06-08 22:25:11 -04:00
Aaron Turner b89a195b4c Add Roon Discovery dissector
Add support for Roon/roonlabs.com discovery running
on UDP/9003.
2022-06-08 20:02:00 +00:00
Dr. Lars Völker 0b48a284b6 SOME/IP-SD: Make option parsing a bit more robust
If the SOME/IP-SD message is broken, it could have happend that the
parsing stopped on the option and did not go back to the entry parsing.
This patch makes this code more robust.
2022-06-08 19:18:02 +00:00
Gerald Combs bbe6ab6316 CMake: Update WiX and PortableApps target names.
Rename the wix_package target to wireshark_wix and the
portableapps_package target to wireshark_portableapps.
2022-06-08 18:12:46 +00:00
Gerald Combs de1a4c3774 CMake: Update package target names.
Rename the rpm-package target to wireshark_rpm and the appimage target
to wireshark_appimage.
2022-06-08 17:56:21 +00:00
Gerald Combs c253dda269 CMake+Packaging: Add a logwolf_dmg target. 2022-06-08 17:39:54 +00:00
Gerald Combs 8fa64a4773 Docs: Note that display filter layer numbers start at 1. 2022-06-08 17:21:58 +00:00
João Valverde 4015522162 Docs: Another display filter regex update 2022-06-08 16:40:09 +00:00
Roland Knall c03bf18db1 Qt: Remove double registered signals 2022-06-08 17:48:41 +02:00
Roland Knall 3029a4a4d9 Qt: Remove unnecessary cli option
There was an option that was never used, in that you
could set your protocol tap as a first tab in the
Conversations and Endpoint dialogs.
2022-06-08 17:42:58 +02:00
João Valverde de103394fe dfilter: Make regex matches case insensitive by default 2022-06-08 12:17:22 +01:00
João Valverde bd0f0cbbed Docs: Update display filter manual page to PCRE2 2022-06-08 12:12:25 +01:00
Roland Knall 176ba718f0 Qt: Fix displayfilter always on
The "Limit to display filter" was always set to true, even if
no filter had been set.
2022-06-08 10:50:12 +02:00
Gerald Combs 5d61db3ad5 CMake+NSIS: More variable cleanup. 2022-06-07 18:24:59 -07:00
Gerald Combs c9396bba11 epan: Remove an unneeded null check.
Fix

```
*** CID 1505356:  Null pointer dereferences  (REVERSE_INULL)
/builds/wireshark/wireshark/epan/conversation.c: 1427 in find_conversation()
1421              * conversation with the specified address B and port B as the
1422              * first address and port, and with any second address and port
1423              * (this packet may be going in the opposite direction from the
1424              * first packet in the conversation).
1425              * (Neither "addr_a" nor "port_a" take part in this lookup.)
1426              */
>>>     CID 1505356:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "addr_a" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
1427             if ((addr_a != NULL) && (addr_a->type == AT_FC)) {
1428                 DPRINT(("trying wildcarded match: %s:%d -> *:*",
1429                             addr_b_str, port_a));
1430                 conversation = conversation_lookup_no_addr2_or_port2(frame_num, addr_b, port_a, etype);
1431             } else {
1432                 DPRINT(("trying wildcarded match: %s:%d -> *:*",
```
2022-06-07 16:42:49 -07:00
Gerald Combs c5e265f852 CMake: Deduplicate some version variables.
Use PROJECT_VERSION instead of VERSION. Prepend "PROJECT_" or
"LOG_PROJECT_" as needed to other variables. Remove the leftover unused
variables.
2022-06-07 16:04:17 -07:00
Stig Bjørlykke 604cb2a7a3 t38: Use correct conversation_new() options
Fix conversation_new() options after they was changed/improved
in commit 709593ee.
2022-06-07 22:09:28 +00:00
Stig Bjørlykke 86fdbe2ea9 fcels: Use correct find_conversation() options
Fix find_conversation() options after they was changed/improved
in commit 709593ee.
2022-06-07 17:25:36 +00:00
Stig Bjørlykke c5739dcded umts_fp: Use correct find_conversation() and conversation_new() options
Fix find_conversation() and conversation_new() options after they
was changed/improved in commit 709593ee.
2022-06-07 17:09:21 +00:00
Stig Bjørlykke e329582f1d rtp: Use correct find_conversation() options
Fix find_conversation() options after they was changed/improved
in commit 709593ee.
2022-06-07 16:52:25 +00:00
Stig Bjørlykke ad7905e8da coap: Use correct conversation_new() options
Fix conversation_new() options after they was changed/improved
in commit 709593ee.
2022-06-07 16:35:58 +00:00
Stig Bjørlykke 4829f8c04e jxta: Use correct conversation_new() options
Fix conversation_new() options after they was changed/improved
in commit 709593ee.
2022-06-07 17:29:38 +02:00
João Valverde 104cc42008 Make it easier to call tools/make-enums.py from the source dir 2022-06-07 14:31:08 +01:00
João Valverde e21aa6c36e epan: Update instrospection enums 2022-06-07 14:18:33 +01:00
Roland Knall 4b9d152767 Qt: Auto apply "Limit to display filter"
If a display filter had been applied during the opening
of the conversation or endpoint dialog, automatically check
the entry for "Limit to display filter" to ensure that
the filtered result is being shown, as expected by the user.
2022-06-07 14:38:58 +02:00
Martin Mathieson 0b6bb6949e DCT2000: Fix format of string with PDCP-NR keys 2022-06-06 17:58:07 +01:00
mGhony99 218821f2c1 Packaging: Fixed a bug config.nsh not found
In commit 8c7e3f0d30, the config.nsh.in
was renamed as wireshark-config.nsh.in, and the config.nsh was renamed
as wireshark-config.nsh as well, but the wireshark-common.nsh still
includes the config.nsh, which will cause the packaging failed.
2022-06-06 15:41:31 +00:00
John Thacker a3e0d93bed debian: Remove removed symbols
Commit 5cd591129f removes a number
of conversation related functions. Remove them from the debian
symbol list.

The commit also removed the implementation of conversation_hash_exact,
so remove the declaration from the header file.
2022-06-05 22:48:43 -04:00
Gerald Combs 286f57a2c7 epan: Check for null addresses in find_conversation.
Make sure we don't pass null address pointers to conversation_lookup_*.
Fixes #18126.
2022-06-05 17:58:50 -07:00
Jakub Jirutka 3187fbbd61 Qt: Fix segfault when some ICU codec is not available
$ gdb --args wireshark
    (gdb) run
    Starting program: /usr/bin/wireshark
    [New LWP 10363]
    [New LWP 10364]
     ** (wireshark:10356) 13:13:14.137941 [GUI WARNING] -- codecForName: ucnv_open failed ISO-8859-2 U_FILE_ACCESS_ERROR
    (gdb) bt
    Thread 1 "wireshark" received signal SIGSEGV, Segmentation fault.
    0x00005555557b1959 in MainWindow::findTextCodecs (this=0x7fffecdfd390) at wireshark-3.6.5/ui/qt/main_window.cpp:2029
    2029            QString key = codec->name().toUpper();
    (gdb) bt
    #0  0x00005555557b1959 in MainWindow::findTextCodecs (this=0x7fffecdfd390) at wireshark-3.6.5/ui/qt/main_window.cpp:2029
    #1  0x00005555557b4ce3 in MainWindow::MainWindow (this=this@entry=0x7fffecdfd390, parent=parent@entry=0x0) at wireshark-3.6.5/ui/qt/main_window.cpp:362
    #2  0x000055555564f0af in main (argc=<optimized out>, qt_argv=0x7fffffffe748) at wireshark-3.6.5/ui/qt/main.cpp:725

See https://gitlab.alpinelinux.org/alpine/aports/-/issues/13814 for more
information.

Conflicts (cherry-picked from 635286ce):
	ui/qt/main_window.cpp
2022-06-05 17:01:04 -07:00
Jaap Keuter fe4210029a Qt: Reword menu item Seconds Since Beginning of Capture 2022-06-05 23:55:59 +00:00
John Thacker 9d716d793c Follow Stream: Allow using spin boxes with no packets visible
It's only necessary to check that cap_file_.capFile()->edt is
not NULL if use_stream_index is FALSE.

This prevents failure and an inaccurate error message about the
capture file being invalid when using the spinbox to cycle through
a stream when all packets are filtered out.(E.g., Follow a stream,
append to the filter looking for something, no packets match, try to
go to the next stream.)
2022-06-05 22:19:39 +00:00
João Valverde 2939c6d0dc Version info: Do not show plugin count
Plugin count is dependant on initialization order and showing
zero plugins loaded can be misleading.
2022-06-05 21:31:36 +00:00
Gerald Combs 2ac2b0670a Git+CMake: Add support for CMake presets.
CMake 3.19 added support for CMakePresets.json and
CMakeUserPresets.json, which let you prepopulate various configure,
build, and test options. Add CMakeUserPresets.json to .gitignore as
recommended by the documentation and add an example to the Developer's
Guide. CMake uses 2-space indentation; specify that for CMake*.json in
.editorconfig.
2022-06-05 13:04:07 -07:00
João Valverde c0bd7266ad Gitlab-CI: Add tfshark to code check job
Building tfshark is disabled by default in CMake options.

The tfshark code should be continuously tested or removed from the
main repo. It should not be allowed to exist in a broken state.

Add it to the code check job to make sure that it at least compiles.
2022-06-05 19:47:10 +00:00
Gerald Combs 5cd591129f epan: Convert remaining conversation code to elements.
Convert the address+port conversation code to element lists. Make our
conversation keys element lists. Document more of the conversation API.

Update the Conversation Hash Table dialog to use the new API.

Describe an alternative key type and data structure at the top of
conversation.c.
2022-06-05 19:05:33 +00:00
Gerald Combs 729b4d3b69 [Automatic update for 2022-06-05]
Update manuf, services enterprise numbers, translations, and other items.
2022-06-05 16:40:02 +00:00
Stig Bjørlykke b05678b40e nvme: Fix uint32 to pointer conversion
Use GUINT_TO_POINTER to convert guint32 to pointer, and
GPOINTER_TO_UINT to convert pointer to guint32.
2022-06-05 14:10:36 +00:00
Roland Knall b06c1c451c Qt: Make TrafficTable detachable
Allow the endpoint and conversation dialogs to have detachable
tabs. At the same time move the tree functionality to a subclass
to better be able to handle the context menu when detached.

Right now, still a lot of tree stuff is in the tabwidget, but
could be moved to the tree for the future
2022-06-04 21:28:05 +02:00
Roland Knall 9edf06383a Qt: Move most Contextmenu stuff to TrafficTree
Create a new class, which handles the context menu stuff for
the traffic data, as well as remove unnecessary signals used
by the sub-dialogs.
2022-06-04 15:57:02 +02:00
Elijah Conners f72a33fc1c dot11decrypt: explicitly cast *pmk_len and msk_len
In a typical setting where int is 32 bits and the type guint8 is 8 bits,
the overflow check in Dot11DecryptDerivePmkFromMsk will automatically
promote the sum of msk_len and *pmk_len to an int. Since int is 32 bits
and guint8 will always be 8 bits, the sum will never overflow.
Therefore, an explicit casting of the sum of msk_len and *pmk_len to
the type guint8 is necessary.

Signed-off-by: Elijah Conners <business@elijahpepe.com>
2022-06-03 23:13:34 +00:00
Darien Spencer 8fd9d1d274 AT: Implementing a session context
Some AT commands and responses need context to be parsed correctly.
For example AT+CGMI's and AT+CGSN's responses are arbitrary strings
without "AT+" or "+" prefix (So saving the command is needed).
Another use case is when a command/response is followed by its data in
the following line, like AT+CGML (SMS content's listed in the line after
the "+CGML" line).

The implementation utilizes the USB conversation of the session to
pass information between packets.
Every new packets takes a 'snapshot' of the data stored in the conversation
before starting to parse and re-uses it when parsing & re-parsing of
that packet occurs.
2022-06-03 21:49:48 +00:00
Gerald Combs 8c7e3f0d30 Packaging: Add a Logwolf NSIS config.
Create Logwolf-specific copies of the various Wireshark NSIS config files
and modify them to install and uninstall Logwolf. There are still a bunch
of rough edges, but the installer works for a test capture I have here.
2022-06-03 21:24:21 +00:00
Gerald Combs 06f0b78ce6 NSIS: Deprecate 32-bit installs.
Recommend 3.6 or earlier for 32-bit users.
2022-06-03 10:26:19 -07:00
Gerald Combs 9e7a2b7699 NSIS: Fix our indentation.
The NSIS project uses 2-space indentation. Make sure we conform to that.
2022-06-03 10:26:14 -07:00
Roland Knall 05759d3ec5 Qt: Better handle retapping for traffic tables
Retapping can have some side-effects and was done in
an overflowing way. Reducing the number of times retapping
is required and done, and also giving control for taps
reload to TrafficTab
2022-06-03 10:25:15 +02:00
Gerald Combs 056fd8a1e3 NSIS: Update some target and filenames.
Rename the following build targets, similar to the recent macOS target
name changes:

nsis_package_prep to wireshark_nsis_prep
nsis_package to wireshark_nsis

Rename some NSIS files to reflect that they're specific to Wireshark.
Update the documentation and CI configurations.
2022-06-02 16:33:31 -07:00
Jaap Keuter 709593ee91 Make distinction between conversation options for creation and search 2022-06-02 22:58:15 +00:00