Commit Graph

80636 Commits

Author SHA1 Message Date
Gerald Combs 2b44c77a8d GitLab CI: Add a missing URL. 2021-04-29 19:41:48 -07:00
Gerald Combs 6445af1075 GitLab CI: Fix our curl path on Windows. 2021-04-30 01:53:01 +00:00
Gerald Combs 992b9146e9 GitLab CI: Try to fix our scheduled job logic. 2021-04-29 18:34:37 -07:00
Gerald Combs 3bcdd863b1 GitLab CI: Switch to single line commands. 2021-04-29 17:37:32 -07:00
Gerald Combs 2cad09e89b GitLab CI: Add a Visual C++ Coverity Scan Build job.
Add a "coverity-visual-c++" job which runs Coverity Scan Build on
Windows using Visual C++ and submits the build output to Coverity. Based
on

https://www.synopsys.com/blogs/software-security/integrating-coverity-scan-with-gitlab-ci
2021-04-29 16:57:06 -07:00
Gerald Combs 0630332565 GitLab CI: Add a GCC Coverity Scan Build job.
Add a "coverity-gcc" job which runs Coverity Scan Build on Ubuntu using
GCC and submits the build output to Coverity. Based on

https://www.synopsys.com/blogs/software-security/integrating-coverity-scan-with-gitlab-ci

and

https://gitlab.gnome.org/GNOME/glib/-/blob/8f57a5b9/.gitlab-ci.yml#L481
2021-04-29 23:27:24 +00:00
Guy Harris faf2e62db8 tap_export_pdu: we don't have packet flags, don't claim that we do.
We don't set rec.rec_header.packet_header.pack_flags, so don't set
WTAP_HAS_PACK_FLAGS in the presence flags.  (Copy-and-pasteo?)
2021-04-29 14:27:49 -07:00
Stefan Metzmacher 924e16a22a packet-smb-direct: also call payload dissector if tree is NULL
This is needed to get the COL_INFO and COL_PROTOCOL set
from the payload dissector.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2021-04-29 14:37:57 +02:00
Stefan Metzmacher 92faecc3f7 packet-iwarp-mpa.c: fix mpa_fpdu dissecting without marker pdu fragmentation
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2021-04-29 14:37:07 +02:00
Stefan Metzmacher 16988d2b4f packet-iwarp-mpa: make use of tcp_dissect_pdus() to reassamble pdus
There might be more than one mpa frame in a tcp pdu
or one mpa frame spans more than one tcp pdu.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2021-04-29 14:33:04 +02:00
Marius David f25c3ccc08 Update Keysight/Ixia netflow fields support. 2021-04-29 09:37:21 +00:00
Pascal Quantin 00b0cb180a RTPS: initialize guid.fields_present field
Fixes #17365
2021-04-29 08:17:00 +00:00
Pascal Quantin d8dedddf8a RTPS-PROC: fix a possible NULL pointer dereference spotted by Coverity
Fixes CID 1477404
2021-04-29 07:53:16 +00:00
ismaelrti b46d244a9b RTPS: Fixed crash when dissecting Type Code info.
Fixed crash when dissecting Type Object larger than 100 elements. Added
protocol option for setting up the maxumun number of Type Object elements to show.
2021-04-29 07:36:30 +00:00
Preston Hunt 4b41dc87d3 IEEE 802.11: display Partial TSF as microseconds
To save space, the value of Partial TSF is stored shifted to the right
by 10. When displaying to the user, shift it back to the left by 10 and
display as microseconds.
2021-04-28 17:16:50 -07:00
Pascal Quantin 40bc53a129 NVMe: do not use packet scope memory for BASE_CUSTOM fields
As the fallback string is not formated, use val_to_str_const() instead
Fixes #17364
2021-04-28 21:49:16 +00:00
Guy Harris eb4d68033e Don't cast away upper bits when assigning to a nstime_t's secs field.
The secs field is a time_t, which is not necessarily 32 bits.  If it's
not, casting away the upper bits, by casting to guint32, introduces a
Y2.038K bug.

