Commit Graph

77347 Commits

Author SHA1 Message Date
Anders Broman e8d770f3c7 GTpv2: MM Context, handle new data.
Change-Id: I01c7f6e6dd1beb7f5df34e795ace437c89120545
Reviewed-on: https://code.wireshark.org/review/36312
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-06 15:05:54 +00:00
Stig Bjørlykke b31e9f3e20 wsp: Remove lwm2m.dm length check
Remove length check when detected x-wap lwm2m.dm because the CoAP
message is not always 15 bytes.

Change-Id: Ib1e58a997a906a6723abae6f86fe4306bd5061c6
Reviewed-on: https://code.wireshark.org/review/36310
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-06 14:38:48 +00:00
Mark Vitale a58b398461 rx: display rx-ack reason string
There are many reasons for an Rx ack packet; add the reason string to
the info column.

Change-Id: I7512fcff0a9eda2def20f8194cb5ca804497a4dc
Reviewed-on: https://code.wireshark.org/review/36293
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-06 04:00:14 +00:00
Mark Vitale 3c91b1b533 rx: correct erroneous comment
This /* kvno */ comment was clearly residual from a cut-n-paste.
Update it to reflect reality.

No functional change is incurred by this commit.

Change-Id: I34b65c1f9b6f8e6f11f17f1647303d75df1d2df1
Reviewed-on: https://code.wireshark.org/review/36292
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-06 03:59:29 +00:00
Gerald Combs e0a7190e41 WSDG: Add a note about the VC++ redistributable MSMs.
Change-Id: I895d43896940f044391589138b8169e206d8248c
Reviewed-on: https://code.wireshark.org/review/36306
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2020-03-05 23:57:35 +00:00
Alexis La Goutte 480deb2eec QUIC: Add missing extension link (Delayed ACK, Loss Bit)
Change-Id: Ic903f41c2d6696eab96186b95c82a6287b3cfee6
Ping-Bug: 13881
Reviewed-on: https://code.wireshark.org/review/36265
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2020-03-05 23:46:24 +00:00
Gerald Combs ac09d33468 WSUG: Use our full signging organization name.
Windows installers are signed by the "Wireshark Foundation, Inc."

Change-Id: I69881faccaf6345c25d8e106e3dbb96bdc302599
Reviewed-on: https://code.wireshark.org/review/36302
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-03-05 21:14:52 +00:00
Joakim Karlsson 64ad0a85c6 pfcp: print Predefined Rules as ascii if possible
Change-Id: I62d5ee7eb0171132f0905e5fbaf663f5a161dcff
Reviewed-on: https://code.wireshark.org/review/36291
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-05 18:53:58 +00:00
Günther Deschner 548a08cadc DCERPC: Regenerate autogenerated CLUSAPI dissector.
Guenther

Change-Id: I4275013934deaf4d0c296c633ac556a47392385e
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-on: https://code.wireshark.org/review/36290
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-05 18:53:46 +00:00
Günther Deschner cc39bc8495 DCERPC: refresh clusapi idl after various additions were made to the protocol
Guenther

Change-Id: Id946862c10cd81709f92eb14a4d8d603ef1121cb
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-on: https://code.wireshark.org/review/36289
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-05 18:53:38 +00:00
Mike Ryan caed4ae2a8 Bluetooth: fix Flow Specification HCI Command
The existing dissector does not extract the "Flow Direction" field,
leading to incorrect decoding of all subsequent fields and incorrect
warnings about additional data being present at the end of the packet.
This patch extracts the one byte field and provides human-readable
representations of the legal field values.

Change-Id: Iba69eb7265e0589744721eaff07143b638b71168
Reviewed-on: https://code.wireshark.org/review/36275
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-05 17:18:26 +00:00
Stig Bjørlykke 86337a8e69 Qt: Don't hijack Ctrl+C for copy packet list entry as plain text
Don't hijack Ctrl+C / Cmd+C for copy Packet List entry as plain text
in the main window because this will affect using this shortcut in
other dialogs.

Ctrl+C will now copy the selected row in the Packet List (without
the headers), or the selected entry in the Packet Details, and it
also works correctly in other dialogs.

This was introduced in gb3f240dbf8.

