Commit Graph

79004 Commits

Author SHA1 Message Date
Masaru Tsuchiyama c14ea41233 add support for compression of capture file 2020-10-30 00:25:22 +00:00
Dieter Dobbelaere 9d6ebdc8a5 Dissect frame drop count if present. 2020-10-29 18:10:41 +00:00
Vadim Yanitskiy 732591237b GSM A RR: fix wrong cause value in gsm_a_rr_RR_cause_vals
Also, take a chance to correct the comment: section 6.11.0 does
not exit in 3GPP TS 44.018.  In version 15.4.0 Release 15 of
the referenced document it is 10.5.2.31 (table 10.5.2.31.1).
2020-10-29 09:27:13 +00:00
Jonas Falkevik 156f9e81fc lcsap: fix decode of plmnIdentity
Corretly decode MNC if it consists of 3 digits
Change to what is called big endinan MNC

   8   7   6   5   4   3   2   1
 +---+---+---+---+---+---+---+---+
 |  MCC digit 2  |  MCC digit 1  |  octet x
 +---------------+---------------+
 |    Filler     |  MCC digit 3  |  octet x+1
 +---------------+---------------+
 |  MNC digit 2  |  MNC digit 1  |  octet x+2
 +---------------+---------------+

 MNC of length 3:

   8   7   6   5   4   3   2   1
 +---+---+---+---+---+---+---+---+
 |  MCC digit 2  |  MCC digit 1  |  octet x
 +---------------+---------------+
 |  MNC digit 1  |  MCC digit 3  |  octet x+1
 +---------------+---------------+
 |  MNC digit 3  |  MNC digit 2  |  octet x+2
 +---------------+---------------+

From 3GPP TS 29.171
7.4.27 PLMN Identity

- digits 0 to 9, encoded 0000 to 1001,
- 1111 used as filler digit, two digits per octet,

- bits 4 to 1 of octet n encoding digit 2n-1
- bits 8 to 5 of octet n encoding digit 2n

The Selected PLMN identity consists of 3 digits from MCC followed by either
- a filler digit plus 2 digits from MNC (in case of 2 digit MNC) or
- 3 digits from MNC (in case of a 3 digit MNC).
2020-10-29 00:53:13 +01:00
Martin Mathieson 7c178d752f Bluetooth protocols: fix some protocol item lengths 2020-10-28 22:35:28 +00:00
John Thacker abf3eaace8 Encodings: Add FT_STRINGZ support for GB18030, EUC-KR 2020-10-28 22:05:17 +00:00
Pascal Quantin 4ff3c82534 Bug.md: use code blocks for logs and build information sections 2020-10-28 21:32:58 +00:00
Gerald Combs 05bd5cd91e CI+RPM: Disable the Fedora build for now.
Fedora 33's RPM environent added changes that break CMake. Disable it
for now.
2020-10-28 20:48:49 +00:00
Gerald Combs b1d18e41db Qt: Add a recent item for packet diagram field values.
Fixes #16957.
2020-10-28 20:11:25 +00:00
Gerald Combs 1c2fd68e26 Qt: Fix saving+restoring frozen packet list rows.
Use the packet list selection model to save and restore selected rows
when freezing and thawing. Fixes #16770.
2020-10-28 15:36:07 +00:00
Dieter Dobbelaere 9b5d4945d0 DOCSIS/XRA: fix typos + cleanup. 2020-10-28 13:58:38 +00:00
Jaap Keuter 918db88055 Create protocols to the end of the TVB if length unknown upfront
Creating protocols with unknown length must be created to the end of the TVB
first and reined back using proto_set_len() once the length becomes known.
Not doing so can make indentification of problems harder and prevents analysis
engines like MATE from properly processing the generated protocol trees.
With this change the remaining offending dissectors are corrected for this.

Closes #16961
2020-10-28 12:40:44 +00:00
Arnout Vandecappelle (Essensium/Mind) af0c4203a0 ieee1905: fix endianness of fields
In IEEE1905.1, everything is encoded in network byte order (big endian).
However, the dissector has a lot of ENC_LITTLE_ENDIAN. Change these into
ENC_BIG_ENDIAN.

The IPv4 Type TLV is not changed in this commit, since I'm not able to
test that TLV with an actual IEEE1905.1a implementation.

