Commit Graph

86605 Commits

Author SHA1 Message Date
Gerald Combs 5a9812ab61 AppRun: Set various paths
Set our ld library path and our data, extcap, and plugin directories.
Document WIRESHARK_EXTCAP_DIR and WIRESHARK_PLUGIN_DIR. Note that we
might want to set our various directories relative to the program path.
2023-01-18 20:37:08 +00:00
João Valverde a5eb85a1d6 Revert "ORAN FH CUS: Add subtree for bfwCompHdr"
This reverts commit 2c5f2e40fc.
2023-01-18 19:19:32 +00:00
Martin Mathieson 2c5f2e40fc ORAN FH CUS: Add subtree for bfwCompHdr 2023-01-18 14:59:17 +00:00
John Thacker b1f50b0b68 DNS: Add reverse DNS (PTR) answers to Resolved Addresses
If "use captured DNS packet data for name resolution" is enabled,
also use the information from PTR (reverse DNS) answers to fill
the hash table for IPv4 and IPv6 host resolution.

Fix #10036
2023-01-18 14:13:34 +00:00
João Valverde 3335197b42 RPM: Fix header installation 2023-01-18 13:03:55 +00:00
João Valverde 83f57bd4c2 Debian: Fix header installation 2023-01-18 10:51:51 +00:00
Kevin Grigorenko b301dee0e1 Add HTTP2 connection and session window sizes 2023-01-18 07:04:53 +00:00
João Valverde fe7bfdf6ca CMake: Require explicit installation of development headers
Develpment headers are a sizeable part of the binary installation
and most users won't ever require them. It's recommended to package
them separately in a devel package or SDK.

Create a CMake installation component for development headers
and add the EXCLUDE_FROM_ALL property.

Headers can be installed using the invocation:

    cmake --install <dir> --component Development
2023-01-18 03:35:13 +00:00
João Valverde 728073ade0 CMake: Do no install some misc CMake modules
These are build files, not part of the installation.
2023-01-18 02:46:45 +00:00
John Thacker a05104df66 Qt: Fix build on OpenSUSE 15.3
OpenSUSE requires explicitly including the QTime header.
Fixup 4d3d856d8f
2023-01-17 20:38:48 -05:00
Gerald Combs 2d8cdec477 NSIS: Update the donation page
Update the plea text and URL.
2023-01-17 21:17:33 +00:00
Gerald Combs d3d6db58fe Resources: Add Logray Freedesktop files 2023-01-17 20:58:31 +00:00
John Thacker 4d3d856d8f Qt: Conversation/Endpoint table Filter by different QVariant types
Return the percentage in the UNFORMATTED_DISPLAYDATA converted
from our string so it it compares properly with an equality filter.

Use QVariant comparisons where appropriate so that Filter by
works as expected with types that are not integers, such as doubles
the City/Country strings from GeoIP, or when absolute start time
is used for conversation starts.

Fix #18738.
2023-01-17 16:47:19 +00:00
João Valverde a201eaf118 MinGW: Enable -Werror by default 2023-01-17 15:04:40 +00:00
João Valverde b801ea0191 MinGW: Fix -Wclobbered 2023-01-17 15:04:40 +00:00
Alexis La Goutte 3504b423b9 MySQL: Fix Dead Store Found by Clang Analyzer
Line 3728 Value stored to 'offset' is never read
2023-01-17 14:18:31 +00:00
Pascal Quantin 2dd8345895 NR RRC: upgrade dissector to v17.3.0 2023-01-17 14:47:25 +01:00
John Thacker 9afd2f23ef Qt: Plug credentials model memory leak 2023-01-17 13:25:02 +00:00
John Thacker 058400d8e0 ECATMB: Get filename with encoding when adding to column
When retrieving a string, don't just use tvb_memcpy, even if
expected to be ASCII (because it might have errors.)

This doesn't get truncated, even if all replacement characters,
because the eventual returned buffer is 200 octets long and the
max filename is 49.