Change-Id: I99d87f49c436a6dbf98e51d638a09c15a18bcc72
Reviewed-on: https://code.wireshark.org/review/36280
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-05 17:17:26 +00:00
Anders Broman b7996de371 NAS-5GS: PDU session reactivation result error cause wrong offset used.
Change-Id: I16001d96f69ab3256ae229f629a1969ca42dadc4
Reviewed-on: https://code.wireshark.org/review/36285
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-05 08:18:27 +00:00
Anders Broman 6e9e51e49c Revert "gitlab-ci: upgrade to Clang 10"
This reverts commit fbe9d7f4b4.

Change-Id: If7a3ae53c434bf5fe90a41ea56a1e8be958b1f55
Reviewed-on: https://code.wireshark.org/review/36286
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-05 08:18:08 +00:00
Jambukumar Kulandaivel bdf793d641 ieee80211: Add additional field to fixed parameter.
Includes DMG parameter, Spectrum management and Radio measurement
fields to DMG parameter whenever it is transmitted by a DMG STA/AP.
These fields were added in 802.11ad-2012 Spec.

Change-Id: I56356b804703251981772499534e029a324766df
Signed-off-by: Jambukumar Kulandaivel <jambukumar@codeaurora.org>
Reviewed-on: https://code.wireshark.org/review/36276
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-03-05 04:52:09 +00:00
Peter Wu fbe9d7f4b4 gitlab-ci: upgrade to Clang 10
Requires an updated wireshark/wireshark-ubuntu-dev image:
https://github.com/wireshark/wireshark-ubuntu-dev-docker/pull/2

Change-Id: Iee869a44cede6152a2f7927735a74b0bb89bef60
Reviewed-on: https://code.wireshark.org/review/36283
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-05 04:46:15 +00:00
Peter Wu 6bb691189c gitlab-ci: remove unnecessary jobs, upgrade versions
The point of testing multiple compiler versions is to catch bugs that
only occur in one particular version. After an analysis of 800+ failed
builds, it appears that a lot of the checks are redundant. Changes:

* Drop GCC 6 and keep GCC 5, Ubuntu 16.04 default GCC is 5.3. Fixes for
  warnings in old compilers: commit 829d2c3752 (GCC 5 + 6), commit
  e451ea0a4d (Clang 5, GCC 4 + 5). Maybe GCC 5 can also be dropped since
  Ubuntu 18.04 is around for a while.
* Drop clang-nopcap, all errors caught by Clang were also caught by GCC.
  One change caught by gcc-8-nopcap but not Clang: commit 036c3d6bc7.
* Remove Clang 5: even though it triggers some unique failures, no major
  distro ships with it so remove it.
* Drop old Clang versions, newer versions catch all warnings from older.
* Upgrade to Clang 8 which is already installed in the Docker image.
* Remove EOL Fedora 28 and 29, use latest (31).
* Remove EOL openSUSE Leap 42.3, keep 15.1 as the latest.

Reduces from 20 jobs (15 build, 5 test) to 10 jobs (7 build, 3 test).

Change-Id: I4a355dd1a90cbbef9525bd63a8544fa3e22369a2
Reviewed-on: https://code.wireshark.org/review/36281
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-05 04:45:52 +00:00
Jason Cohen 5fba6e973b f5ethtrailer: Add support for TLS Trailer Type 2 Ver 1
Version 1 Type 2 trailers include the Early Traffic Secret

Bug: 16422
Change-Id: I6f0af63900928dba8c667a6a92bb29c8b9277f6a
Reviewed-on: https://code.wireshark.org/review/36266
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-03-04 20:01:21 +00:00
Pascal Quantin 57de65c9e7 Diameter 3GPP: fix dissection of MBMS-Bearer-Event AVP
As reported in https://www.wireshark.org/lists/wireshark-users/202003/msg00004.html

Change-Id: I5eb911b9b86e34f01102afe649401a6393603e2c
Reviewed-on: https://code.wireshark.org/review/36274
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-03-04 18:25:13 +00:00
Alexis La Goutte 718b282f60 QUIC: define QUIC Transport Parameter on Hexadecimal (like spec)
Add also link to Temporary IANA Registry and link of draft extension TP

Change-Id: I89fec06670ee65a7b20eb5f7766992c6be8eb09e
Ping-Bug: 13881
Reviewed-on: https://code.wireshark.org/review/36264
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-04 04:46:00 +00:00
Alexis La Goutte a1ba7aa35f QUIC: Add Time Stamp Extension
From https://tools.ietf.org/html/draft-huitema-quic-ts-02 and
https://github.com/quicwg/base-drafts/wiki/Temporary-IANA-Registry#quic-frame-types

