88887 Commits

Author SHA1 Message Date
lemur117
54b19db4ee TS32.423: Fix dissector for various formats 2023-09-26 06:53:56 +00:00
Moshe Kaplan
f8d48d04d5 Fix misppellings in root and ui directories
Fix misppellings in root and ui directories.
Most of these are comments, but some are in
error messages.
2023-09-26 00:26:25 -04:00
Jaap Keuter
15e753136e iperf3: Rework UDP loss/out-of-order detection 2023-09-26 00:53:02 +00:00
Gerald Combs
df391e6f5f WSDG: Update the automated builds section 2023-09-25 12:02:17 -07:00
Gerald Combs
3b4e8ee396 Version: 4.1.1 → 4.3.0
[skip ci]
v4.3.0rc0
2023-09-25 11:32:09 -07:00
John Thacker
eb539196a9 CMake: Allow spaces in build dir
Quote the path name variables in -fmacro-prefix-map so that source or build
directories with spaces work when compiling with recent gcc or clang.

Fix #17487 (LocatePythonModule was removed recently so that doesn't
need fixing.)
2023-09-25 11:30:40 +00:00
Gerald Combs
a8c9a4b976 wsutil: Clean up some includes
Clean up some includes after 8285a9775f.
2023-09-25 01:20:37 +00:00
John Thacker
4d03e061ee merge: Try to raise the soft limit of open files on UN*X
If get an EMFILE on UN*X, try to raise the soft limit for the
number of open file descriptors if it's less than the hard limit.
Raise it to the minimum of what we need and the hard limit.

On macOS before Big Sur, you can't always raise the soft limit to
the current hard limit as returned by getrlimit, because that can
be set to, e.g., RLIM_INFINITY even when there's an effective lower
limit set by kern.maxfilesperproc on sysctl (Mojave to Monterey)
or the possibly lower fixed limit OPEN_MAX (10240) from Leopard
until some version before Mojave.

Use a workaround for this based on some from Wine.
2023-09-24 21:22:16 +00:00
John Thacker
c207041da6 merge: Allow unlimited number of files
merging is embarrassingly parallel, so long as we preserve ordering
when merging intermediate results, so we can process files in
batches if we hit RLIMIT_NOFILE and have the same output[1] we would
otherwise.

[1] One minor exception is in the SHB comments, but currently those aren't
written properly anyway. Another minor exception is that the ordering
of addresses within the NRBs can vary (be reversed), but both of these
are underlying issues, not having to do with the algorithm of batch
processing and merging.

Wireshark currently supports merging lots of files at once through
drag and drop, but not through the File->Merge dialog; we might
want to change the latter.

Fix #17598
2023-09-24 21:22:16 +00:00
Martin Mathieson
a6c406d718 check_tfs: ignore #if 0 ... #endif region as comment 2023-09-24 21:20:58 +00:00
Guy Harris
f5d5aa419f wtap_opttypes.h: remove an unnecessary incomplete structure declaration.
struct wtap_dumper is not used in this header, so no need to define it.
2023-09-24 13:32:25 -07:00
Jaap Keuter
0b1a6a1c9b iperf3: dup the cookie before putting it in the jar 2023-09-24 19:24:49 +00:00
Gerald Combs
1fcd5e3b4b [Automatic update for 2023-09-24]
Update manuf, services enterprise numbers, translations, and other items.

services failed.
2023-09-24 19:05:50 +00:00
Gerald Combs
8285a9775f Convert wsutil to C99 types
Ping #19116
2023-09-24 19:05:10 +00:00
Gerald Combs
c8a725e54e epan: Convert the UAT API to C99 types
Ping #19116
2023-09-24 19:04:40 +00:00
John Thacker
6738a873b3 Qt: Store Show Packet Bytes settings in recent
Store the Show Packt Bytes "Decode As" and "Show As" settings in
recent.

The options for "Show as" for Show Packet Bytes are a superset of the
"Show data as" for Follow Stream, and they're conceptually doing
the same thing. Use the same enum for both - Follow Stream doesn't
support all these options, but maybe it should in the future.

To do this, we break the strict correspondance between the index
in the respective comboboxes and the value of the enum. Use
findData when setting the current index so that this doesn't matter;
this also keeps us from having to be as strict about keeping new
entries in alphabetical order.

Fix #17796
2023-09-24 13:37:31 -04:00
Martin Kaiser
25aaafc336 ansi-map: fix check_tfs errors
check_tfs.py brings up two errors about open coded true_false_string
variables where existing global ones could be used.

Error: epan/dissectors/asn1/ansi_map/packet-ansi_map-template.c
   ansi_map_Odd_Even_Ind_bool_val - could have used tfs_odd_even
   from tfs.c instead:  {"Odd", "Even"}

Error: epan/dissectors/asn1/ansi_map/packet-ansi_map-template.c
   ansi_map_ConfidentialityModes_bool_val - could have used tfs_on_off
   from tfs.c instead:  {"On", "Off"}

