Commit Graph

82835 Commits

Author SHA1 Message Date
John Thacker 91bf99405a ieee80211: Pass association_sanity_check to dissect_mgt_action
Once again pass the association_sanity_check_t for MGT_ACTION
frames the way it was before commit fb2a0b4a71
introduced a new function. Fixes #17767.
2021-12-07 20:23:55 -05:00
John Thacker 8938b83961 cli: Clean up httpstat tap output format
Actually output the packet count for HTTP response status codes,
and align the columns between requests and response. (This CLI-only
stat is largely redundant with http,tree but it might as well work.)
2021-12-08 00:46:48 +00:00
João Valverde 9b0b3c118a extcap: Use standard --log-level and --log-file CLI options
This should allow simultaneous logging to the console and the log
file when running an extcap from the CLI.

One difference is that the extcap error/warning dialogs in the GUI
have extra information in standard wslog format (may or may not
be a good thing).
2021-12-07 23:07:55 +00:00
Chuck Craft c560226f3b Qt: capture with file intervals bug; autostop duration reset
Closes #16783. No open issue for autostop bug. Link added in
issue 16783 to Ask site question 15303.
2021-12-07 08:05:56 +00:00
Martin Mayer 8d07014df0 Qt: Collapse/Expand context menu for StatsTreeDlg 2021-12-07 06:04:09 +00:00
j.novak@netsystem.cz d50c666cd7 Capture Options dialog: Added configuration icon 2021-12-07 05:47:54 +00:00
Gerald Combs 411df7ca34 CMake: Remove the update_tools_help target.
Remove the update_tools_help target. Despite the comment, the weekly
update job doesn't use it, we don't have targets for our other update
scripts, and it currently causes issues if BUILD_tshark is disabled.
Fixes #17766.
2021-12-07 05:13:27 +00:00
John Thacker 06c1bbb2be gsm_map: stat table formatting in cli
The TABLE_ITEM_FLOATs (Avg Bytes, etc.) in the stat table need a float
format string, or else unpredictable output happens with tshark.
2021-12-06 23:15:55 -05:00
João Valverde 290234f3f5 Extcap: Improve the log handler logic
If we have a log file write everything to the file, to provide
a complete picture in the log.

Debug information cannot be written to the parent process when
running in child mode.
2021-12-06 18:51:42 +00:00
João Valverde 1a65cf0533 Fix Debian symbols 2021-12-06 18:51:42 +00:00
João Valverde b6130cd970 extcap: Register log handler conditionally
This matches the original implementation and allows displaying
logs to the console, including debug information, when running
an extcap from the CLI for testing and development purposes.

This should make extcap logging bug-for-bug compatible with the
behavior before dc7f0b88bb.
2021-12-06 18:51:42 +00:00
João Valverde 25c7a1abc8 wslog: Use stdout for debug messages
Imitate the GLib logic for selecting the console output stream
according to the log level. Levels MESSAGE and above go to
stderr. INFO and below go to stdout, unless stderr is chosen
using ws_log_console_writer_set_use_stderr().

It turns out some old extcap code was subtly dependending
on this behavior.
2021-12-06 18:51:42 +00:00
Martin Mathieson 2189490151 PDCP-NR: For broadcast PDU, don't dissect header and MAC 2021-12-06 18:35:24 +00:00
AndersBroman 3e0506dbe9 Make wmem_print_tree public. 2021-12-06 16:06:13 +00:00
Nardi Ivan 7cc0f7fe28 QUIC: fix visualization of some (rare) versions
QUIC V1 keys/constants are defined in draft-33; draft-34 only contains
minor editorial changes.
Nonetheless, some QUIC implementations (i.e. picoquic) announce draft-33
and draft-34 versions in their VN Transport Parameter.
For example see packet 2 in the trace attached to 968fe6ddba.
2021-12-06 15:02:21 +00:00
Aurelien Aptel 18f6351cbf nvme: fix CapsuleCommand "Unknown Command" summary
dissector shows "Unknown command" for many packets summary despite
being able to dissect it properly in the tree item added in that
function. Add offset to match the tree item offset few lines below.
2021-12-06 15:42:59 +02:00
João Valverde 7d6c7e4167 CMake: Try to fix WiX packaging 2021-12-06 09:12:56 +00:00
Brian Sipos 95cfdcbf3b COSE: Add parameter names to labels
Dissector names allow integer labels to be given standard text names.
2021-12-06 06:22:49 +00:00
Роман Донченко be38ad12ab jpeg: refactor the parsing of Exif data
After the recent updates, the `process_app1_segment` function has grown very
large. Split it into three functions and make some extra improvements:

