Commit Graph

81777 Commits

Author SHA1 Message Date
Gerald Combs b7ff41703e Build: 3.5.0.
[skip ci]
2021-08-27 10:17:38 -07:00
John Thacker f997f28898 AMQP: Fix dissection of PDUs split across TCP segments
AMQP calls a subdissector table before tcp_dissect_pdus() is used to
desegment PDUs (see commit 27c10ed72e),
so pinfo->can_desegment needs to be restored before it is decremented
a second time.  Fixes #14217.
2021-08-27 12:23:00 +00:00
Guy Harris 4b7bfe35c5 pcapng: process uint32 options like uint64 options.
Move the extraction of the option value from the option content from the
callers of pcapng_process_uint32_option() to
pcapng_process_uint32_option() itself.
2021-08-27 08:58:13 +00:00
John Thacker 0e3782831a SMB: Don't canonize filenames to ASCII for Export Objects
Windows can allow Unicode in filenames now, and export_object.c
has its own eo_massage_str function that the GUI and CLI already
call to create safe filenames when they are saved. There's no need
for an individual dissector like SMB to have its own (worse)
implementation of the same functionality, and to call it before
filenames are displayed. Fix #17530
2021-08-27 08:24:55 +00:00
Jeroen Sack 0ceaaad763 Isobus-VT: Fix description of auxiliary input status enable message
Show if message indicates that auxiliary input was enabled or disabled
2021-08-27 08:04:54 +00:00
Jeroen Sack 2468cfefe2 Isobus: Change email address
Used my work email previously, but have not been working for them for a long
time already.
2021-08-27 08:04:54 +00:00
Guy Harris a21972d6b9 pcapng: remove some old code left behind by the previous change. 2021-08-27 00:33:09 -07:00
Guy Harris 8acd0d1151 pcapng: export routines to do the option-section processing.
That way, add-on modules to handle block types not handled by the core
pcapng code can use pcap_process_options() to process a block's options
and can use the routines to handle the "standard" option value types to
handle particular options.

Also, allow both everything-is-little-endian and
everything-is-big-endian Custom Block types in pcap_process_options().
2021-08-27 06:48:47 +00:00
Triton Circonflexe d4de52690f Thrift: Complete handling of Binary & Compact protocols
- Make sure reassembly requests & errors are properly propagated from
  any point in the PDU, no matter how many sub-structure levels.
- Handle the sub-dissection methods as well:
  - Ensure the sub-dissection methods handle errors from previous calls.
  - Reduce the error handling needed in sub-dissector implementations.
  - Add missing sub-dissection methods for list, set, and map.
  - Add the handling of sub-structure.
- Handle Compact protocol in addition to the existing binary protocol.
  - Include and improve MR !3171
  - Handle reassembly the same way as for binary protocol.
  - Handle sub-dissection with the same functions.
    => Sub-dissectors only depend on .thrift files.