Many other fields are currently encoded as ENC_NA put should probably be
ENC_BIG_ENDIAN as well. However, they seem to work with ENC_NA, so they
are also not changed.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2020-10-28 12:16:56 +00:00
Dieter Dobbelaere 7c9eb8b235 Fix typo: 'descriptionfor' -> 'description for'. 2020-10-28 11:00:12 +01:00
Huang Qiangxiong 1c5d577d63 Protobuf: fix bugs about field subdissector
Don't try to dissect bytes as string and show its value item if the
bytes field has a subdissector. And add field subdissector under field
item instead of value item.

close #16956
2020-10-28 08:54:30 +00:00
Dr. Lars Völker ecdd7f3ede TECMP: Adding support for two temps in Vendor Data
The TECMP vendor data format for the Status Capture Module message has
support for two temperatures (chassis and silicon). This patch allows
dissection of those temperatures.
2020-10-28 08:31:44 +00:00
Guy Harris 889e0d5cb6 Add a new record type REC_TYPE_SYSTEMD_JOURNAL.
Systemd journal entries aren't file-type-specific; they're found in both
systemd journal entry blocks in pcapng files and in systemd journal
export files.  Give it a record type, for use with both file types.

This fixes #16955.

It also means that you can open a systemd journal export file and save
it as a pcapng file.
2020-10-27 20:06:26 -07:00
Stig Bjørlykke edd71daa90 lte-rrc: Pluralize PagingRecord(s) 2020-10-27 15:51:11 +01:00
Stig Bjørlykke 5413331ed3 AT: Handle response without leading \r\n
The AT response may not contain a leading \r\n, so avoid checking
for this to determine if it's a response. This characters will be
removed as a part of white space removal anyway.
2020-10-27 07:22:09 +00:00
Guy Harris 639891651f Impose limits on the number of records we read.
Start the limit at 2^32-1, as we use a guint32 to store the frame
number.

With Qt prior to Qt 6, lower the limit to 53 million packets; this
should fix issue #16908.
2020-10-26 16:52:58 -07:00
Stig Bjørlykke a88d72dc8e Qt: Avoid crash on ProtoTree item deselect
Handle the case of deselecting a ProtoTree item.
2020-10-26 13:15:42 +01:00
Antony Bridle cea3bdca9d ASTERIX: Bumped version of ASTERIX Category 004 to 1.11
Updated supported version of ASTERIX Category 004 from 1.7 to 1.11
2020-10-26 10:31:45 +00:00
Martin Mathieson 2fe6c3cd85 Fix some more item lengths. 2020-10-26 09:30:53 +00:00
Chuck Craft 2920c49c1d Qt: use packet_list_colorize state in Flow Graph 2020-10-26 08:39:16 +00:00
Guy Harris 32b64c1694 Apparently, WS_WIKI_URL() can work in Qt C++ code. 2020-10-25 17:42:11 -07:00
Guy Harris f7c99f73e2 Revert "Apparently, WS_WIKI_URL() is unworkable not only in C++ but in C."
This reverts commit 5df2925434.

The problem only showed up in tfshark.c, and was caused by tfshark.c
using stuff from ui/urls.h but not *including* ui/urls.h.
2020-10-25 14:42:47 -07:00
Guy Harris a8d023ba58 Include <ui/urls.h>
If you're going to use #defines from ui/urls.h, it reeeeeeeeeally helps
if you *include* ui/urls.h.
2020-10-25 13:50:53 -07:00
Gerald Combs d9897f1ddf [Automatic update for 2020-10-25]
Update manuf, services enterprise numbers, translations, and other items.
2020-10-25 16:18:19 +00:00
Alexander Couzens fc1b478a55 packet-gsm_rlcmac: display TLLI as hex
In all other layer the TLLI is displayed as hex. The TLLI
is a 32-bit value which is quite unreadable in decimal form.
2020-10-25 14:35:18 +00:00
Ismael Pérez b694ad77e4 sv dissector: dissect optional field "gmIdentity"
The information regarding the VendorID in gmIdentity is also decoded.
2020-10-25 14:07:32 +00:00
Andre Luyer 6e35d38c2d DNS: change response time in statistics view to msec
Normal DNS response times are in the milli-seconds range, but are currently
listed as seconds.
It is more readable when msec unit is used instead.
Also the average display is hard coded (%.2f) so under normal conditions it
is currently shown as "0.00".
With this change the average value displayed is more useful and high response
times (retransmissions) stand out more clearly.
2020-10-25 13:22:24 +00:00
Uli Heilmeier ce47866a43 DNS: RFC8914 Extended DNS Errors
Add support for RFC8914 Extended DNS Errors
2020-10-24 21:56:32 +00:00
Guy Harris 5df2925434 Apparently, WS_WIKI_URL() is unworkable not only in C++ but in C.
If you use it, GCC 9.3.0 seems to think there's a missing parenthesis
somewhere, just as the version of clang++ in my version of Xcode does,
even though other versions of GCC don't.  I'm clearly missing something
obscure about C here; I give up.
2020-10-24 13:53:23 -07:00
Jaap Keuter 5b2901d090 MATE: Improve MATE debug facility
1) Allow AVP_DEBUGGING settings to be made from Preferences, iff compiled so.
2) Flush MATE/AVP debug output once sequential packet parse has completed.
2020-10-24 18:42:50 +00:00
Martin Mathieson 84f89e97a2 DPNET: Make some 4-byte fields FT_UINT32.
None of these fields are likely to reach 2^16...
2020-10-24 14:32:16 +01:00
Moshe Kaplan f1d9b3c966 Gitlab-ci: Build doxygen
Add a Gitlab-CI job for building doxygen docs
2020-10-24 12:04:20 +00:00
Peter Wu cad1785868 dns: detect DNS over UDP on non-standard ports using heuristics
While running a test suite of a DNS server, a lot of DNS messages on
non-standard ports were not recognized. Rather than manually discovering
and decoding every port using an iterative process of checking the
output of the `udp and not dns` filter, have some heuristics to detect
DNS messages automatically.