Fix #18800
2023-01-17 12:41:58 +00:00
Joris Peeraer 918c9c5d5c PFCP: add Nokia proprietary IEs 2023-01-17 10:17:24 +00:00
John Thacker ffdf332f24 docs: Explain the FT_FRAMENUM use of the strings field
Add a section about FRAMENUM_TYPE to the 'strings' field
section of README.dissector
2023-01-17 09:27:29 +00:00
Stig Bjørlykke d851134d89 ui: Check occurrence when check for existing custom column
Add a check for occurrence in column_prefs_has_custom() to allow
"Apply as Column" if column already exists with occurrence set.
2023-01-17 08:34:09 +00:00
John Thacker c8f8bc82a7 epan: FT_FRAMENUM strings are special
When creating the text of a custom column, don't call hf_try_val_to_str,
etc. on FT_FRAMENUM fields that have hfinfo->strings.
It refers to the ft_framenum_type.

Prevents crashing on custom columns of FT_FRAMENUM fields of
a type different than FT_FRAMENUM_NONE.
2023-01-16 20:34:19 -05:00
Martin Mathieson 30ef9d38cd Make a couple of functions static 2023-01-16 18:17:59 +00:00
Martin Mathieson 2f1493316a ORAN FH CUS: Round ext11 bundle to next byte 2023-01-16 17:35:48 +00:00
Martin Mathieson 4dd78f11c9 Fix various issues seen with tools/check_typed_item_calls.py 2023-01-16 15:35:04 +00:00
Pascal Quantin da0c933aa8 LTE RRC: upgrade dissector to v17.3.0 2023-01-16 13:59:13 +00:00
João Valverde 7738d5af5d MSYS2: Add some packages for missing dependencies
Add mingw packages for dependencies that are missing upstream;
these should eventually be submitted there.

Fix a version check for libsmi.

Update README.
2023-01-16 13:30:43 +00:00
Pascal Quantin 84f3a094d4 LPP: upgrade dissector to v17.3.0 2023-01-16 12:31:55 +00:00
João Valverde 7e6266d33d MSYS2: Add Lua 5.1 support and fix test suite failures 2023-01-16 11:54:43 +00:00
John Thacker 1e1e733d8c iSCSI: Handle invalid opcodes inside Reject message
Allow dissect_iscsi_pdu to handle iSCSI messages with invalid
opcodes, so that it does not crash when receiving them in Reject
messages.

Fix #18796
2023-01-15 19:58:29 -05:00
Gerald Combs 3bde296404 [Automatic update for 2023-01-15]
Update manuf, services enterprise numbers, translations, and other items.
2023-01-15 23:10:01 +00:00
Jiří Engelthaler a5319966bc Fix typo 2023-01-15 20:55:53 +01:00
John Thacker acf0ee420f Proto hierarchy stats: obtain capture file read lock
Obtain the capture file read lock when computing protocol hierarchy
stats to prevent segfaulting if the file is closed.

The protocol hierarchy stats are always computed on all the packets
of the current file that pass the current filter, so don't let it run
until a read or rescan is complete.

Since the protocol hierarchy stats use the common progress bar,
these two changes keep it from hijacking the progress bar when a
rescan is in progress, which led to anomolies with the stop button
behavior and clearing the progress bar when the stats were done
(but not the temporarily paused rescan.)

Make the stop button actually stop the protocol hierarchy stats.

In the future, the protocol hierarchy stats could perhaps use
process_specified_records from file.c

Fix #18787. Fix #18788.
2023-01-15 16:09:17 +00:00
João Valverde 89188380ae MSYS2: Add better support for other environments
Add support for and generally recommend using UCRT64.
2023-01-14 23:38:55 +00:00
Gerald Combs 4ee71f77e6 Release notes: Add a link to the foundation site 2023-01-14 11:00:39 -08:00
John Thacker 0c3c3e9342 Qt: ElidedLabel escapes HTML
ElidedLabel escapes HTML after !9261, so use its own methods to make text
small and italicized instead of passing in rich text.

