Commit Graph

86808 Commits

Author SHA1 Message Date
Gerald Combs 171dbd6ea8 Docs: Rename our guide source files
Rename the various "WSUG_" and "WSDG_" files to wsug_ and wsdg_
respectively. Remove the "chapter" and "app" parts from the filenames as
well.
2023-01-30 20:05:06 +00:00
Gerald Combs 27d5925b39 Docs: Prepare to lower-case some file names.
Prepare to lower-case GPL_appendix.adoc, WSDG_preface.adoc, and
WSUG_preface.adoc.
2023-01-30 20:05:06 +00:00
Brendan Meath 4d92967b74 Fix order of CAG only flag descriptions. 2023-01-30 18:05:14 +00:00
Holger Jeromin 910a21a57a fix mimimum typo in comment
Came from https://datatracker.ietf.org/doc/html/draft-ietf-6man-mtu-option-02 but RFC 9268 is fixed, too.
2023-01-30 15:06:00 +00:00
John Thacker 67a01bdf26 wiretap: Preserve NRBs with editcap, mergecap, and tshark
Use a pointer to the growing array of NRBs from the source
file, as with DSBs, so as to handle reading NRBs in the middle
of a file in one-pass mode.

Write NRBs when reading a file with editcap, or in tshark when
not dissecting packets and writing our own NRB. Continue not
to write the NRB if we're supplying our own list of address info
instead.

If we have already read the entire source file in (such as in
two-pass tshark), move all the NRBs to the beginning of the file
before packets, as done with DSBs.

When merging files with mergecap, write both sets of NRBs. (There
is no attempt to merge the NRBs by looking for common entries.)

Check for name resolution data in the middle of dumping a file,
not just at the end, and check for DSBs at the end of a file,
after all the packets. This means that Wireshark no longer writes
the NRB at the very end of the file after all the packets (which
is worse for future one-pass reads), and DSBs after all packets
are preserved.

Ping #15502
2023-01-30 13:29:49 +00:00
Mathis Marion 3ff9f075c6 Update ICMPv6 dissector with ND EARO status
See https://www.rfc-editor.org/rfc/rfc8505#section-4.1 Table 1
2023-01-30 13:28:52 +00:00
Mathis Marion 7908dfd930 Update ICMPv6 dissector for ND EARO
RFC 8505 introduces the Extended Address Registration Option (EARO)
which uses some previously reserved fields from the Neighbor Discovery
Address Registration Option (ARO) defined in RFC 6775.

https://www.rfc-editor.org/rfc/rfc8505#section-4.1
https://www.rfc-editor.org/rfc/rfc6775#section-4.1
2023-01-30 13:28:52 +00:00
Martin Mathieson aa31a1b405 GREBonding: fix type in vals for link type 2023-01-30 13:11:15 +00:00
Martin Mathieson efe35a4ccc Fix or suppress more warnings from check_typed_item_calls 2023-01-30 10:28:24 +00:00
Jim Walker d085725bb6 Couchbase: update snapshot flags for change streams
Two new flags maybe generated by couchbase DCP

* history 0x10
* may contain duplicates 0x20

Change-Id: Ic8c377fd1a5e7dc65453a779a1a36a94283a64ed
2023-01-30 08:24:17 +00:00
João Valverde 7a346c398a Enable rpathification and working relocation on Linux
Dumpcap depends on wsutil.so. The path to the shared library
is encoded in the RPATH (or RUNPATH) property of ELF binaries.
This is currently an absolute path on most Unixy systems.

Dumpcap could not be made to work with a relative RPATH because it
uses elevated privileges and some loaders will ignore relative
RPATHs and non-standard paths under those circumstances, because of
(justified) security concerns.

To enable relocation of the program we link dumpcap statically
with wsutil instead.

