Commit Graph

79757 Commits

Author SHA1 Message Date
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
John Thacker eff595db67 macos-setup: Update Python for Big Sur and Apple Silicon (arm)
Python 3.9.1 is the first version of Python to support Big Sur and
Apple Silicon (https://www.python.org/downloads/release/python-391/),
and Python 3.7.6 is the last version with a 64-bit/32-bit binary installer
for macOS X 10.6 (Snow Leopard) to 10.8 (Mountain Lion) provided.
2021-01-08 12:04:24 +00:00
Dario Lombardo d6bd8d2c3d drb: fix compiler warnings.
[1/1] Building C object epan/dissectors/CMakeFiles/dissectors.dir/packet-drb.c.o
../epan/dissectors/packet-drb.c: In function ‘dissect_drb_object’:
../epan/dissectors/packet-drb.c:39:43: warning: pointer targets in passing argument 4 of ‘dissect_rbm_inline’ differ in signedness [-Wpointer-sign]
   39 |  dissect_rbm_inline(tvb, pinfo, obj_tree, offset, &type, &value);
      |                                           ^~~~~~
      |                                           |
      |                                           gint * {aka int *}
In file included from ../epan/dissectors/packet-drb.c:16:
../epan/dissectors/file-rbm.h:15:85: note: expected ‘guint *’ {aka ‘unsigned int *’} but argument is of type ‘gint *’ {aka ‘int *’}
   15 | void dissect_rbm_inline(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree, guint* offset, gchar** type, gchar** value);
      |                                                                              ~~~~~~~^~~~~~
2021-01-08 10:48:42 +00:00
David Perry b758fdaede Add iso8601_to_nstime() for editcap and nettrace
This adds a function to parse a string date-time in ISO 8601 format into
a `nstime_t` structure. It's based on code from epan/tvbuff.c and
wiretap/nettrace_3gpp_32_423.c and meant to eventually replace both.
(Currently only replaces the latter.)

Since most of Wireshark expects ISO 8601 date-times to fit a fairly
strict pattern, iso8601_to_nstime() currently rejects date-times without
separators between the components, even though ISO 8601 actually permits
this. This could be revisited later.

Also uses iso8601_to_nstime in editcap to parse the -A/-B options,
thus allowing the user to specify a time zone if desired. (See #17110)
2021-01-08 09:18:39 +00:00
Martin Kaiser 73cef353bf ansi bsmap/dtap: remove variables that are always 0
For ansi bsmap/dtap statistics, we only have a single table at index 0.
2021-01-07 21:23:43 +00:00
Dario Lombardo 07c2439714 gitlab-ci: reuse tarball from ubuntu-dist in rpm. 2021-01-07 19:03:36 +00:00
Dario Lombardo 6b0f2ead7a rpm: disable double dash check on fedora.
Standard naming convention in Wireshark generates a version that
make the rpm build fail on Fedora. Since we've not evidence that
this happens on other platforms, just disable on that one.
2021-01-07 19:03:36 +00:00
Dario Lombardo e0f1c67970 cmake: make rpm-package dependent from dist target. 2021-01-07 19:03:36 +00:00
Pascal Quantin 102a53c852 NR RRC: upgrade dissector to v16.3.0 2021-01-07 15:07:56 +01:00
Dario Lombardo 53651da5f7 dns: fix compiler warnings. 2021-01-07 13:50:17 +00:00
Dario Lombardo 2702956d9b tcp: fix compiler warnings. 2021-01-07 13:50:17 +00:00
Martin Mathieson 27b2d71bc0 Update RLC Graph screenshot user manual. 2021-01-07 13:20:16 +00:00
Pascal Quantin 3551dfe56e LTE RRC: upgrade dissector to v16.3.0 2021-01-07 12:22:46 +00:00
Pascal Quantin 15b574de49 LPP: upgrade dissector to v16.3.0 2021-01-07 11:48:43 +00:00
Alex Nik 6fb9455327 description of the RLC Graph menu item + screenshot
minor fixes

applying sme suggestions

minor fixes
2021-01-07 11:11:11 +00:00
Peter Wu 2e0dda9e03 CMake: Reduce "Generating plugin.c" noise during the build
With Ninja, the build is unnecessarily noisy:

    [21/81] Generating plugin.c
    Generated plugin.c for l16_mono.
    [22/81] Generating plugin.c
    Generated plugin.c for G711.

Avoid writing `Generated plugin.c for G711` and generate a single line
such as `Generating plugins/codecs/G711/plugin.c` instead.

Do not write the absolute path to plugin.c, this should hopefully help
with reproducible builds that are independent of the build directory.
2021-01-07 10:19:04 +00:00
Jirka Novak 1d43b2a3aa Telecom dialogs: Fixed issues during capture file closing
When capture file is closing/closed, dialogs do not disable buttons which
can't work without capture file. Patch fixes it.
2021-01-07 09:56:18 +00:00
Jirka Novak 55075f6e8d Fix: SIP Flows dialog can't be open when VoIP Calls dialog is opened
Patch fixes issue when SIP Flows dialog can't be open when VoIP Calls dialog
is opened and vice versa.
2021-01-07 08:56:14 +00:00
Dario Lombardo dd13766fb9 Qt: fix memleak in DecodeAsDelegate. 2021-01-07 08:37:22 +00:00
Dario Lombardo 602a1ef613 Qt: fix leak in DecodeAsModel.
The list of items was free'd, but not the items within it. Delete
them explicitly and do it in the class destructor.

Fix: #17127.
2021-01-07 08:37:22 +00:00
Alexis La Goutte 0f7ec0694e ieee80211: Add HE 6Ghz Band Capabilities
For WiFi6E

Close #17096
2021-01-06 19:33:44 +00:00
Dr. Lars Völker 1546a0af26 TECMP: Fixing wrong size of HW version in Status CM Msg (Bugfix)
The HW version is correctly parsed as 2 bytes but shown as 3 bytes in
the dissection. This is fixed here.

Fixes #17133
2021-01-06 17:42:16 +01:00
Anders Broman 1c12c99b13 Fix duplicated fileter names 2021-01-06 11:30:19 +00:00
Moshe Kaplan 21ee5be5fe WSDG: Update section "Adding a basic dissector"
Minor restructuring and clarified phrasing to
improve clarity.
2021-01-06 10:52:31 +00:00
Alex Nik 8427aef42c WAP-WSP packet counter menu item [docs] 2021-01-06 10:14:05 +00:00
Alex Nik a5e1527d9f description of the Osmux menu item 2021-01-06 09:15:19 +00:00
Alex Nik acf8f8b0b9 GSM menu item in telephony is described 2021-01-06 08:54:34 +00:00
Gerald Combs 7910a5c4ba Release notes: Fixup the new protocols section.
Fix the New Protocol Support markup and add new protocols.
2021-01-06 03:15:34 +00:00
Pascal Quantin 7ace905366 F1AP: upgrade dissector to v16.4.0 2021-01-05 22:20:08 +00:00
John Thacker d74bfc569e macos-setup: Update CMake for Apple Silicon
Apple Silicon requires CMake 3.19.2, but the binaries provided
for 3.19.2 only run on MacOS 10.10 and later, so we have more
bifurcation of the CMake we try to install. Get rid of some of
the old 2.x paths to compensate.
2021-01-05 22:00:58 +00:00
Pascal Quantin fc49e2fb6e E1AP: upgrade dissector to v16.4.0 2021-01-05 21:32:26 +00:00
Pascal Quantin b0abc6f380 XnAP: upgrade dissector to v16.4.0 2021-01-05 22:11:38 +01:00
Pascal Quantin d0bf9c1571 NGAP: upgrade dissector to v16.4.0 2021-01-05 20:33:14 +00:00
Joey Salazar 0dcf1ab024 git: parse sideband control code from pkt-lines
In Git's packfile transfer protocol[1], a pkt-line can start with \1, \2, or \3
to represent whether this line contains packfile data (1), progress information (2),
or an error (3). Parse out this information as a field to make it easier for people
debugging to filter to the pkt-lines of interest to them.

[1] https://www.kernel.org/pub/software/scm/git/docs/technical/pack-protocol.html

Related to #17093
2021-01-05 19:54:43 +00:00
Alex Nik dc8ad07ce7 The exporting PDUs to file section is written. The window screenshot is added
fixed the display filter explanation, corrected the screenshot, added the levels description

minor changes to export PDUs to file section

adding important part about exporting PDUs by AndersBroman comment

applying SME suggestions
2021-01-05 19:36:43 +00:00
Alex Nik 78bbd1784e bsmap and dtap statistics windwos are described
adding Map Operation Statistics

Implementing SME suggestion

SME suggestion is applied
2021-01-05 17:59:20 +00:00
Alex Nik fbb9ae4f47 missing is removed. the description is merged in 887 MR 2021-01-05 17:02:34 +00:00