IOGraphDialog used to make an error message, if it existed, bold.
Perhaps ElidedLabel should have a way to have prepended bold
text for such usage.
2023-01-14 13:20:00 -05:00
John Thacker a25bcce10a Qt: Only autoset display filter when dialog is opened
Autoset "Limit to display filter" if a display filter is
present when the dialog is open, but do not re-enable it each
time the widget is updated, if the user has unchecked it.

[skip ci]

Fix #18461
2023-01-14 13:17:02 -05:00
John Thacker 4484736366 Qt: Set small text for ExpertInfoDialog filter
ElidedLabel has its own method to set small text and italicize.
After !9261, any HTML that is passed into it appears escaped,
which we don't want.
2023-01-14 12:19:45 -05:00
Stig Bjørlykke c0dd9620c5 lwm2mtlv: Fix resource id lookup
The LwM2M object instance and resource id may be given in both the
CoAP Uri-Path and the LwM2M TLV header, and in this case the created
uri_path is wrong and resource id lookup will fail.

Change the logic to get object id from CoAP Uri-Path and resource id
from either Uri-Path or LwM2M TLV header.
2023-01-14 15:39:54 +00:00
João Valverde a23bab971e MinGW: Disable -Wcast-function-type warnings 2023-01-14 14:52:53 +00:00
João Valverde 6bfeecb562 MinGW: Fix warnings wiht ws_strptime() 2023-01-14 14:52:53 +00:00
João Valverde 184a567621 CMake+Windows: Try to prevent symbol redefinitions again 2023-01-14 14:52:53 +00:00
João Valverde cdff6da68e MinGW: Cast away a -Wincompatible-pointer-types warning
extcap/androiddump.c:1712:36: warning: passing argument 2 of 'ws_inet_pton4' from incompatible pointer type [-Wincompatible-pointer-types]
 1712 |         ws_inet_pton4(bt_local_ip, &(server.sin_addr.s_addr));
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                    |
      |                                    u_long * {aka long unsigned int *}
2023-01-14 14:52:53 +00:00
João Valverde 389e70722c MSYS2: Disable -Werror by default 2023-01-14 14:52:53 +00:00
Gerald Combs dd07fb5a15 CMake: Update a compiler version check
It looks like AppleClang 10 and 11 generate bogus missing braces
warnings as well. The macOS Intel builder, which has AppleClang
11.0.0.11000033 installed, is failing with

wireshark/epan/dissectors/packet-rtps.c:11403:63: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
  coherent_set_entity_info coherent_set_entity_info_object = {0};
                                                              ^
                                                              {}
2023-01-14 02:28:38 +00:00
Gerald Combs ad3205000b Qt: Add a donation link to the welcome page 2023-01-14 02:09:55 +00:00
John Thacker a59a663618 Qt: Sort strings, like GeoIP country or city, in Endpoints
QVariant canConvert<double>() does not test that a particular QVariant
value can be converted to a double, but only that at least some values
of that type can convert. (Just checking the type is much faster than
actually trying the conversion; this is why convert() has a boolean
output parameter as well.) It thus always returns TRUE for strings even
for strings that fail to convert, and is not by itself a useful test
when trying to sort unknown types.

Luckily, we don't need to test this anyway. Set the default data role used
for sorting to UNFORMATTED_DISPLAYDATA, so the parent QSortFilterProxyModel
will handle QVariants that are numbers appropriately. In particular,
this makes the GeoIP city and country column strings in the Endpoints
table sort correctly.

Fix #18749
2023-01-13 19:13:02 -05:00
John Thacker 4307d13195 Qt: Fix selection of filter column in Conversation table
When converting from our columns as displayed to the canonical
list of columns, add 1 for the missing conversation ID if it
is not present (as opposed to if it is present.) Also change the
test for the total packets to account for the new conversation ID
column.

Related to #18738
2023-01-13 18:07:07 -05:00
João Valverde d09460283b MinGW: Fix -Wattributes 2023-01-13 22:41:04 +00:00