Commit Graph

79593 Commits

Author SHA1 Message Date
Dr. Lars Völker fab3070e79 TECMP: Adding heuristics support for CAN and FlexRay messages
This patch adds support for TECMP to hand over CAN and FlexRay
messages to heuristics dissectors registers.
2021-01-14 20:12:36 +00:00
Dr. Lars Völker 4d515f70af AUTOSAR-NM: Adding support for PDU ranges and clean up
This patch:
- adds support for PDU ranges instead of one single PDUs
- simplifies the dissection code for CAN messages
- cleans up some some comments
2021-01-14 18:36:49 +00:00
Pascal Quantin 5f36e597a0 NBAP: regenerate dissector from ASN.1 source 2021-01-14 16:24:04 +01:00
Dr. Lars Völker 0636906880 CAN: fixed heuristics of CAN
This patch adds heuristics support for regular CAN-IDs. Until now,
only extended CAN-IDs were support. That did not make sense.
Fixes #17128.
2021-01-14 14:54:55 +00:00
Dario Lombardo 60414fa60f Revert "Qt: fix memleak in DecodeAsDelegate."
This reverts commit dd13766fb9.
2021-01-14 13:38:53 +00:00
Dr. Lars Völker 238446dc91 AUTOSAR-NM: True-False-String wrong way around for PNI (BUGFIX)
This patch fixes the PNI TFString, which was wrong. Correct is:
0 = "... contains no Partial Network ..."
1 = "... contains Partial Network ..."

Fixes #17154
2021-01-14 13:18:12 +00:00
Anders Broman cb8c64f521 Fix duplicated filter names 2021-01-14 12:22:21 +00:00
Dr. Lars Völker fba99bdef1 DoIP: Make finding start of message more robust
This patch allows the DoIP dissector to better identify the start
of messages, if the start of the TCP connection is missing or
packet loss occurred in the trace.