Fix these errors by using the recommended tfs.

ansi_map_Odd_Even_Ind_bool_val is already unused and commented out, it
seems that check_tfs.py can't detect this.

This will hopefully fix the pipeline failures in !12239.
2023-09-24 18:28:55 +02:00
João Valverde
43fd777dcd Fixup "void *" pointer declaration style 2023-09-24 15:04:24 +01:00
João Valverde
2704f1b334 Tests: Fix default option argument 2023-09-24 12:37:42 +00:00
Manawyrm
768c03df06 x75: Add dissector for X.75 SLP/MLP
This change adds a dissector for the X.75 protocol,
commonly used on ISDN B-channels.

The protocol is defined in ITU-T Rec. X.75 (10/96).

X.75 is similar to LAPB, but has no further protocols on top
of the asychronous link layer.
2023-09-24 12:12:13 +00:00
Jaap Keuter
4c3660798e UCI: Fix dead code, or rather, handle specific notification (CID 1524689) 2023-09-24 11:23:36 +00:00
João Valverde
babd5d9505 CI+Tests: Don't block on failed assertions
Respect the "never" in LOG_CONSOLE_OPEN_NEVER.
2023-09-24 10:55:35 +00:00
João Valverde
49b2039e09 GitLab CI: Use debug build type with merge requests
Try to run our merge requests in Debug mode to make sure the
test suite has the best chance of catching any issues.

This means we no longer have a Release build. This build was intended
to catch warnings that only appears with -O3 optimization level.
It seems to have been successful at that. If that becomes an issue
again we may want to add a new job with a Release type build.

This should help catch more runtime errors and assertions that
sometimes slip through the cracks (and may also be related with recent
changes to the build configuration) and should be easily caught in
the tests.
2023-09-24 10:55:35 +00:00
Guy Harris
eb19d08413 Improve a comment.
Note that the WTAP_OPTTYPE_ values don't correspond to particular
options, they correspond to data types for options (some options
correspond to options with structured types defined in the pcapng
specification, but most correspond to generic types). I needed to remind
*myself* of that, so I'm adding it for the benefit of others.
2023-09-24 08:50:36 +00:00
Jaap Keuter
dd78c2f08a ftypes: Fix hash calculation to use 128 bits of the address (CID 1524736) 2023-09-24 07:51:00 +00:00
Alexis La Goutte
b550f82167 ieee1905: Fix wrong tfs for BSS Configuration Report TLV
Closed: #19352
2023-09-24 07:16:58 +00:00
Jaap Keuter
1db39f8775 Stats: uninit class members (CID 1541110) 2023-09-24 06:32:02 +00:00
Gerald Combs
54e729fe6c Convert epan/dfilter to C99 types
Ping #19116
2023-09-24 06:26:10 +00:00
Alexis La Goutte
ed78778eda VMware: Add HeartBeat protocol
Using UDP 902 Port
2023-09-23 19:45:44 +00:00
Martin Kaiser
af66f07bed x509ce: value string for CI+ scrambler capabilities extension
The CI+ scrambler capabilities extension is a sequence of two elements.
Add a value string for the "capability" element in this sequence.

In the .TYPE_ATTR section, a sequence element must be addressed as
<sequence name>/<element name>. The generated header field for capability
is an FT_UINT64, we need a 64-bit value string.
2023-09-23 19:32:48 +00:00
Jaap Keuter
dc47e15873 iperf3: add dissector support
iPerf3 is quite different from iPerf2 and so requires its own dissector.
Recognizes "control connection" messages (session cookies, connection
request refusal, etc) and data (labeled with its length, UDP messages
have their sequence number parsed)

It registers with TCP and UDP port 5201, which is unused by any other
dissector in Wireshark.
2023-09-23 20:21:59 +02:00
Gerald Combs
6a4350a1b5 GitLab CI: Enable color output in pytest
Move the Homebrew color variable to the global section.
2023-09-23 17:54:25 +00:00
Gerald Combs
ba18ad9bb7 Logray: Add recent software update changes
Bring the logray code in line with 35fb3c94e5.
2023-09-23 10:12:50 -07:00
Jaap Keuter
71d1a90dec IEEE80211: fix dead code ext_request expert (CID 1541037) 2023-09-23 16:27:14 +00:00
Dr. Lars Völker
e583814f0f SOME/IP: SOME/IP-TP shows wrong flag value (BUGFIX) 2023-09-23 16:14:13 +00:00
Jaap Keuter
ad140e5e14 Qt: uninit class member in constructor (CID 1530129) 2023-09-23 15:32:55 +00:00
Hiddencodes Sec
e57c34d845 DCERPC: Add dissector for IWbemLevel1Login Interface 2023-09-23 13:32:14 +00:00
John Thacker
fb18a7ada1 SMPP: Add dissection over TLS
Add SMPP to Decode As for TLS, and as a TLS heuristic dissector.

