Commit Graph

82757 Commits

Author SHA1 Message Date
Aidan MacDonald 660dded383 Refactor USB mass storage class dissector
The existing dissector only handles the Bulk-Only Transport
protocol but occupies the USB dissector hooks for all mass
storage class traffic.

To facilitate alternative protocols like UASP, direct all
mass storage class traffic to a stub dissector which will
dispatch to the real dissector based on other information,
such as the USB interface protocol.

Heuristic dissectors are still attached directly to the
core USB hooks.
2021-11-17 13:27:56 +01:00
Chuck Craft f748c91bb2 Qt (ByteView): update preference on hover state change; WSUG typo 2021-11-17 09:43:11 +00:00
Filip Kågesson f9be0f0c8c HICP: Added dissector to support Host IP Configuration Protocol.
A new dissector was added to support dissection of the HICP protocol.
2021-11-16 21:43:17 +00:00
Luckinger Florian 2172cd3e95 EBHSCR: Add dissection of LIN packets 2021-11-16 21:28:54 +00:00
Luckinger Florian f9398d82fb EBHSCR: Update dissection of ethernet frames
Add new bits to status field. Add column info for frames with no ethernet
payload.
2021-11-16 21:28:54 +00:00
Luckinger Florian b43d4a8c28 EBHSCR: Add dissection of FlexRay packets
Dissect FlexRay specific EBHSCR header of frame packets, symbol packets,
slot status packets and start of cycle packets. Payload of frame packets
and symbol packets is prepared and passed to the FlexRay dissector.
2021-11-16 21:28:54 +00:00
Jirka Novak ffd1f1cecf VoIP calls dialog: fix generated filter
New 'in { }' syntax requires comma between items so filter generator in
VoIP calls dialog must use it too.
2021-11-16 21:02:05 +01:00
Michael Tuexen 74d0c147a1 TCP Black Box Log: Fix and improve some fields 2021-11-16 17:17:34 +00:00
Jaap Keuter 5f7806a496 c-ares: move domain from haxx.se to its own .org
With c-ares release 1.18.0 the URLs were updated to c-ares.org.
Let's do the same.
2021-11-16 17:02:50 +00:00
Jaap Keuter 4f8e7f0d1c Add direct GitLab reference in GitHub PR lockdown text
Nothing more annoying than having to read a bunch of documentation, while
all you need is one fundamental piece of information: the right repo.
2021-11-16 16:47:09 +00:00
João Valverde 3c7894e2a0 dfilter: Add compilation result to log output
Add result output to console log, in addition to intermediate debug
information. This allows tracing the result using the log only.
2021-11-16 13:52:30 +00:00
João Valverde edf1e72d0c capture: Lower log level for debug output 2021-11-16 12:47:54 +00:00
João Valverde 75bb51eef9 dfilter: Clean up some debug statements, second try
Add just a console entry for check_test(), in a more compact
form.

Remove logging of the call chain. This was partially replaced by the
printout of the syntax tree.
2021-11-16 11:27:04 +00:00
João Valverde c4337d0dc5 dfilter: Give more context for regex error messages 2021-11-16 11:18:09 +00:00
John Thacker 18abdc3ebc ansi_map,ansi_tcap: Fix typos, comment out unused fields
Fix a couple of typos that referred to the wrong fields, and comment
out some unused fields.
2021-11-16 01:46:34 -05:00
John Thacker 4015aa954c TCAP,CAMEL: Always enable SRT and Counter stats
The Service Response Time stats for CAMEL (and TCAP, which must be
enabled as well) are reliable and not that processor intensive. They
should be always enabled, just like the SRT stats for other protocols.

This also makes things less confusing with regards to the CAMEL
opcode counter stats, which were only enabled if the SRT preferences
were also set, since they use the same tap.

Also remove a unused function declaration in a header.
2021-11-16 05:06:41 +00:00
Gerald Combs 5005a696e4 GitLab CI: Bump our minimum macOS Intel version. 2021-11-15 15:59:51 -08:00
Gerald Combs 4105d78681 GitLab CI: Switch the macOS Intel build to Qt 5.15.3. 2021-11-15 15:31:52 -08:00
Pascal Quantin 5c8969b5d7 Windows: add PCRE2 DLL to installers 2021-11-15 23:07:15 +01:00
Gerald Combs 6ee1390b86 Qt: Make Lua dialogs children of the main window.
Pass the funnel operations ID to new_text_window and new_dialog so that
we can assign parent widgets when we create new FunnelTextDialogs and
FunnelStringDialog. This should ensure that they're destroyed properly.
Ping #17590.
2021-11-15 20:03:16 +00:00
Gerald Combs 64275ff196 macOS: Update some comments in osx-app.sh. 2021-11-15 09:26:20 -08:00
João Valverde 14c52913e2 CMake: Improve a status message and add a comment 2021-11-15 16:36:17 +00:00
João Valverde aa1515b32b CMake: Fix typo 2021-11-15 16:36:17 +00:00
Martin Mathieson 8003096260 PDCP-LTE: add missing _lte to register function name 2021-11-15 12:50:37 +00:00
João Valverde 4403bd98d9 tools: Add MSYS2 setup script to install dependencies 2021-11-15 12:24:49 +00:00
João Valverde df968b5342 tools: Add Arch Linux setup script to install dependencies
This was intentionally kept simple (matches the philosophy of Arch).

In particular I wasn't so concerned about what is a required build
dependency and what is an optional build dependency to compile the
programs. I don't know why one would ever wish to skip installation
of non-essential library dependencies. But others are very welcome
to extend this intentionally barebones effort.