This provides a fully working relocatable installation on Linux
and other platforms that support relative RPATHs.
2023-01-29 23:38:00 +00:00
João Valverde 43e530e94d Update msys2-setup.sh 2023-01-29 22:08:47 +00:00
João Valverde 62005a7e20 GitHub: Switch MSYS2 build to UCRT64 2023-01-29 22:07:43 +00:00
João Valverde 80a35f632e GitHub: Build MSYS2 commit SHA
The PKGBUILD always builds the tip of the master branch. Try to
allow selecting a commit using $PKG_COMMIT.
2023-01-29 22:07:43 +00:00
Martin Mathieson 1de8882cc3 Fix some too-short item lengths 2023-01-29 20:43:00 +00:00
Gerald Combs b8f0d17af9 wsutil: Filesystem routine updates.
Make sure init_plugin_dir and get_doc_dir uses the same logic as
get_datafile_dir. Update each so that the xxx_DATA_DIR and
xxx_PLUGIN_DIR environment variables take precedence.

CMake's ENABLE_APPLICATION_BUNDLE determines whether or not we're using
an application bundle layout, so check for it instead of __APPLE__.
2023-01-29 20:35:18 +00:00
Gerald Combs 75742c81b6 macOS: Copy our top-level .pkgs instead of symlinking them
Make copies of our top-level packages instead of symlinking them. Blind
attempt at fixing #18830.

Switch to UDZO for our application disk images as recommended in
https://developer.apple.com/forums/thread/128166

[skip ci]
2023-01-29 18:54:50 +00:00
Gerald Combs 620dc806db [Automatic update for 2023-01-29]
Update manuf, services enterprise numbers, translations, and other items.

services failed.
2023-01-29 18:53:10 +00:00
Martin Mathieson 407b707e1f check_typed_item_calls: filter out some false positives 2023-01-29 18:39:20 +00:00
Tomasz Moń 516c69b921
Qt: Allow caching columns while dissecting color
It is fine to dissect and cache columns data during color dissection if
it won't evict already cached data. There is rather high probability of
using the column data because color information is dissected in order.
2023-01-29 10:39:06 +01:00
Alexis La Goutte ac64be57c0 MONGO: add BSON Element Decimal128
Close: 18791
2023-01-28 21:12:45 +00:00
João Valverde 60f3e33849 MSYS2: Remove packages that were upstreamed
Remove dependency packages that are now upstream.

Update PKGBUILD dependencies and README.
2023-01-28 15:39:52 +00:00
Tomasz Moń e7d5c49fe1
epan: Use hash table for dependent frames
Dependent frames list order does not matter and thus significantly
faster data structure can be used. Replace the list with hash table to
avoid excessive CPU usage when opening files containing reassembled
packets consisting of large number of fragments.
2023-01-28 15:17:42 +01:00
Tomasz Moń 5e3d77761b
USBLL: Do not reassemble across reset boundary
Invalidate endpoint info on SET ADDRESS to prevent reassembly and/or
retransmission detection across reset boundary.

Leave endpoint info intact when assigning default address (0) to avoid
issues related to unknown control endpoint max packet size. Only control
transfers are allowed to address 0 so this should pose no issues.
2023-01-28 10:54:40 +01:00
David Fort bb8d183387 rdp_egfx: improve command parsing and packet browsing 2023-01-27 23:18:23 +01:00
David Fort bc40c57b82 rdp: fix zgfx decompression
This fixes a decoding error when the packet is not compressed.
2023-01-27 23:18:23 +01:00
Jorge Mora dbf5bf27d3 NFS: add NFSv4.1 CB_RECALL_ANY operation
Add support for CB_RECALL_ANY operation as given in the following:
RFC 5661 Network File System (NFS) Version 4 Minor Version 1 Protocol.
RFC 8435 Parallel NFS (pNFS) Flexible File Layout.

    Opcode: CB_RECALL_ANY (8)
        Objects to keep: 0
        Number of masks: 1
        Type mask: 0x00000001 (Read Delegation)
            Type: Read Delegation (0)
2023-01-27 11:17:15 -07:00
Guy Harris b4ef671fba Clean up some man pages.
Consistently speak of "UNIX-compatible systems" when comparing UN*Xes
and Windows, and, the first time we mention "UNIX-compatible systems" in
a section or a list item, enumerate the not-dead-or-moribund ones.
(HP-UX is deemed moribund given that Itanium processors are no longer
being manufactured and HPE are apparently not porting HP-UX to x86-64,
choosing instead to run HP-UX Itanium applications in a compatibility
environment under Linux on x86-64.)

