Commit Graph

79541 Commits

Author SHA1 Message Date
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
Anders Broman d139fe3bc7 LTE-RRC: Fix duplicated filter names. 2021-01-05 15:13:12 +00:00
Alex Nik 71128b0d73 description for ISUP Messages menu item 2021-01-05 14:28:16 +00:00
Pascal Quantin 098dc4843a X2AP: upgrade dissector to v16.4.0 2021-01-05 15:06:41 +01:00
Pascal Quantin 40c1ab88da S1AP: upgrade dissector to v16.4.0 2021-01-05 13:42:31 +00:00
Alex Nik 11bec9b0b5 description of the MTP3 menu item 2021-01-05 13:22:52 +00:00
Alex Nik b816d5de5c description of the H.225 menu item 2021-01-05 13:02:34 +00:00
Martin Mathieson 445df19e7c PDCP NR: Get DRB params when RLC not present 2021-01-05 11:56:11 +00:00
Dr. Lars Völker 8902386c76 UAT: Adding support for uint64 (dec/hex), int64 (dec)
This patch adds 64bit support for uint and int to uats.
2021-01-05 11:20:47 +00:00
Stig Bjørlykke c1ba732861 Qt: Set Packet List scrollbar page step
Set the Packet List scrollbar page step to be equal to the height
of the scrollbar.

This makes page stepping using the packet list slider more natural.
2021-01-05 08:21:13 +00:00
Stig Bjørlykke 7980f25f99 Qt: Fetch OverlayScrollBar sliderPosition from the real ScrollBar
In OverlayScrollBar return the real ScrollBar sliderPosition to ensure
the correct value is used when handling the actionTriggered signal in
vScrollBarActionTriggered().

This improves turning on and off auto scroll during capture when page
stepping using the packet list slider, because the value is propagated
after this signal.
2021-01-05 08:04:14 +00:00
David Perry 718cff5264 Initial refactor of nettrace reader (#17009)
Old behaviour is to read the entire file into memory at once; provide
the XML tree as the first packet; and then individual `<msg>` elements
as subsequent packets. It did this by writing to a temporary pcapng
file.

This change causes the XML file to only be read a chunk at a time (and
be read directly, not through an intermediate pcapng). This means much
larger files can be loaded, at the cost of no longer showing the raw XML
as the first packet. This is not a loss because the file can be loaded
in MIME Files Format (or a text editor) to see the XML.

Much of the logic from the old functions `create_temp_pcapng_file()` and
`write_packet_data()` has been relocated into the new function
`nettrace_msg_to_packet()`, and is used to directly generate packet data
for wiretap instead of writing it to a temporary file.

Also includes some initial "code smell" fixes:

- Removed some duplicate `#define`s from epan/exported_pdu.h
- Replaces some magic numbers with macros from epan/exported_pdu.h
- Replaces other magic numbers with the CLEN() macro to make it easier
  to see (and debug) where sizes/offsets come from
- Use `g_strstr_len()` instead of `strstr()` to remove the need to
  insert string terminators
- Uses direct pointer math instead of indexing into a byte array

This compiles and runs, and seems to produce the same results as the old
reader (except for the XML packet). Consider it a proof of concept; it
needs further revision before being review-ready.
2021-01-04 15:20:27 +00:00
Rickard Holmberg 84eeeabde9 Update to DICOM Edition 2020e 2021-01-03 23:23:24 +01:00
Orgad Shaneh 4003a5f3ce TPNCP: Fix exception for commands/events without CID
+ Simplify length checks
2021-01-03 20:37:05 +00:00
Gerald Combs dfc05555eb [Automatic update for 2021-01-03]
Update manuf, services enterprise numbers, translations, and other items.
2021-01-03 17:38:31 +00:00
Jirka Novak 7928f81b10 RTP processing: Modified RTP sequence verification
The patch changes:
- Removed first_packet_mac_addr staff. It was commented out many years ago...
- Removed delta_timestamp item. Not used.
- Sequence verification takes into account timestamp therefore it is able to detect delayed packets more clearly. As consequence of it, #16330 is solved.
- If packet is delayed, it is not used in calculation of diff/jitter/skew. It just mess output. As consequence of it, #16330 is solved.

I checked output with many RTP streams and looks well. But I have no
sample with wrapped timestamp and I have just a few samples with
missing/reordered packets. Nevertheless all are calculated same way as
before and #16330 is solved too.
2021-01-03 16:53:21 +00:00
Dario Lombardo 85deb99637 ntp: remove size constraint for invalid refid.
When the refid contains non-ascii chars, the conversion function
returns a string longer than 4 chars. This results in an invalid
string if the output is limited to 4 bytes. Incidentally this
results in an invalid PDML output as well that caught this bug
in the first place.

Fix: #17112.
2021-01-03 14:53:28 +00:00