Ping-Bug: 13881
Change-Id: I38493281a46aa2d556ad39c70dc3479d35c657c2
Reviewed-on: https://code.wireshark.org/review/36256
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2020-03-04 01:51:51 +00:00
Gerald Combs 53246cee24 Qt: Add missing breaks.
Add missing breaks pointed out by Pascal.

Change-Id: I5dc17ec15fcf6d102ab2f97fec84c04905c68c79
Reviewed-on: https://code.wireshark.org/review/36271
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-03-03 22:14:22 +00:00
Dario Lombardo d5794990d5 docbook: add more infos to Mac package build section.
Change-Id: Iae921f64e8342d3256d39cbe2af885885da9098f
Reviewed-on: https://code.wireshark.org/review/36268
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-03-03 20:26:36 +00:00
Gerald Combs 290ddeeed4 macOS: Make the dmg_package target fail noisily.
Change-Id: I479c9f13b9695d78d47b698a14cda0989724c639
Reviewed-on: https://code.wireshark.org/review/36270
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Tested-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-03-03 17:22:30 +00:00
Alexis La Goutte 9f3a335f45 QUIC: Add ACK_FREQUENCY Frame Type
From https://tools.ietf.org/html/draft-iyengar-quic-delayed-ack-00 and
https://github.com/quicwg/base-drafts/wiki/Temporary-IANA-Registry#quic-frame-types

Ping-Bug: 13881
Change-Id: I2e5d79a5c4b69b518458faec664410f22205a245
Reviewed-on: https://code.wireshark.org/review/36255
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-03-03 11:29:01 +00:00
Moshe Kaplan b7566bf40f LUA: remove duplicate words
Change-Id: Id3c5b1d7f67d8e4d3149ed6bdee7307bf13fda3d
Reviewed-on: https://code.wireshark.org/review/36263
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2020-03-03 07:37:30 +00:00
Stefan Battmer 5ffb495f07 gvcp, gvsp: Adjusted to GigE Vision spec. 2.2
- Changed some GVCP register names in order to reflect the latest
  changes in the GigE Vision specification
- Moved GenDC component and part offsets into a subtree in order
  to comply with the actual packet layout of the specification
- BUGFIX: the GenDC data_size field was displayed as a 64-bit
  value while in fact it is 32-bit wide

Change-Id: Iddbd7f6d143ae2b78e4f3d3c31dea12358fb9804
Reviewed-on: https://code.wireshark.org/review/36229
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-03 06:21:00 +00:00
Moshe Kaplan b4551fe7b2 docbook: Remove duplicated words
Change-Id: Ia68e471953d57529fa506136001eae64f0dbf2f1
Reviewed-on: https://code.wireshark.org/review/36262
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-03 06:20:26 +00:00
Gerald Combs 4a2cd15aa5 Qt: Fill in our item delegate editor backgrounds.
As the documentation for QAbstractItemDelegate::createEditor says,

"The view's background will shine through unless the editor paints its
own background (e.g., with setAutoFillBackground())."

Set setAutoFillBackground(true) for a bunch of our editors where the
underlying widget's background was showing.

Change-Id: I77e96548e99c74a73c89f8037c1f894a6a5584f1
Reviewed-on: https://code.wireshark.org/review/36260
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-03 06:19:02 +00:00
Alexis La Goutte fb28b60e3f QUIC: Fix frame type (it is also a varint)
Draft 13 changed it from a byte to a varint. Found during implementation
of draft-huitema-quic-ts-02 which uses 0x02F5.

Bug: 13881
Change-Id: I63d9469b539cf92b694bca85c00e07bd146abb5e
Reviewed-on: https://code.wireshark.org/review/36259
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2020-03-02 23:21:49 +00:00
Tomasz Moń 4a3853645f USB: Fix NULL pointer dereference
Coverity CID 1460459

Change-Id: I64c40a8c8aa85a01909c36bc35e61917c80e9327
Reviewed-on: https://code.wireshark.org/review/36258
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-02 21:20:26 +00:00
Tomasz Moń 2ba35ceb41 USB Audio: Allow filtering on baSourceIDs
Add baSourceIDs as FT_BYTES containing the whole array.

Change-Id: I3478b4f775c3b50035dfaf9aaca559c005bfca3c
Reviewed-on: https://code.wireshark.org/review/36257
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-03-02 18:56:35 +00:00
Jiri Pirko 13bf41740b net_dm: implement support for flow action cookie
Kernel can now send a flow action cookie in drop monitor medatada.
Implement support for it.