Fix #19353
2023-09-23 11:27:33 +00:00
John Thacker
1839374fc8 tshark: Add UTF-8 output mode to the follow tap
Add "utf-8" as an output mode to the follow tap for tshark.
This produces the same output that the Qt version does (passing
through all valid UTF-8, including control codes and internal
NULs, substituting illegal UTF-8 sequences with REPLACEMENT CHARACTER,
and not handling UTF-8 sequences split between unreassembled frames),
except for some differences which are common to how the tshark
and Wireshark Follow output differs for ASCII and EBCDIC as well:

Tshark includes additional header information and a line length
before each section of output, and leaves end-of-line terminators
untouched; Wireshark, due to the use of Qt code, automatically
translates end-of-line terminators to a LF (including from, e.g.
HTTP), except in "raw" mode. Neither tshark nor Wireshark write
in text mode, i.e. translate end of line terminators to a platform
specific CRLF on Windows.

Related to #19280
2023-09-23 11:11:49 +00:00
Guy Harris
1fb90793f5 Work around stub routines in macOS 14 (Sonoma) libpcap.
Some routines that are built only if libpcap 1.10.x is built with remote
capture support, but that are unconditionally declared in pcap/pcap.h,
now have stub implementations in macOS 14 that always fail and set the
error string to "not supported".  (This was probably done because those
routines are now declared as "weakly linked symbols":

https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html

om macOS 14.)

This means CMakeLists.txt finds them when you build on Sonoma, so we end
up calling them.

The only place where we didn't arrange that we *only* use them if the
device name begins with rpcap://, indicating that it's a remote-capture
URL, was the code in dumpcap that produces packet counts for the
sparklines in the Wireshark main screen.  That meant that all opens
failed, and dumpcap reported that failure to Wireshark, so no sparklines
were drawn.  Check for rpcap:// in that case as well, and use
pcap_open_live() if it's not present.

For all code that calls the routines in question, if the any of the
routines in question fail, check for an error string of "not supported",
and replace it with "Remote capture not supported", so as to make the
cause of failure clearer.

Fixes #19349.
2023-09-23 00:36:03 -07:00
João Valverde
0b04002294 dfilter: Add warning for value strings without double quotes
Value strings without quotes are prone to semantic confusion
with protocol names or reserved keywords.

Add a deprecation warning in preparation for removal in future
releases.
2023-09-23 05:31:20 +00:00
João Valverde
4405e99c09 Docs: Tweak a sentence to follow from the previous paragraph 2023-09-23 05:29:48 +00:00
João Valverde
03fc873a5e Docs: Add XOR to filter manpage 2023-09-23 05:29:48 +00:00
João Valverde
a2af3537f3 DHCPv6: Fix failed dissector name assertion
** (wireshark:679756) 06:07:11.959336 [Epan ERROR] epan/packet.c:3365 -- register_dissector_handle(): dissector handle name "dhcpv6" is already registered
    ** (wireshark:679756) Aborting on fatal log level exception

Fixes 9b83efb8e1a088003d9d5421d362fa3572218648.
2023-09-23 06:11:43 +01:00
João Valverde
eeddad8f58 epan: Rewrite an assertion on dissector handle names
Avoid an extra hash table lookup.

Requires GLib >= 2.40.
2023-09-23 06:11:31 +01:00
Gerald Combs
b732578455 wsutil: Convert string modules to C99 types
Ping #19116
2023-09-22 17:27:35 -07:00
Gerald Combs
bc3d35cef4 Convert epan/ftypes to C99 types
Ping #19116
2023-09-22 23:43:06 +00:00
Gerald Combs
74222933f7 Debian: Add a missing symbol 2023-09-22 16:25:39 -07:00
Niels Widger
4585479ab0 sharkd: add hosts tap
Add `hosts:` tap to `tap` method of `sharkd` which returns a list of
resolved hostnames found in the capture file, thus providing the same
information as `tsharks -z hosts`.  The `hosts:` tap accepts an
optional list of comma-separated protocol names `ipv4`, `ip` (synonym
for `ipv4`) or `ipv6`.  For example, `hosts:ipv4` returns only IPv4
hosts, `hosts:ipv6` returns only IPv6 hosts and `hosts:ipv4,ipv6`
returns both IPv4 and IPv6 hosts.  If no protocol names are
given (i.e. if the request is just `host:`), both IPv4 and IPv6 hosts
are returned.  In the response, IPv4 and IPv6 hosts are returned in
separate `ipv4_hosts` and `ipv6_hosts` arrays containing objects with
`name` and `addr` fields.  Both arrays are sorted by the `name` field
of each object.
2023-09-22 20:52:19 +00:00
Gerald Combs
c7c58ea4f8 Tools: Add a comment about aqtinstall to macos-setup 2023-09-22 11:14:15 -07:00