Commit Graph

7228 Commits

Author SHA1 Message Date
Roland Knall 5f6d7ada57 Qt: Fix pre Qt 5.11 builds 2022-03-18 15:50:53 +01:00
Roland Knall bf21921445 Qt: Allow capture from hidden interfaces
Hidden interfaces where not able to be captured from, if they where displayed on the front page. This fixes that.

Fixes #13354
2022-03-18 12:53:42 +00:00
Roland Knall 9d11321385 Qt: Disable Sorting for the packet List
Allows the sorting to be disabled to avoid painful recalculations if the
sorting has been clicked on by accident.

Fixes #16786
2022-03-17 16:52:53 +01:00
Jaap Keuter bdb460ef69 Bluetooth: have BT specific global names contain bluetooth 2022-03-14 20:02:10 +00:00
Guy Harris 109b92b5d7 wiretap: have wtap_dump_close() provide a "needs to be reloaded" indication.
This allows the "needs to be reloaded" indication to be set in the close
process, as is the case for ERF; having a routine that returns the value
of that indication is not useful if it gets seet in the close process,
as the handle for the wtap_dumper is no longer valid after
wtap_dump_close() finishes.

We also get rid of wtap_dump_get_needs_reload(), as callers should get
that information via the added argument to wtap_dump_close().

Fixes #17989.
2022-03-14 19:12:20 +00:00
Stig Bjørlykke 2c4165fe5a Qt: Set Packet List scrollbar page step only on macOS
Only set the Packet List scrollbar page step to be equal to the
height of the scrollbar when running on macOS. Qt on Linux and
Windows behaves different.
2022-03-10 15:08:14 +01:00
João Valverde e035fa3508 Qt: Add new operators to "display filter expression" dialog 2022-03-09 11:17:39 +00:00
Gerald Combs e482b375f2 Rename the "image" directory to "resources".
The "image" directory contains resource compiler assets and other
application resources, so name it "resources."
2022-03-09 02:07:51 +00:00
Roland Knall 33151dc928 Qt: Fix overlay scrollbar indicator
The indicator for selected packets is not reflecting the relative
size of that packet inside the map
2022-03-08 10:31:25 +00:00
Gerald Combs 1d2a8bff3c [Automatic update for 2022-03-06]
Update manuf, services enterprise numbers, translations, and other items.
2022-03-06 16:41:06 +00:00
Jaap Keuter 5ea49dbffb Drop old unused topic actions
Part of issue #17982
2022-03-06 15:10:19 +00:00
Gerald Combs b9651ba7b0 [Automatic update for 2022-02-27]
Update manuf, services enterprise numbers, translations, and other items.
2022-02-27 16:38:33 +00:00
John Thacker 939972800e Strip Headers: Add separate menu dialog, tshark help
Add a separate menu for Strip Headers (similar to Export PDU, but exporting
to an encapsulation other than WIRESHARK_UPPER_PDU everything for
that encapsulation). Add to the usage output of tshark for the "-U"
option which encapsulation a export tap will produce.
2022-02-25 20:29:16 -05:00
John Thacker cbf76ea22f Export PDU: Allow native encapsulations / strip headers
Allow export PDU taps to be registered with a wiretap encapsulation
instead of always using WTAP_ENCAP_WIRESHARK_UPPER_PDU. This allows
creating normal capture files that aren't tied to wireshark without
having to do a "editcap -C -L -T", as well as creating files in
formats other than pcapng and pcap with tshark.

Provide a couple sample implementations in Ethernet (WTAP_ENCAP_ETHERNET)
and IP (v4 and v6, WTAP_ENCAP_RAW_IP) that are the most common use cases.
(I can imagine a few others; WTAP_ENCAP_MPEG_2_TS could probably be
useful, for example.) Fixes #15141
2022-02-25 20:29:16 -05:00
João Valverde 90c0862a93 Reword plugin info in About Wireshark dialog 2022-02-24 21:30:04 +00:00
João Valverde ac6cbbcda3 Windows: Fix build
For some reason this was not caught by the CI.
2022-02-24 20:29:04 +00:00
David Perry e2fab18853 wsutil: New API to gather compile/runtime info 2022-02-24 13:27:08 +00:00
Roland Knall 21f57f04b1 Lua: Forward display filter text info
Fix issues caused with previous commits