Change-Id: If486c68bf334f81315d3c3f230bc4932e704e1a8
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Reviewed-on: https://code.wireshark.org/review/36254
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-02 16:59:23 +00:00
Anders Broman 8877fa2301 Diameter 3gpp: When checking if text ignore padding or NULL termination.
Change-Id: Ic8eac664e2537d0e85afb5cab80e2621407d2c79
Reviewed-on: https://code.wireshark.org/review/36253
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-02 16:58:46 +00:00
João Valverde 7322c35a47 Remove keep alives from "Bad TCP" coloring rules
Change-Id: Ie0c2160f469ba32535f52e074670318739cfa81a
Reviewed-on: https://code.wireshark.org/review/35869
Reviewed-by: Jasper Bongertz <jasper@packet-foo.com>
Reviewed-by: João Valverde <j@v6e.pt>
2020-03-02 14:48:09 +00:00
Dario Lombardo a7e3942101 Add github actions yaml files.
Change-Id: I06e9968b792d9c218273873f36ee8e9157b04344
Reviewed-on: https://code.wireshark.org/review/36181
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-02 14:17:04 +00:00
Ameya Deshpande 321de10aad USB Audio: Dissecting Selector Unit and Endpoint Descriptor
Dissection of "Class-specific Audio Control Interface Descriptor:
Selector Unit Descriptor" and "ENDPOINT DESCRIPTOR" for USB Audio
Device added.
The USB Audio class extended Standard USB Endpoint Descriptor 2
bytes further. A condition to check whether the interface class is
CLASS_AUDIO is added and the 2 bytes are dissected.

Change-Id: I63f1334df71b9e8cd92a299d533b732b0a13ace7
Reviewed-on: https://code.wireshark.org/review/36250
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-02 14:16:12 +00:00
Vadim Yanitskiy 340e9b3e84 GSMTAP: also dissect PCS band indicator of ARFCN
The absolute radio-frequency channel numbers may overlap between
both DCS1800 and PCS1900 frequency bands. The purpose of the PCS
band indocator is to avoid ambiguity for the overlapping numbers.

Change-Id: I5c6e429e9c579d1e132994954a4d32f2f1bd6ca5
Reviewed-on: https://code.wireshark.org/review/36240
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-02 14:15:31 +00:00
Gerald Combs a42fde90c1 [Automatic update for 2020-03-01]
Update manuf, services enterprise numbers, translations, and other items.

Change-Id: I14e268fb0be2a1a85e10a4ff7b5f0b0559489f3a
Reviewed-on: https://code.wireshark.org/review/36246
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-03-01 08:20:11 +00:00
Dylan Ulis 612568d7b3 Edit Resolved Name: Allow user to remove name
User can remove the previously set name, just by editing the current
name, and removing all text (empty string). Empty strings are skipped by
the name resolution code.

Bug: 11221
Change-Id: Id9c64885b5dd82fd72dd16b25a0f8046b8102a11
Reviewed-on: https://code.wireshark.org/review/36206
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-01 06:49:20 +00:00
Tomasz Moń 04a86e99e4 Qt: Fix import profile from directory crash
Do not append separator to import directory path. Calling QFileInfo()
constructor with string ending in directory separator results in
creating QFileInfo instance for file with empty filename.

Bug: 16410
Change-Id: I4fe248fcdb0c0c67843652475ae58c2a473a9fa8
Reviewed-on: https://code.wireshark.org/review/36238
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-01 06:48:21 +00:00
Tomasz Moń 50a4063352 USB: Record bcdVersion in device product data
Set usb conversation info vendor, product and version based on values
recorded in device product data. This results in USB dissectors that
register on VID/PID to get correct vendor, product and version
information if configuration descriptor is not present in the capture.
One such dissector is FTDI FT where the version is used to determine
chip type.

Ping-Bug: 11743
Change-Id: Idcc361861b616222e32fc0d8cef9f9dd687cf1e4
Reviewed-on: https://code.wireshark.org/review/36243
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Filipe Laíns <lains@archlinux.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-01 06:46:07 +00:00
Tomasz Moń c68366f01d FTDI MPSSE: Group commands with parameters
Group command with parameters under its own subtree. Besides grouping,
this makes it possible to filter the command with specific parameters.