For the -D option, don't bother mentioning ifconfig -a or ip link show,
as there's no reason not to use -D if you want to know what you can
caputre on - for one thing, -D may list devices *other* than the network
interfaces listed by ifconfig -a or ip link show.  In addition, don't
speak of code testing whether the interface can be opened, as recent
versions of libpcap don't check that, and neither do any of the programs
in the Wireshark release.  (This was done so that, if there's an
itnerface that shows up in the enumeration but that can't be opened,
it'll be offered to the user, and they'll get a message if they try to
capture on it, indicating either that they need to somehow get the
necessary permissions or should report a bug.)

For the -i option, don't mention ifconfig -a or ip link show, as the
user should, again, use -D.

Give more detail when describing files and directories under the global
or personal preferences directory, calling out macOS specially for the
global preferences directory, as it's in the app bundle, and taking into
account that Wireshark might be installed under /usr rather than
/usr/local (for example, if it's installed from a package that's part of
a Linux distribution).

Replace the "Overrides XXX' description of some environment variables
with a more verbose description similar to what's used for other
environment variables.
2023-01-26 22:55:49 -08:00
Ryan Doyle 48fa729a9c HTTP2: Track the frame the request/response is contained in
Similar to the HTTP dissector, link between the frames that contain the request
and response.
2023-01-26 19:37:34 +00:00
João Valverde abdaed1103 Add support for configuration path relocation on Unix
Get the installation prefix from the program dir. We have code
to obtain the directory where the executable resides for all
platforms we support, Linux, BSDs, Apple, etc.

On less well-known platforms where this isn't true (POSIX does not
define any standard interfaces for this) we fallback on
using a hard-coded installation prefix, like we have been doing
until now.

The path relocation allows the whole installation tree to be moved
without having to recompile the program. But note there are other
requirements for shared libraries to have full support for relocation.
This is only partial support.

We now use a header to pass the relative path definitions to avoid
excessively long compilation command lines as the number of #defines
increases.
2023-01-26 18:43:20 +00:00
David Perry db010b5a27 Exported PDU dissector improvements 2023-01-26 18:02:23 +00:00
Martin Gallo ef2ea2acdd saprouter/saphdb: Fixing warnings due to multiple hf types
Fixed feedback from !9581
2023-01-26 09:12:53 +00:00
John Thacker 0d2a2d3777 wiretap, pcapng: process all initial internal blocks in pcapng_open
pcapng allows multiple link-layer types, and allows new link-layer types
in the middle of a file. Many (most) other capture types allow a single
link-layer type, which must be specified in the initial header.

When reading files and writing their contents to another file (which
may be of a different type), many programs using the wiretap API want
want to know the link-layer type upon initially opening the source
file, so that they can check if that encapsulation can be written to
the output file, and so that they can write the output file header.

They should be able to wait until a link-layer type is seen before
creating the output type, but don't. (Wireshark reads the entire file
in intially, so this isn't a problem, but that isn't much of an option
for some command line tools, particularly when operating on a pipe or
FIFO.) Note that regardless, if a new link-layer type is encountered
partway through a file, they would still have to fail in the middle
of reading and writing.

However, to make this a little bit easier for such file types, pcapng
block types that are handled strictly internally and not passed back
to the reader can be processed initially in pcapng_open(). (Note
that for DSBs and NRBs, any blocks processed in pcapng_open() will
automatically be sent to the callbacks when the callbacks are added
later.) Previously we just processed all the IDBs immediately after
the initial SHB, instead of all the internal block types.