Either cast to time_t or, if you're assigning a time_t to it, don't
bother with the cast.
2021-04-28 21:31:15 +00:00
Jirka Novak 21b334fd82 RTP Player: Export of audio can start at position of play cursor
Added additional option for audio exporting 'From cursor'.
Documentation updated.
2021-04-28 20:29:02 +00:00
Pascal Quantin ebdb6784fa wslua: fix compilation with gcc 11
Fixes the misleading-indentation warning
2021-04-28 20:12:19 +00:00
Guy Harris 3bfe597f5b etl: fix handling of the packet flags.
Use #defines, not numbers, for inbound and outbound. and test only the
direction part of the packet flags, in case any other bits are set.
2021-04-28 19:10:57 +00:00
Guy Harris 4e9d2be9ae validate-clang-check: fix extracting the file basename. 2021-04-28 11:35:31 -07:00
Moshe Kaplan 00b86cf64d wslua: Fix crash on FieldInfo.range and FieldInfo.value for a nonexistent TVB
Fields such as '_ws.expert' have no underlying tvb; they are added
with offset 0 and length 0 and the field's underlying tvb is NULL. FieldInfo__call
passes tvb to tvb_memdup() without checking if the tvb is null and
assumes that a NULL tvb means that the tvb is expired and therefore raises an error:
"epan/tvbuff.c:477: failed assertion "tvb && tvb->initialized"

Fields such as '_ws.expert.group' have no underlying tvb; they are added
with offset 0 and length 0 and the field's underlying tvb is NULL. FieldInfo_get_range
calls push_TvbRange, which assumes that a NULL tvb means that the tvb is expired
and therefore raises a lua error of "expired tvb".

This commit explicitly adds a check to FieldInfo__call() to see if the tvb is null when
attempting to access the underlying tvb.

It also explicitly checks if the tvb is null when attempting to access the range
and if it is, returns nil. This is consistent with how FieldInfo.source also
returns nil for such fields.

This commit should fix issue #13542.
2021-04-28 16:59:54 +00:00
Gerald Combs 0caf4b74c0 GitLab CI: Disable Fedora tests for now.
The test:rpm-fedora job is currently failing with:

$ dnf install -y build/packaging/rpm/RPMS/x86_64/*.rpm
Fedora 34 openh264 (From Cisco) - x86_64        6.4 kB/s | 2.5 kB     00:00
Fedora Modular 34 - x86_64                      8.4 MB/s | 3.8 MB     00:00
Fedora Modular 34 - x86_64 - Updates            500 kB/s | 754 kB     00:01
Fedora 34 - x86_64 - Updates                     11 MB/s | 5.8 MB     00:00
Fedora 34 - x86_64                               21 MB/s |  57 MB     00:02
Error:
 Problem: conflicting requests
  - nothing provides libminizip.so.2.5()(64bit) needed by wireshark-qt-3.5.0rc0_1661_ge2e4b79d0dd3-1.x86_64

It looks like this is due to Fedora 34 and later shipping with
minizip-3.0: https://src.fedoraproject.org/rpms/minizip.

Disable the test:rpm-fedora job for now until we can find a way to make
it more reliable.
2021-04-28 09:05:04 -07:00
Pascal Quantin e2e4b79d0d M3AP: update release version in header 2021-04-28 13:38:22 +02:00
Anders Broman cb10c0f53a M3AP: Only version updated, no code changes. 2021-04-28 11:17:40 +00:00
Martin Mathieson e8fd04a145 DCT2000: Lookup xnap and ngap protocols 2021-04-28 10:37:16 +00:00
Guy Harris 0d12050e5e validate-clang-check: fix some issues.
Not all shells support [[ ]] compound commands; it's not in the most
recent Single UNIX Specification I could see, and the
ubuntu-clang-other-tests job is reporting

    tools/validate-clang-check.sh: 18: [[: not found

Don't use [[ ]].

In addition, if you change extcap/etl.c, it tries to run clang-check on
it, but that file builds, and is only built, on Windows, so clang-check
fails dismally on UN*Xes.  Omit it for now.
2021-04-28 10:02:02 +00:00
Pascal Quantin ebafa3a4b9 NAS 5GS: add NAS 5GS protocol to TCP port decode as table
This is useful to decode NAS messages received in a N3IWF
2021-04-28 09:39:04 +00:00
Guy Harris 5af65b3a92 tfshark: fix compilation.
Note: "compilation", not "operation" - after I got it to compile, it
crashed when I tried to run it on a JPEG file.
2021-04-28 01:22:41 -07:00
Richard Sharpe 855662f8dc ieee80211: Fix the handling of the ISTA Availability bit map.
Forgot to multiply by 8. So we get garbage displayed once the number of
bits is more than 15.

Change-Id: I069b9a9f47e3fa15ad9ae404a70555561fb496ba
2021-04-28 04:39:45 +00:00
Jeff Dyer cd0950adeb DIAMETER: Add two new AVPs discovered in CCA from Huawei OCS on SMS rating.
Test: Build and view capture
2021-04-27 20:28:01 +00:00
Alex Sirr f4ba2c7545 Update packet-dcerpc-taskschedulerservice.c 2021-04-27 20:11:59 +00:00
Alex Sirr 31165fbbce remove comment 2021-04-27 20:11:59 +00:00
Alex Sirr 17ae0f6be2 DCERPC - Add dissector for ITaskSchedulerService 2021-04-27 20:11:59 +00:00
Preston Hunt ec14bbd892 IEEE 802.11: decode RSTA availability duration
RSTA Availability Duration has units of 100 microseconds. Display it as
ms for readability.
2021-04-27 19:47:12 +00:00
Guy Harris bdc878e2f7 wiretap: clean up freeing of if_filter options.
Use if_filter_free() in wtap_block_free_option(), don't duplicate it.

Move if_filter_dup() and if_filter_free() before the latter is first
used.
2021-04-27 10:22:00 -07:00
Jirka Novak 02107e6abe RTP Player: Fixed issue when keys were not processed till mouse clicked 2021-04-27 18:08:28 +02:00
Martin Mathieson 1b2fdeca13 PTP: Fix a couple of spelling errors 2021-04-27 10:01:37 +00:00
Guy Harris 80a6e34d81 rtps-virtual-transport: fix printing of 64-bit integers.
There is no guarantee that "%l[doux]" are correct for 64-bit integers.
Use G_GUINT64_FORMAT for unsigned 64-bit integers.
2021-04-27 02:07:31 -07:00
Luis Colmenero 3cdbbcdfb9 RTPS-VT: New dissector to enhance the RTPS protocol
Added dissectors for RTPS Virtual Transport and RTPS Processed Protocols

RTI Connext DDS can capture RTPS-related traffic by using the Network Capture
Utility. The generated .pcap capture files will follow these protocols,
establishing a format for how information must be saved, and then
parsed. This will improve debuggability by including additional information
obtained from within Connext DDS.

RTPS-VT parses the information related to the transport. It then, calls
the RTPS-PROC dissector, which handles the rest: calling the RTPS
dissector when needed, and parsing additional information such as the
one related to security.
2021-04-27 06:15:42 +00:00
Gerald Combs 2549e51ee4 Remove unneeded c-ares checks.
C-ares has been mandatory since 451a241e50. Remove some checks that are
no longer needed.

Rename OPTIONAL_DLLS to THIRD_PARTY_DLLS and OPTIONAL_PDBS to
THIRD_PARTY_PDBS in CMakeLists.txt, which is more accurate.
2021-04-27 05:36:49 +00:00
Wolfgang Steinwender ff9a89c8a2 http2: Rename GOAWAY Promised-Stream-ID to Last-Stream-ID
According to the RFC, the stream ID in a GOAWAY frame is called Last-Stream-ID.
2021-04-26 21:36:45 +00:00
Pascal Quantin c713fb3b7d Windows: move ENABLE_VLD to CMakeOptions.txt 2021-04-26 21:37:06 +02:00
Preston Hunt 21474fa308 IEEE 802.11: add dissection of FTM R2I/I2R reps
The max I2R and R2I repetition field values are one less than the actual
value. Display the actual count when displaying to the user.
2021-04-26 11:43:09 -07:00
Jirka Novak c1084fe97e RTP Player: Settings for enabling use of disk as temporarly store
New advanced settings are created:
- rtp_player_use_disk1 - controls if decoded samples are stored in
  memory or on disk.
- rtp_player_use_disk2 - controls if dictionary for decoded samples
is stored in memory or on disk.
- documentation updated
2021-04-26 10:57:22 +02:00
Uli Heilmeier fd14396972 PTP: Check for enough bytes
Make sure we have enough bytes for Length and Type fields before we read
from tvb.
Using existing msg_len for the checks.

Closes: wireshark/wireshark#17355
2021-04-26 07:45:18 +00:00
Tomasz Moń 340019b233 USBLL: Group packets into transactions
Move USB state machine tracking into one function. Do not store source
and destination addresses, simply generate them based on transaction
info and state when needed.

Related to #15908
2021-04-26 07:28:30 +00:00
Roland Knall 2448f6da57 BCG729: Fix url
Apparently the website was reworked and the link has to be changed
2021-04-26 08:41:17 +02:00
Jirka Novak 71bd81efd4 RTP Player: Fix of clang compilation error 2021-04-25 22:08:49 +02:00
Jirka Novak 54b7886a5e RTP Player: Memory consumption improvements
Audio for play is now decoded and stored without silence parts.

Changes:
- ui/qt/utils/rtp_audio_file.cpp created to handle silence skipping
- ui/qt/rtp_audio_stream.cpp refactored to support it
- Fixed issue with exporting streams: File synchronized export was missing
leading silence.
- No line is shown in waveform graph if there is silence
2021-04-25 19:34:52 +02:00