Ping-Bug: 11743
Change-Id: I4702a0cac6bd398a271c310185bf2670d352ba55
Reviewed-on: https://code.wireshark.org/review/36241
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Reviewed-by: Filipe Laíns <lains@archlinux.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-01 06:45:50 +00:00
Tomasz Moń c07a48b6d3 Qt: Fix profile zip import on Windows
Do not use QDir::separator() as a directory separator. QT internally
uses "/" as separator on all systems, including Windows. The zip files
were not unzipped into target directory because splitting path on
QDir::separator() in ProfileModel::cleanName() returned only one part
(there weren't any "\' in file name, only "/").

Qt documentation for QDir::separator() mentions:
  "You do not need to use this function to build file paths.
   If you always use "/", Qt will translate your paths to conform to
   the underlying operating system. If you want to display paths to
   the user using their operating system's separator use
   toNativeSeparators()."

Bug: 16410
Change-Id: I9627684f58f4c1da24b6eec8958a2542fe07d915
Reviewed-on: https://code.wireshark.org/review/36237
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
2020-02-29 10:15:29 +00:00
Aurelien Aptel ab274af1ed SMB2: properly show reused FIDs
When dissecting a trace containing the same FID multiple times (for
different file paths) Wireshark would get confused and show file path
of the latest occurence of the FID for all usage.

Example:

  => open  req "\dir\lol.txt"
  <= open  rsp fid=0x123

from this point, 0x123 is "lol.txt", yet wireshark will show "bar.txt"

  => write req fid=0x123 data="foo"
  <= write rsp ok
  => close req fid=0x123
  <= close rsp ok

from this point, 0x123 is no longuer valid

  => open  req "\dir\bar.txt"
  <= open  rsp fid=0x123

from this point, 0x123 is "bar.txt"

  => write req fid=0x123 data="foo"
  <= write rsp ok
  => close req fid=0x123
  <= close rsp ok

Wireshark displays "bar.txt" for all occurences of 0x123. This patch
fixes that and stores the interval (in frame numbers) in which each
FID is valid. From the first time the FID is seen to the time the
close is done.

Change-Id: I9027bb1756d1dbee0393b50786f49845b79f129c
Reviewed-on: https://code.wireshark.org/review/36192
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-02-29 08:58:12 +00:00
Roland Knall 4fe7fbd51d Qt: Changes ProfileModel assert
The assert mistakenly crashed the import

Bug: 16410
Change-Id: I385f4ba9b842f0f25d6ffe30db6065946fd55d84
Reviewed-on: https://code.wireshark.org/review/36233
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
2020-02-28 20:34:03 +00:00
Filipe Laíns 3c28305ca8 FTDI MPSSE: Dissect setting the clock divisor
This patch dissects the clock divisorset command. For the FT2232D it
will also calculate the clock based on the divisor.

Calculating the clock for newer chips requires more context that what we
currently have. The master clock is 60MHz by default but can be
configured to 12MHz for compatibility with older chips. We need to track
the "Divide by 5" commands (0x8A/0x8B) to be able to claculate the
clock.

Ping-Bug: 11743
Change-Id: Ica3acfa97b4db38c2f28bb14cb1e0576d9b5139e
Signed-off-by: Filipe Laíns <lains@archlinux.org>
Reviewed-on: https://code.wireshark.org/review/36167
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Tomasz Moń <desowin@gmail.com>
2020-02-28 17:12:44 +00:00
Gerald Combs cead73576d macOS: Expand a comment.
Change-Id: I4755c2ca44bc33954e3ea69c6ea2b7dc0983db4c
Reviewed-on: https://code.wireshark.org/review/36232
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-02-28 16:40:02 +00:00
Anders Broman a5926fdda7 nettrace_3gpp_32_423: Improve parsing.
Change-Id: I4593154a7791355afff76f7ca823c7f786605490
Reviewed-on: https://code.wireshark.org/review/36224
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-02-28 15:24:37 +00:00
Aurelien Aptel 54261ccaf2 SMB2: remove duplicate session info
When smb2_session_info() was factored out a bug was introduced where
instead of appending text in the parent it appended text in the new
sub item, showing it twice. Fix that by appending to the parent item
instead.

Change-Id: I87c681cd5ea233b3a8c451d0dde2cd2ddf8da48e
Reviewed-on: https://code.wireshark.org/review/36191
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-02-28 14:54:14 +00:00