* Indent continuation lines consistently.

* Give variables more descriptive names (e.g. no more `val_16`, `val_32`).

* Remove the need to do arithmetic with the `tiff_start` (and the variable
  itself) by using a subset TVB for the TIFF data.

* Remove unnecessary return values.

* Make miscellaneous style improvements.

There should be no difference in behavior, except that the error message
associated with `ei_next_ifd_offset` now shows the correct number (previously
the number was `offset + tiff_start`, when it should have been
`offset - tiff_start`; with the removal of `tiff_start` this bug got fixed
by itself).
2021-12-06 06:08:29 +00:00
Gerald Combs aac98e48d8 Docbook: Python installation updates.
Try to describe as briefly and clearly as possible where Python might
end up being installed. Fixes #17712.
2021-12-06 05:54:07 +00:00
cacamille3 03224385b8 Added Invalid value to BrowseDirection enum 2021-12-06 05:39:29 +00:00
j.novak@netsystem.cz c0b4d285a8 Extcap/ssh-base: Use password authentication before keys 2021-12-06 05:38:49 +00:00
Gerald Combs c939df8f61 Docbook: Windows toolchain updates.
Visual Studio and Qt tend to install their own copies of CMake.

We build the 3.6 branch with Visual C++ 2019.
2021-12-06 05:09:58 +00:00
John Thacker 34f3a902f8 cli: Make CAMEL SRT stats filter work
The filter needs to be set after memsetting the struct to 0.
Also fix a length being off by one so that the filter doesn't
include the comma.
2021-12-06 03:52:49 +00:00
Gerald Combs 49e1576c31 CMake+Qt: Add a version check for QT5_ADD_TRANSLATION.
Passing options to QT5_ADD_TRANSLATION requires Qt >= 5.11.

https://github.com/qt/qttools/blob/5.11/src/linguist/Qt5LinguistToolsMacros.cmake
https://github.com/qt/qttools/blob/5.10/src/linguist/Qt5LinguistToolsMacros.cmake
2021-12-05 16:30:44 -08:00
Jaap Keuter 62081b9a7d SRVLOC: Remove final sscanf 2021-12-05 22:41:37 +00:00
Gerald Combs 5e58f1b99f [Automatic update for 2021-12-05]
Update manuf, services enterprise numbers, translations, and other items.
2021-12-05 18:45:44 +00:00
João Valverde 83eda5fcfd CMake: Fix setting default build type
Also avoid setting a build type if that setting is meaningless,
like with multi-config generators.
2021-12-05 18:01:55 +00:00
John Thacker 7987df81ff QT: Default sort simple stat tables by first column ascending
Without this, the simple stat tables default to sorting by the first
column in descending order. (An artifact of the QTreeWidget that they
inherit from.) The first column is generally a message type (integer or
string) and ascending order makes more sense.

Some of the stat tables intentionally insert rows in a preferred order
that is different than sorting by the first column (e.g, ANSI A I/F tables
are sorted by the second column), but we can't tell what that is.
QTreeWidget only allows the data to be shown in its original unsorted
order if the widget is marked unsortable, but then the user isn't allowed
to sort at all, and being able to sort by other columns (such as count)
is useful.
2021-12-05 14:54:07 +00:00
Martin Mathieson 8d8d618621 Fix some filters that appear to be copied from entry before. 2021-12-05 14:53:25 +00:00
John Thacker 8b8171d952 ANSI A I/F: Retrieve stats correctly
The row number to lookup in the stat table is the index retrieved
from my_try_val_to_str_idx, not the original message type.
Ticks the counts in the correct rows of the stats table, and
prevents failed assertions and program halt in stat_tap_ui.c when
getting a message type with a number greater than the number of
rows in the table.
2021-12-05 14:11:32 +00:00
Jaap Keuter adbaced04c Dissectors should not include stdio.h, unless needed 2021-12-05 12:45:46 +00:00
João Valverde cef5e81146 Define more log domains for extcaps 2021-12-05 00:28:26 +00:00
Gerald Combs 6ef2b48fc0 CMake+Qt: Run lrelease in silent mode. 2021-12-04 17:46:29 +00:00
João Valverde c6825ccdf3 Fix capture with WIRESHARK_LOG_LEVEL=debug
Fix the dumpcap log handler to not pass debug messages as error messages
to parent process. Otherwise it is impossible to use dumpcap in debug
mode as a child process. Dumpcap will be in debug mode if it inherits
the environment variable WIRESHARK_LOG_LEVEL set to "debug" (or
"noisy") from the parent process.