Fixes: #17188
2022-02-23 16:31:35 +00:00
David Perry dd2fd30ba3 Tooltips for menu items that open browser windows 2022-02-23 15:36:42 +00:00
Chuck Craft 2990d624f9 Qt: Show Packet Bytes - first byte is 0 so end byte is length-1
Closes  #17804
2022-02-21 16:57:31 +00:00
Gerald Combs 695ce22b0d [Automatic update for 2022-02-20]
Update manuf, services enterprise numbers, translations, and other items.

[ Reverted packet-asterix.c by hand. ]
2022-02-20 18:58:53 +00:00
Uli Heilmeier 0824558af1 QT Proto Tree: Fix link to wiki for protocol ref
The wiki pages for protocols are currently reachable via
https://gitlab.com/wireshark/wireshark/-/wikis/<proto_abbrev>

Fixes #17944
2022-02-19 11:59:56 +00:00
Chuck Craft 0396c65d60 Qt: "Decode As..." tooltips misassigned 2022-02-19 11:48:21 +00:00
Jim Young 59b5c83e4c Qt: Refactor to avoid deprecation warning on Windows 2022-02-14 09:24:02 +00:00
Gerald Combs 4e3b2ec007 [Automatic update for 2022-02-13]
Update manuf, services enterprise numbers, translations, and other items.
2022-02-13 16:39:57 +00:00
Alexis La Goutte 0f86319543 follow_stream_dialog(qt): Fix Wunreachable-code
follow_stream_dialog.cpp:591:29: warning: code will never be executed [-Wunreachable-code]
2022-02-13 10:23:42 +00:00
Alexis La Goutte 13c42f5f83 help_url(ui) Fix Wunreachable-code
help_url.c:308:15: warning: code will never be executed [-Wunreachable-code]
2022-02-13 10:23:42 +00:00
Roland Knall 699c3c051a Qt: Fix ASAN heap-use-after-free 2022-02-11 18:51:54 +00:00
John Thacker 52955b9c43 Qt: highlight when search result is in the current packet.
Calling setCurrentIndex with QItemSelectionModel::ClearAndSelect clears
the currentIndex, but not the selection, so it doesn't trigger
selectionChanged. However, highlighting depends on the selectionChanged
signal, not currentChanged(), and it's not emitted if we're still on the
same packet/row as the current selection (which can occur if searching
for something that occurs in exactly one packet in a capture.)

Since packet_list_select_row_from_data() cares about where the data
is within the packet, it needs to clear the selection.  Fix #8269
2022-02-11 18:21:35 +00:00
John Thacker 0011bb6a4c Qt: Allow omitting secondary data sources when printing
Add a checkbox to the packet format group box to allow the
hexdump to only have the main frame instead of secondary data
sources as well, so that Print and Export Packet Dissections can
be used for input to text2pcap.
2022-02-10 23:28:53 -05:00
David Perry 1e0d117eb7 Specify directory for temporary captures 2022-02-09 14:32:28 +00:00
Roland Knall 1e795b3f8c Qt: Fix Packet bytes dialog view
Mac/Linux use a different sorting for the QDialogButtons
2022-02-07 22:03:01 +00:00
Roland Knall 81f220ae80 Qt: Fix open explorer
Apparently on Windows, if a dialog contains spaces it is not properly
opened via /select. But opening the file via QDesktopServices leads to
the file not being selected in the open explorer windows (expectation by
the user). Therefore the original change is restored, but with a
differenc call which should handle the space issue in most cases better
than before. See
https://stackoverflow.com/questions/3490336/how-to-reveal-in-finder-or-show-in-explorer-with-qt
for a short explanation (bottom of post)