Additional changes:
- Use of constants instead of hard-coded values.
- Removed U64 support (never supported by thrift code generator, only
  referenced in the C++ thrift library header but not supported in reality.
- Removed references to UTF-8 and UTF-16 string for the same reason.
- Replaced references to UTF-7 string with just string (same reason).
- Replaced references to byte with i8 as the documentation explicitly
  states that byte is a compatibility name.

Documentation reference:
- https://thrift.apache.org/developers
- https://thrift.apache.org/docs/idl.html
- https://github.com/apache/thrift/blob/master/doc/specs/thrift-compact-protocol.md
- https://erikvanoosten.github.io/thrift-missing-specification/
- https://diwakergupta.github.io/thrift-missing-guide/

Closes #16244

Additional changes:
- Add authors and improve consistency
- Fix typo and clarify documentation
2021-08-27 06:04:17 +00:00
Michael Tuexen b17f354304 Add initial support for BBLog files 2021-08-27 04:48:21 +02:00
Gerald Combs 8c4543373a CMake: Use "'" instead of "’" in our guide filenames.
Use an apostrophe instead of RIGHT SINGLE QUOTATION MARK in our PDF and
EPUB filenames. Some programs (notably Okular) can't open filenames with
extended characters, at least on Windows.
2021-08-27 01:18:13 +00:00
Gerald Combs 5fcd5f3b9f Release notes: Various updates.
Add 64-bit PortableApps and macOS Arm items. Fix an issue from a
previous commit. Add new dissectors.
2021-08-27 01:01:51 +00:00
Alexis La Goutte fef6a490cc woww: Fix Dead Store (Found by Clang Analyzer) 2021-08-27 00:09:26 +00:00
Tomasz Moń 7370516d21 USBLL: Reassemble transactions into transfers
Create pseudo URB and pass the reassembled data to USB URB dissector.
Reassembly for control transfers is not problematic as the transfer
length is known. For bulk transfers assume the transfer can span across
multiple transactions, however for periodic (interrupt and isochronous)
assume the transfer never spans across multiple transactions.

Rely on USB dissector to provide endpoint maximum packet size. Actual
interface/configuration handling in USB dissector needs to be reworked
as the code assumes that there is only one configuration and alternate
interface configurations have matching endpoints.

While the reassembly bulk transfers and never reassemble periodic
transfers result in pretty good dissection, the USB class dissectors
need a mechanism to provide transfer size hints to USBLL dissector.
Such hint is not needed for software USB capture as software sniffers
essentially capture URBs and every transfer is associated with one URB.
The problem can be seen for example in Mass Storage Class where it is
common for data transfers length to be multiple of endpoint maximum
packet size. Because USBLL dissector doesn't know expected transfer
size, it combines together data and status transport.

Related to #15908
2021-08-26 17:50:18 +00:00
Reinhard Speyerer da8e7086f6 gsm_sim: add decoding for GET IDENTITY and GET DATA
Add support for decoding instruction byte 78 (GET IDENTITY) from
TS 102 221 v15.11.0 and instruction byte CA (GET DATA) which is used to
retrieve the EID for eSIMs according to GSMA SGP.02 v4.2 available from
https://www.gsma.com/esim/esim-m2m-specifications/.

Closes #17548.
2021-08-26 17:29:22 +00:00
Michail Koreshkov 88657fd57e gtp: alternative GSN address decoders
All fields with GSN address were decodes as common hf_gsn_addr. But if
ETSI order is used, it's possible to specify alternative decoder
depending on message type and field position.
Alternative decoder for GSN address was added for mandatary fields and
optional/conditional field in the case there is single GSN address in
message.

Added new function as common dissector for all addr types.
2021-08-26 16:25:15 +00:00
Christian Krump 28bc920e27 EPL: fix length detection of SDO 'read by index'
correction of the length-calculation of SDO 'read by index' payload data
2021-08-26 12:09:50 +00:00
Guy Harris ea0f14a6fb cmake: add an "uninstall" target.
Based on the uninstall target I added to libpcap and tcpdump's CMake
files.  cmake_uninstall.cmake.in is BSD-licensed, so I can use it here
and in libpcap/tcpdump without adding any GPL stuff to libpcap/tcpdump.
2021-08-26 00:42:51 -07:00
Dr. Lars Völker 322ae5037a Signal PDU: Speed up dissection
This patch speeds up the dissection of signal pdus, if not filtering.
With an example trace file full of signal PDUs, I gained about a 4x
speed up in opening the trace.
2021-08-26 07:20:12 +00:00
Vahap Emin Agaogullari c8d29e9f15 PROFINET: DCP Option dissection updated
DCP Frames with Reserved Option dissection changed
short time ago. There isn't a predefined suboption
for Reserved option in the standard. But in this
implementation it dissected like control suboption.
This is not true and creates malformed frames in some
dcp pcaps. This implementation is reverted.
Wireshark will dissect undefined bytes as paddings
just like before.
2021-08-26 05:28:35 +00:00
Guy Harris 1ab3711132 gryphon: explain in detail why we can't import tfs strings from libwireshark. 2021-08-25 17:29:59 -07:00
Gerald Combs 5e016c1970 GitLab CI: Fix a path (try 2).
Copy the correct .dmg pattern to s3.
2021-08-25 22:18:00 +00:00
Gerald Combs f8fb504d74 GitLab CI: Publish our Windows PDBs. 2021-08-25 22:01:27 +00:00
Gerald Combs 3fbf6fa022 GitLab CI: Fix a path.
Copy the correct .dmg path to s3.
2021-08-25 21:42:48 +00:00
Joerg Mayer 280085838b packet-extreme.c EDP Link TLV: Decode some flags
Fix a signed vs. unsigned warning while at it.

Whitespace fixes
2021-08-25 21:04:11 +00:00
Gerald Combs 28c4c947c0 GitLab CI: Enable macOS Arm notarization.
Enable code signing & notarization in the macOS Arm Package job. Add
"needs: []". Verify the .dmg after notarizing it.
2021-08-25 20:40:29 +00:00
Alexis La Goutte f7755972c9 LDP: Display Generic label with DEC
Fix #17539
2021-08-25 20:12:28 +00:00
Nardi Ivan 1f28ac3ef5 DoQ: update to latest draft (-03)
See https://www.ietf.org/archive/id/draft-ietf-dprive-dnsoquic-03.txt
2021-08-25 19:23:20 +00:00
Gerald Combs f6e2cdcc54 HTTP3: Define dissect_http3_settings only if needed.
Define dissect_http3_settings only if HAVE_LIBGCRYPT_AEAD is defined.
This should hopefully fix

```
epan/dissectors/packet-http3.c: In function 'dissect_http3_settings':
epan/dissectors/packet-http3.c:212:9: error: implicit declaration of function 'http3_is_reserved_code' [-Werror=implicit-function-declaration]
         if (http3_is_reserved_code(settingsid)) {
         ^
epan/dissectors/packet-http3.c: At top level:
epan/dissectors/packet-http3.c:200:1: warning: 'dissect_http3_settings' defined but not used [-Wunused-function]
 dissect_http3_settings(tvbuff_t* tvb, packet_info* pinfo _U_, proto_tree* http3_tree, guint offset)
 ^
cc1: some warnings being treated as errors
```

on the CentOS 7 builds.
2021-08-25 17:54:47 +00:00
Taisuke Sasaki 95f3f58e0d ISIS: Fix Flexible Algorithm issues
- Fix "Priority" field name in FAD TLV (draft-ietf-lsr-flex-algo-16)
- Fix SABM/UDABM length in ASLA TLV (rfc8919)
2021-08-25 17:35:26 +00:00
Alexis La Goutte 72eb858741 gitlab-ci: Fix daily API ref
mkdir / cd build is already on ubuntu step
2021-08-25 17:18:28 +00:00
Alexis La Goutte ebb1d7ffaf gitlab-ci: Fix daily Clang Analysis
mkdir / cd build is already on ubuntu step
2021-08-25 17:18:28 +00:00
Gerald Combs 0d27b63747 FAQ: Add items about forms and contracts.
We occasionally get requests to fill in compliance forms and to sign
contracts. Add items for those.

Move the name change question to a historical intrest section.
2021-08-25 17:01:21 +00:00
Tomas Kukosa 522414a091 ITS: use custom value format for DSRC element DeltaTime 2021-08-25 16:29:23 +00:00
Maxime Meignan 09a993da39 NTLMSSP: Remove unnecessary condition in decryption
If a "NT Password" value is provided by the user, the NTLMSSP decryption
should take place, whether or not Kerberos decryption option is enabled
 (disabled by default).
2021-08-25 16:11:11 +00:00
Maxime Meignan 1e697fb7ff NTLMSSP: Allow empty NT passwords for decryption
NT Accounts may have empty passwords; this allows the dissector to try
decrypting the NTLMSSP session using an empty password (when "NT
Password" preference is left blank).
2021-08-25 15:53:55 +00:00
David Perry 697f28c1d3 RTPS: use proto_data instead of private_table
Rewrite storage and retrieval of `endpoint_guid`s to use private proto
data instead of `pinfo->private_table` which was meant solely for Lua
use.

Closes #17156
2021-08-25 15:37:03 +00:00
Arkady Gilinsky cbada6faf4 oampdu: Improve Queue object parsing
Signed-off-by: Arkady Gilinsky <8351139-ark-g@users.noreply.gitlab.com>
2021-08-25 15:20:29 +00:00
Evan Huus 9311982664 plugins: convert to pinfo->pool
Convert all plugin dissectors from wmem_packet_scope to pinfo->pool.
2021-08-25 14:30:47 +00:00
Alexis La Goutte 2ee06d3fef Qt: Add Turkey translation
Thanks to Serkan ÖNDER
2021-08-25 14:06:50 +00:00
Dr. Lars Völker 8e2cd4f652 UI: Import profiles from ZIP supporting bigger files (Bugfix)
This patch allows the profile importer to recover from a file too large
to import as well as adjusts the maximum allowed config file size.

Closes: #17504
2021-08-25 13:40:12 +00:00
Anders Broman d884af52e9 F1AP: Make it possible to exort F1AP PDUs 2021-08-25 10:19:37 +00:00
Guy Harris a70c120a04 gryphon: get rid of unused variables.
Found by cppcheck.
2021-08-25 08:57:47 +00:00
Gtker 75881ac914 WOWW: Add maps enum and strings
The "unused versions" are not unused in Wireshark, they're just
literally called `unused` for some reason.

DBC file:
https://wowdev.wiki/DB/Map#1.12.1.5875

SMSG_CHAR_ENUM:
https://wowdev.wiki/SMSG_CHAR_ENUM
2021-08-25 08:41:17 +00:00
Gtker 07da0d01ef WOWW: Rename _zone to _area and add strings
`Zone` is not entirely correct, since the value can also be used for
areas within a zone.

AreaTable:
https://wowdev.wiki/DB/AreaTable#1.12.1.5875

SMSG_CHAR_ENUM:
https://wowdev.wiki/SMSG_CHAR_ENUM
2021-08-25 08:41:17 +00:00
Gtker cf28565d4d WOWW: Fix class enum
Original values were incorrect.

Mangos link:
e45aa74e0f/src/game/Server/SharedDefines.h (L75)
2021-08-25 08:41:17 +00:00
Gtker 41eeb05bd1 WOWW: Add case for messages without bodies
This will allow distinguishing messages that have been handle, but have
no body, and unhandled messages (default case).
2021-08-25 08:41:17 +00:00
Gtker a9831231e7 WOWW: Add movement messages 2021-08-25 08:41:17 +00:00
Gtker bc440490c5 WOWW: Refactor parse_SMSG_CHAR_ENUM to take ptvcursor_t 2021-08-25 08:41:17 +00:00
Guy Harris d42ac7b4b5 check_tfs: we want os.path.commonprefix, not os.path.commonpath. 2021-08-25 01:24:31 -07:00