Fixes: #17149
2021-01-14 11:45:07 +00:00
Gerald Combs 45e6575699 WiX: Update the README.
Migrate packaging/wix/README to AsciiDoc and update its contents. Update
a comment in Wireshark.wxs.
2021-01-14 10:36:48 +00:00
Martin Kaiser d9abd5005d gsm_a_common: remove a variable that is always 0
All of the stat_tap_table_ui structs use a single table at offset 0.
2021-01-14 10:19:49 +00:00
Martin Kaiser dedfbc9d20 gsm_map: remove a variable that is always 0
There's just one table at index 0.
2021-01-14 10:02:19 +00:00
Martin Kaiser af6507c71f ansi_map: remove a variable that is always 0
Yet another case where we have a single table.
2021-01-14 09:42:23 +00:00
Martin Mathieson 765ce11b3f Fix value_string consecutive repeated strings
Detected by adding another check under
ENABLE_CHECK_FILTER to look for consecutive labels likely
to have been left as copy/paste errors.  Change to proto.c probably too messy
to merge.
2021-01-14 09:21:15 +00:00
Martin Kaiser 26e4b84623 camel: remove a variable that is always 0
This is another case where we have a single table at index 0.
2021-01-14 09:04:32 +00:00
Pascal Quantin a07898a280 Windows: add a notice to NSIS in case of BSOD while installing Npcap 2021-01-13 22:02:40 +00:00
Pascal Quantin 511aeaa44a Windows: fix USBPcap page link display in NSIS installer 2021-01-13 22:35:21 +01:00
Stig Bjørlykke 5db887753a lwm2mtlv: Update to Core V1.1.1 spec
Added LAC (Location Area Code) resource to Connectivity Monitoring.
2021-01-13 20:02:56 +00:00
Pascal Quantin 77043708fe PER: remove an unused expert info field 2021-01-13 16:24:30 +01:00
Pascal Quantin 6178fe94ef PER: fix a typo 2021-01-13 16:23:03 +01:00
Pascal Quantin 3e84673c5f NAS 5GS: add a value string for standardised SST values 2021-01-13 14:46:40 +01:00
Joakim Karlsson 8b487e22e0 Qt: fix build error with older GCC
qt-5.12.2/include/QtCore/qstring.h:291:31: note: candidate 1: QString
QString::arg(double, int, char, int, QChar) const
     Q_REQUIRED_RESULT QString arg(double a, int fieldWidth = 0, char
fmt = 'g', int prec = -1,

qt-5.12.2/include/QtCore/qstring.h:975:16:
note: candidate 2: QString QString::arg(int, int, int, QChar) const
 inline QString QString::arg(int a, int fieldWidth, int base, QChar
fillChar) const

wireshark/ui/qt/rtp_analysis_dialog.cpp:926:77:
error: ISO C++ says that these are ambiguous, even though the worst
conversion for the first is better than the worst conversion for the
second: [-Werror]
             .arg(abs(r_calc.start_time_ms - f_calc.start_time_ms), 0,
'f', 6)

Change-Id: I6a27adff3b03bcfeac8fb56ceb0833d2707000b5
2021-01-13 11:54:08 +00:00
Anders Broman 92cc8096a3 PER: Add a check for avalable data in open type dissection. 2021-01-13 10:42:54 +00:00
Martin Kaiser 09426b2cd5 dhcp: remove a variable that is always 0
For dhcp statistics, we only have a single table at index 0.
2021-01-13 09:45:22 +00:00
Martin Kaiser a2b7925708 DVB-CI: fix parameter names for payload functions
82891e37e9 ("DVB-CI: Convert circuit API to conversation API") updated the
payload functions to use conversations instead of the circuit API.

The parameters were renamed from circuit to conv in the function
implementations, but not in the prototypes. This patch renames the
parameters in the prototypes as well.
2021-01-13 09:28:58 +00:00
Uli Heilmeier 02f2d18b2e SIP: Fix parsing of multiple contact-param
contact-params are optional (s. https://tools.ietf.org/html/rfc3261#section-20.10).
Therefore, independently of contact-params, we should also check for additional contact-param.

Fixes: wireshark/wireshark#13752
2021-01-13 09:11:59 +00:00
Martin Kaiser 132d725bdc rpc: remove a variable that is always 0
For the RPC service response time, we only have a single table at index 0.
2021-01-13 08:55:05 +00:00
Martin Mathieson 9700d53e2b PDCP-NR: Trivial updates to some comments 2021-01-12 22:29:38 +00:00
Moshe Kaplan e6a93a313b Qt: Debounce Preferences -> Advanced menu's "Search" to improve UX
As running pd_ui_->advancedView->expandAll() takes a noticeable amount
of time and so would introduce significant lag while typing a string
into the Search box, we instead debounce the call to
updateSearchLineEdit(), so that it doesn't run until a set amount of
time has elapsed with no updates to the Search field.

If the user types something before the timer elapses, the timer restarts
the countdown.

Fixes #17107
2021-01-12 22:11:47 +00:00
Martin Mathieson 9d62e96411 Fix a couple of user-guide spelling errors. 2021-01-12 21:42:10 +00:00
Dr. Lars Völker 69710ff117 DoIP: Adding 2019 DoIP Type
Adding ISO13400-2019 DoIP Version 3.
2021-01-12 19:38:14 +00:00
Vadim Yanitskiy 5d8105752d GSMTAP: dissect SRO/SRR (SACCH Repetition) bit in L1 SACCH header
For more details, see 3GPP TS 44.004:

 - section 6.1 "Physical layer protocol fields and procedures",
 - figures 7.1.1-2 "SACCH downlink block format",
 - figures 7.2.1-2 "SACCH uplink block format".
2021-01-12 19:14:13 +00:00
Alex Nik 6e801d132c adding the description for UCP Messages menu item 2021-01-12 16:25:15 +00:00
Dario Lombardo 41a4d594b9
proto: replace g_assert_not_reached() with REPORT_DISSECTOR_BUG().
Instead of giving a stack trace when the caller passed bad params,
raise a dissector bug, telling what the callee sees. This should
result in a better user experience.

Simplify code where possible.

Keep glib assertion for dead code due to compiler complains.
2021-01-12 10:24:39 +01:00
John Thacker fb422bed91 Qt: Make the checkSaveAsWithComment dialog box appear.
Set the parent of the QMessageBox in the constructor instead of calling
QMessageBox::setParent(). The latter inherits from QDialog, and it
"clear[s] the window flags specifying the window-system properties for
the widget (in particular it will reset the Qt::Dialog flag)."
(See https://doc.qt.io/qt-5/qdialog.html#details )
This makes the dialog properly appear instead of attempting to save a file
with comments to a file type that does not support comments silently failing.
Fixes #17146.
2021-01-12 07:11:35 +00:00
Yehudah Aaron ab42a5dc41 WSDG: Remove reference to Gerrit, as it's no longer used
In the Wireshark Developer's Guide's "Tool Reference" chapter
remove the reference to Gerrit, as it's no longer used.
2021-01-12 06:08:21 +00:00
John Thacker d612e19767 macos-setup: Allow installing QT 5.14
Allow QT version 5.14.x to be installed (if specified as a variable
on the command line.) Remove the ability to install 5.2.x, as QT 5.3
has been the minimum required version since the Wireshark 3.4 branch.
Note that QT no longer providers offline installers for the free releases
of 5.15 and later, so we'll have to come up with a different method.
(See http://download.qt.io/archive/qt/5.15/5.15.0/OFFLINE_README.txt
and https://www.qt.io/blog/qt-offering-changes-2020 )
2021-01-11 21:32:22 +00:00
Anders Broman c523356c3b Fix duplicated filter namecated fileter names 2021-01-11 19:20:10 +00:00
Chema Gonzalez 03baf65ae7 editcap: add support for epoch timestamps in `-A` and `-B` options
Inspired in https://gitlab.com/wireshark/wireshark/-/merge_requests/1618.

Tested:

Timestamps on file used for comparison:
```
$ tshark -r test/captures/snakeoil-dtls.pcap -T fields -e frame.time_epoch
1150121069.248818000
1150121069.249193000
1150121069.251152000
1150121069.251384000
1150121069.293686000
1150121069.319315000
1150121075.230753000
1150121105.510885000
1150121105.510934000
```

Before:
```
$ ./build/run/editcap -B 1150121069.3 test/captures/snakeoil-dtls.pcap -
editcap: "1150121069.3" isn't a valid date and time
$ ./build/run/editcap -A 1150121069.3 test/captures/snakeoil-dtls.pcap -
editcap: "1150121069.3" isn't a valid date and time
$ ./build/run/editcap -A 1150121069 test/captures/snakeoil-dtls.pcap -
editcap: "1150121069" isn't a valid date and time
$ ./build/run/editcap -B 1150121069 test/captures/snakeoil-dtls.pcap -
editcap: "1150121069" isn't a valid date and time
```

After:
```
$ ./build/run/editcap -A 1150121069.3 test/captures/snakeoil-dtls.pcap - | tshark -r - -T fields -e frame.time_epoch
1150121069.319315000
1150121075.230753000
1150121105.510885000
1150121105.510934000
$ ./build/run/editcap -A 1150121069 test/captures/snakeoil-dtls.pcap - | tshark -r - -T fields -e frame.time_epoch
1150121069.248818000
1150121069.249193000
1150121069.251152000
1150121069.251384000
1150121069.293686000
1150121069.319315000
1150121075.230753000
1150121105.510885000
1150121105.510934000
$ ./build/run/editcap -B 1150121069.3 test/captures/snakeoil-dtls.pcap - | tshark -r - -T fields -e frame.time_epoch
1150121069.248818000
1150121069.249193000
1150121069.251152000
1150121069.251384000
1150121069.293686000
$ ./build/run/editcap -B 1150121069 test/captures/snakeoil-dtls.pcap - | tshark -r - -T fields -e frame.time_epoch
```
2021-01-11 18:01:08 +00:00
Rubin Gerritsen 0e84610676 Bluetooth: Refactor dissection of control proc packets
Now they appear in the correct order.
Some common code snippets are extracted out to separate functions.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2021-01-11 13:56:03 +00:00
Jirka Novak 8dd8491713 Qt framework: Dialogs are correctly notified when capture file was closed
The patch reintroduces WiresharkDialog::captureFileClosed() method and
calls captureFileClosing() and captureFileClosed() in right order.
Both methods call updateWidgets() at its end.

All dialogs were reviewed and captureFileClosing/Closed methods updated
when appropriate.
captureEvent() method in multiple dialogs changed to captureFileClosing/Closed
as it does same actions - looks like old style of detecting of capture
file closing.
2021-01-11 13:30:18 +00:00
Dario Lombardo aad42108e0 imap: fix bug in username retrieve.
Fix: #16874.
2021-01-10 20:56:07 +00:00
Martin Mathieson 514b3d707a PDCP-LTE: Fix level of error string indirection 2021-01-10 20:03:21 +00:00
Uli Heilmeier f6af99045f BGP: Support for RFC9003
RFC9003 obsoletes RFC8203 and updates max length for Shutdown
Communication field from 128 to 255 bytes.
2021-01-10 19:43:44 +00:00
Nardi Ivan bd597dc247 TLS: add support for "delegated_credentials" extension
See: https://www.ietf.org/archive/id/draft-ietf-tls-subcerts-09.txt
2021-01-10 19:25:39 +00:00
Gerald Combs a6ed43e06b [Automatic update for 2021-01-10]
Update manuf, services enterprise numbers, translations, and other items.
2021-01-10 17:01:28 +00:00
Gerald Combs 546dc0270c CMake: Make the rpmbuild output quiet by default.
If CMAKE_VERBOSE_MAKEFILE is false (the default), pass `--quiet` to
rpmbuild.
2021-01-10 15:10:10 +00:00
Gerald Combs 0d820ddc8d Packaging+GitLab CI: Dist tarball updates.
Ninja keeps track of its built files in .ninja_log, so if you copy a
pre-built target into a fresh build directory, Ninja will ignore and
overwrite it. This includes the tarball generated by the 'dist' target.

In get-export-release.sh, check for a preexisting tarball and preserve
it by default. This lets us pass the dist tarball from one GitLab CI
stage to other stages without recreating it. It's also arguably the
right thing to do in general, since we record and publish the tarball
hashes for each release and different contents for the same filename can
cause confusion.

Move the dist tarball to the build directory in .gitlab-ci.yml, and add
a note about using the tarball exclusively.
2021-01-09 19:16:16 +00:00
Eugene Adell 9b0c3f5eaf Just correct the documentation for this obvious mistake. Closes #17141. 2021-01-09 19:07:30 +01:00
Martin Mathieson 4a72be5473 NR-RRC: Set drbid entry properly in mappings 2021-01-09 11:36:22 +00:00
Martin Mathieson 43ec0bd228 PDCP-NR security fixes
- fix level of indirection of error strings for setting keys
- don't try to decode undeciphered user-plane payloads
2021-01-09 00:30:00 +00:00