Fix #18581. Ping #15502.
2023-01-26 05:17:50 +00:00
Samuel Wein 260f835eef Added Deutsche Telekom specific GREBonding dissection 2023-01-25 19:59:06 +00:00
Martin Gallo 48737e2983 SAPDIAG: Added SAP Diag as main dissector
Added the SAP Diag dissector protocol from [SecureAuth's plugin](https://github.com/SecureAuthCorp/SAP-Dissection-plug-in-for-Wireshark/blob/master/src/packet-sapdiag.c).

This is a dissector that implements the Diag protocol. Decompression of packets is not considered as this requires the proprietary LZC/LZH decompression routines still pending to be added in #8973. The Diag packets can be wrapped in an SNC frame, in which case the respective dissector is called. Embedded RFC calls are disabled as this requires the respective dissector to be found, which will be submitted in a separate merge request.

Details about the protocol and example requests can be found in [pysap's documentation](https://pysap.readthedocs.io/en/latest/protocols/SAPDiag.html).
2023-01-25 17:06:27 +00:00
Martin Mathieson b1b180fd9e Fix some spelling errors. 2023-01-25 10:52:18 +00:00
Martin Gallo 13b6063d27 SAPRouter: Adding found passwords to the credentials tap
Adding info and route string passwords to the 'credentials' tap to find them easily.
2023-01-25 09:07:44 +00:00
Daniël van Eeden f0a066dd0d MySQL: Try to handle converstations w/o caps
If the server greeting and login packets weren't part of the captured packets we assume various capabilities were not set. This MR tries to make a better guess in those cases to allow dissection to work in most cases.
2023-01-25 06:57:27 +00:00
Mokhtar Ben Messaoud 9c3ce8e371 ieee1905: Update Profile-2 AP Capability TLV
update r2_ap_capa_flags (epan/dissectors/packet-ieee1905.c):
    - rename
        - hf_ieee1905_basic_service_prio_flag ==>
                    hf_ieee1905_ctag_service_prio_flag
        - hf_ieee1905_enhanced_service_prio_flag ==>
                        hf_ieee1905_dpp_onboarding_flag
    - add new flag hf_ieee1905_traffic_separation_flag:0x08
        used by r2_ap_capa_flags
    - update hf_ieee1905_r2_ap_capa_flags_reserved:0x07

as defined by Wi-Fi EasyMesh™ Specification Version 5.0 :
                17.2.48 Profile-2 AP Capability TLV format
2023-01-25 06:12:43 +00:00
David Perry 50a3524fbf wiretap: treat file extensions case-insensitively 2023-01-24 19:44:08 +00:00
Daniël van Eeden 0ba90d1249 MySQL: Reduce noise related to length encoded ints
Length encoded integers were:
- Reported as `mariadb.prefix` and `mariadb.length` but were not specific to MariaDB specific protocol features.
- These were reported in the UI as "Length" and "Prefix" and were in many cases the same as 1 byte integers are very common.
- These were often duplicating things like `hf_mysql_connattrs_length`, `hf_mysql_connattrs_name_length`, etc which meant that the same length was often reported 3 times in the interface.
2023-01-24 17:43:06 +00:00
Dr. Lars Völker 2d2528cc2f UDS: Support OBD Services in UDS Service Error
Since OBD uses the UDS Service Error, it needs to resolve the OBD
Service IDs too.
2023-01-24 14:16:07 +00:00
Dr. Lars Völker cf3d5fad5a UDS: Fix Typo in Error Service
The response code is short NRC, while SID is the Service ID.
2023-01-24 13:11:35 +00:00
Martin Mathieson 32d80bd54e check_typed_item_calls.py: change re for calls to allow ws before params 2023-01-24 12:23:43 +00:00
Daniël van Eeden 8ec198c272 MySQL: Decode caching_sha2_password packets 2023-01-24 09:51:12 +00:00
Chuck Craft 06fc6483b3 twamp: test mbz fields are FT_UINT16 2023-01-23 20:16:54 -06:00
Daniël van Eeden 2691f87ef9 MySQL: Fix warning about incomplete dissector 2023-01-23 19:19:11 +00:00
Martin Mathieson 0d8f9f908a ORAN FH CUS: Update some vals[], and add subtree for bfwCompHdr 2023-01-23 15:09:58 +00:00
Alexis La Goutte 4d5a6e5c4a SMB2: Fix typo
Lock Sequence Number => Lock Sequence Index
2023-01-23 13:31:16 +00:00
Mokhtar Ben Messaoud 0b47fde866 WPS: Multi-AP Extension subelement: Profile 1/2 Backhaul STA assoc disallowed
Parse Multi-AP Extension subelement flags:
	- Profile-1 Backhaul STA association disallowed.
	- Profile-2 Backhaul STA association disallowed.
defined by Wi-Fi_EasyMesh_Specification_v5.0.pdf / Table 14
2023-01-23 11:28:54 +00:00