Fixes dc7f0b88bb.

Fixes #17764.
2021-12-04 17:02:52 +00:00
Nardi Ivan 968fe6ddba QUIC: update support to latest version negotiation draft (05)
The tricky part is deciding if/when updating the decryption ciphers.
Current code works (at least) in the base scenario: V1 updates to V2
(draft-00).
2021-12-03 20:05:08 +01:00
João Valverde e921b804d0 Fix logging with extcaps
Extcaps require a log file when invoked in child mode. It also has
a specific flag to enable debugging, other that the wslog options.

Fix the logging to:
  1. Enable debug log level if --debug is used.
  2. Do not emit messages to the stderr if debug is enabled.

This brings extcap logging to the same feature level it had before
wslog replaced GLib logging.
2021-12-03 12:30:53 +00:00
Pascal Quantin 5d30f77391 F1AP: dissect more RRC-Container instances 2021-12-03 13:00:11 +01:00
João Valverde 76186f16fb epan: Rewrite format_text_chr() using standard APIs 2021-12-03 10:18:37 +00:00
João Valverde 5059c15a2c Update release notes 2021-12-03 04:40:34 +00:00
João Valverde 19dcb725b6 epan: Remove STR_ASCII and STR_UNICODE
These display bases work to replace unprintable characters so the
name is a misnomer. In addition they are the same option and this
display behaviour is not something that is configurable.

This does not affect encodings because all our internal text strings
need to be valid UTF-8 and the source encoding is specified using
ENC_*.

Remove the assertion for valid UTF-8 in proto.c because
tvb_get_*_string() must return a valid UTF-8 string, always, and we
don't need to assert that, it is expensive.
2021-12-03 04:35:56 +00:00
John Thacker 7e99bbf32b BER: Make GeneralizedTime a FT_ABSOLUTE_TIME
Since we now support ISO 8601 Basic format, have asn2wrs.py
convert GeneralizedTime fields in BER to FT_ABSOLUTE_TIMEs and use
the new common code to convert them. This means that the fields
can be compared with other time fields in filters, etc.
2021-12-02 20:40:22 -05:00
Jörg Mayer a0173cd7cf text2pcap: Support parsing of iso-8601 dates 2021-12-02 19:34:45 +00:00
Gerald Combs 76ff47152b Test: Switch name resolution clopts to a capture file.
The case_tshark_name_resolution_clopts test doesn't need live capture,
so switch to a capture file. This should fix the current failure on the
macOS Arm builder.
2021-12-02 10:45:50 -08:00
João Valverde fe9b1fb103 dfilter: Avoid dumping mangled UTF-8
We should not replace chars that cannot be represented
in ASCII, to avoid mangling UTF-8. This assumes every
string is UTF-8, of course.

This only affects the display of the compiled filter.

Before:

    Filter: http.user_agent == "João"

    Constants:
    00000 PUT_FVALUE	"Jo\xc3\xa3o" <FT_STRING> -> reg#1

After:

    Filter: http.user_agent == "João"

    Constants:
    00000 PUT_FVALUE	"João" <FT_STRING> -> reg#1
2021-12-02 16:04:48 +00:00
João Valverde 60e305d1e1 dfilter: Convert grammar.lemon to 4-space indentation
Add global EditorConfig settings for lemon files.

Add exceptions for the two grammar files that use tab indentation.
2021-12-02 15:48:40 +00:00
John Thacker aadf4efcbe epan: Add ENC_ISO_8601_DATE_TIME_BASIC
Add the ISO 8601 Basic date time format as another string time
option. This could be used for e.g. ASN.1 GeneralizedTime.
Add tests for it.
2021-12-02 14:19:49 +00:00
Pascal Quantin 871895f95a IPsec: fix display of ESP padding, protocol and ICV when using NULL heuristic
This puts back the code changed in 70a9311
2021-12-02 14:56:50 +01:00
Sangeetha Jain f5dc4652fe MeshConnex (MCX): MCX packet decode logic
MCX is a feature to deliver IEEE 802.11s meshing.
2021-12-02 17:05:21 +05:30
Joel Colledge 9878026a51 DRBD: Add support for new packets including the P_RS_DAGTAG family
These were recently added to the DRBD protocol. See the following
commits at https://github.com/LINBIT/drbd-headers:
098b1fdcdbaa introduce new P_RS_CANCEL_AHEAD
e5d5e6fa9af7 add P_DISCONNECT to stop connect-attempts
1681c4b0166e add dagtag resync request packets
2021-12-02 08:20:40 +00:00