Enable these heuristics by default assuming that the checks are strong
enough, 8 bytes are essentially fixed to a low number of possibilities.
Should it cause issued, then the heuristics could be disabled (assuming
that non-standard DNS ports are uncommon) or strengthened.
2020-10-24 11:21:44 +00:00
Tom Yan 00c09b8696 extract_asn1_from_spec.pl : fix ^END to ^END$ 2020-10-24 08:58:20 +00:00
Guy Harris 4fd7983b04 dumpcap: fix the macOS "no permission to capture" message.
The macOS installer works differently from the way it did when that
message was written (it's now a drag-install for Wireshark, with
separate installers for ChmodBPF and for files to add the Wireshark
binary directory to the default $PATH), and the macOS main screen now
offers a "click this to install" link, running the ChmodBPF installer,
if the user doesn't have permissions to capture.  Update the message
to reflect that (although that's wrong if you directly run dumpcap or
run it via TShark - this needs to be cleaned up in some fashion).

Fix a capitalization error while we're at it.

In the code that generates the main screen message to which the dumpcap
message refers, add a comment saying that, if the main screen message
changes, dumpcap's message should also be updated.
2020-10-24 00:44:36 -07:00
Jeff Widman 08f521fb63 Fix typo: 'filed'->'field' 2020-10-23 21:35:58 -07:00
Gerald Combs 273eb06390 USB HID: Initialize a struct.
Initialize a variable caught by Valgrind. Fixes #16938.
2020-10-23 16:43:06 +00:00
Martin Mathieson e42cc6716e Openflow: fix some item lengths 2020-10-23 10:05:55 +00:00
Lorand Jakab 2663d49559 LISP: add support for vendor specific LCAF
Specified by the IETF LISP WG:

    https://tools.ietf.org/html/draft-ietf-lisp-vendor-lcaf
2020-10-23 09:36:04 +00:00
Chuck Craft 059b64b971 Qt: restore welcome page release string after edit preferences 2020-10-23 07:27:49 +00:00
Gerald Combs 89b7f83541 WSDG: Update some branch name references. 2020-10-23 06:56:28 +00:00
Gerald Combs 6633ca1b90 Fuzz: Don't blame the latest commit.
The latest commit in a fuzz failure report *usually* isn't the problem.
Try to make that more clear.
2020-10-23 06:33:40 +00:00
Stig Bjørlykke 17170ea1fe tls: Use Data dissector when no appdata dissector found
Use the Data dissector to show decrypted data if nothing else is used.
2020-10-23 04:41:33 +00:00
John Thacker 524a28c4b1 QT/CLI: Move max tree items and depth to prefs
Move the maximum number of tree items and maximum tree depth to
preferences instead of hardcoded values. Refer to issue #12584 for
an example VNC capture where real data exceeds the current limit.
2020-10-23 04:18:36 +00:00
John Thacker 56e19bec49 Export Objects: Don't double increment count
Don't double increment the count when saving all Export Objects,
which effectively halves the maximum number allowed.
2020-10-23 03:53:15 +00:00
Stig Bjørlykke 69b1ad68bc data: Enable DecodeAs tls and dtls as Data
Make it possible to DecodeAs tls and dtls traffic as Data.
2020-10-23 03:29:05 +00:00