The script also adds an "--install-all" flag to install everything
at once. I keep forgetting the name of the other options.

I used the build optional flag to install packages required to build
documentation and so on. Ancillary stuff.
2021-11-15 11:25:29 +00:00
João Valverde c92e4ff7c6 wslog: Remove (part of) a special case for the default level
Instead of removing extra log information in the log handler
for the default log level, do it in the ws_message() macro.

This means ws_log_full() will work as expected.
2021-11-15 09:22:06 +00:00
João Valverde b30a2112e8 regex: Prefer C99/POSIX types
Replace 'gssize' with 'ssize_t'.

Add a CMake configure check for ssize_t.

Fix missing "config.h" includes.
2021-11-15 02:41:59 +00:00
Gerald Combs e5088eea4a Tools: Fix a typo in win-setup.ps1. 2021-11-15 01:24:08 +00:00
Gerald Combs e3159ae631 macOS: Add a workaround for libpcre2.
Work around an issue with libpcre2 similar to what we do for libsnappy
and libssh.
2021-11-14 17:06:38 -08:00
Georg Sauthoff d8e33efb3c Fix maybe-uninitialized warnings
When compiling the current wireshark master branch (with the default
project provided CFLAGS) on Fedora 35, GCC 11.2.1 prints a few
`-Wmaybe-uninitialized` warnings.

This change fixes those.
2021-11-15 00:05:05 +00:00
João Valverde 848f4f8e97 dfilter: Cleanup some debug statements
Reduce the verbosity a bit, even with "noisy" level,
and remove some extraneous new lines.
2021-11-14 23:22:42 +00:00
João Valverde b59980bbff regex: Add a diagnostic message
Add a debug log message if pcre2_match() errors out.

Minor optimization with the use of pcre2_match_data_create().

Minor cleanup.
2021-11-14 23:05:53 +00:00
João Valverde 9bdccce574 More workarounds for Debian 2021-11-14 21:00:59 +00:00
João Valverde 274531820a Move regex code to wsutil 2021-11-14 21:00:59 +00:00
João Valverde b9f2e4b7fa Make PCRE2 a required dependency 2021-11-14 21:00:59 +00:00
João Valverde 9df5279af7 dfilter: Remove support for GRegex
PCRE2 is mature, widely used and widely available. Supporting two
different RE implementations, one of which is unmaintained, is
unnecessary and counter-productive.
2021-11-14 21:00:59 +00:00
João Valverde ed8a02af17 dfilter: Add support for PCRE2
PCRE2 is the future of PCRE. The only advantage of GRegex is that
it comes bundled with GLib, which is not an advantage at all.
PCRE2 is widely available, the GRegex abstractions layer are not a
good fit and abstract things that don't need abstracting or that we
could handle better ourselves, there are open bugs (#12997) and
maintenance is spotty at best.

GRegex comes with many of the problems of bundled code, aggravated by
the fact that it completely falls outside of our control.
2021-11-14 21:00:59 +00:00
João Valverde 6630fd5260 wsutil: Rename ws_return_ptr_if_null() macro
Rename to ws_return_val_if_null() because the name needs to be more
generic to indicate it should be used to return any kind of value,
not just pointers.

Increase the log level to something more appropriate because failing
any of these checks is considered to be a programming error.

Add the faulty variable name to the output message.

Add the macro ws_return_val_if_zero() for completeness.
2021-11-14 20:58:14 +00:00
Michael Tuexen 6587debb3b tools: building pcre2 requires cmake.
So move it after cmake...
2021-11-14 20:57:29 +01:00
Michael Tuexen 2d7bc59fae tools: actually call install_pcre2 in macos-setup.sh 2021-11-14 19:35:33 +01:00
Gerald Combs d8429d2065 Tools: Add PCRE2 to our setup scripts.
Add PCRE2 to the base package list in our various setup scripts.
2021-11-14 17:53:36 +00:00
Gerald Combs 41a247287e [Automatic update for 2021-11-14]
Update manuf, services enterprise numbers, translations, and other items.
2021-11-14 16:39:31 +00:00
João Valverde 77fa0fb23d dfilter: Fixup unexpected end of filter error message
Fixes e7ecc9b9e5.
2021-11-14 15:33:56 +00:00
Graham Bloice 79ebce20c0 dnp3: Fix PVS-Studio warnings
Fix a couple of warnings, suppress some false positives
2021-11-13 22:52:09 +00:00
João Valverde b90e5cf0c7 dfilter: Restore debug syntax tree display
Restore the test stnode representation that was lost in 2db36f8ce0.
2021-11-13 21:23:28 +00:00
João Valverde 01d1cc492e dfilter: Add default case to switch 2021-11-13 11:39:32 +00:00
Gerald Combs a99e1b2099 Tools: Switch a bunch of macos-setup URLs to HTTPS. 2021-11-12 21:25:48 +00:00
Guy Harris 6d96d8bbc2 Don't include config.h in the example plugin.
Wireshark's config.h isn't available to third-party plugins, and the
developers of the plugin might not even have their own config.h, so
don't include it in the example (if it *does* have its own config.h, the
developers will presumbly know that they should include it).
2021-11-12 12:53:21 -08:00
Guy Harris 2445180fa7 Don't use HAVE_CONFIG_H in sample code in the documentation.
We require config.h and don't define HAVE_CONFIG_H - it should *always*
be included.
2021-11-12 11:23:06 -08:00