Fixes #17927
2022-02-07 15:57:59 +00:00
Roland Knall 835d5b3f97 Qt: Allow byteview to be hidden
Implements: #17887
2022-02-07 12:48:18 +00:00
Roland Knall 5b6bf0b4f3 Qt: Fix show in folder issue
Opening a folder on Windows lead to undesired behaviour

Fixes: #17927
2022-02-07 10:54:38 +01:00
Gerald Combs d6fe0b3211 [Automatic update for 2022-02-06]
Update manuf, services enterprise numbers, translations, and other items.
2022-02-06 16:39:45 +00:00
Chuck Craft 8510013135 Prefs/Expert: disable Open Expert Info on Protocol Preferences context menu
Closes #17920
2022-02-06 13:10:08 +00:00
Stig Bjørlykke 9a11d75d4d Qt: Add Show as Json in Show Packet Bytes
Show as human readable indented Json.
2022-02-06 10:54:18 +00:00
Roland Knall d003ad9092 Qt: Display fieldname as tooltip in expert info dialog 2022-02-05 11:49:41 +00:00
Roland Knall 4e11aa1829 Qt: Show Preference key in the tooltip 2022-02-03 23:15:41 +00:00
Chuck Craft 5c020863c7 Qt: Go To Packet field - change from inputMask to QIntValidator
inputMask populates the field with a space for each character
in the mask. Mouse people that click in the field may position
the cursor at the far right of the mask and not be able to enter
a value.
https://www.qtcentre.org/threads/7106-QLineEdit-and-input-mask

Remove the inputMask from the field definition and add a validator.
2022-02-01 21:41:18 +00:00
Roland Knall a087544ba8 Qt: Fix PacketDialog preference context menu
The context menu is not being filled in the packetdialog popup

Fixes #17803
2022-02-01 19:44:39 +00:00
Gerald Combs bbed034329 [Automatic update for 2022-01-30]
Update manuf, services enterprise numbers, translations, and other items.
2022-01-30 18:14:08 +00:00
Gerald Combs f7fba2ad52 [Automatic update for 2022-01-23]
Update manuf, services enterprise numbers, translations, and other items.
2022-01-23 17:43:16 +00:00
Guy Harris 125f5cbd88 Fix no-ZLib builds.
Don't use ZLib routines or data types if we're built without ZLib.

Don't support --compress-type=gzip, or a gzip check box in the Output
pane of the Capture Options dialog, if we're built without ZLib.

Fixes #17899.
2022-01-21 15:04:28 -08:00
John Thacker 3e2c79d924 dumpcap: Fix segfault when failing to create temporary file
g_file_open_tmp() does not set name_used unless the temp file
is successfully created (cf. to our old hand written library
pre commit 2925fb0850). Initialize it so that g_free doesn't
free a random memory location in that case, and don't use it
otherwise after failure. Fix #17828.
2022-01-19 13:57:08 +00:00
Anders Broman fe09d8e7e5 version info: Update for Microsoft Visual Studio 2022. 2022-01-18 17:28:28 +00:00
Gerald Combs 496a23a56a [Automatic update for 2022-01-16]
Update manuf, services enterprise numbers, translations, and other items.
2022-01-16 16:40:05 +00:00
Thibaut Vandervelden c9e08b7be3 Add ShowAsRustArray option 2022-01-16 08:07:44 +00:00
John Thacker 3f6c273e11 import_text: Check writable encap types against pcapng
Since Import from Hex Dump creates a pcapng temporary file, use
the list of encapsulations we can write to pcapng instead of pcap.

In particular, this makes WTAP_ENCAP_SYSTEMD_JOURNAL possible, so make
text_import capable of writing that encapsulation by using the proper
rec_type and block. It's not clear why someone would have a binary
hex dump of this text based format, but it works.
2022-01-16 03:34:34 +00:00