Commit Graph

80661 Commits

Author SHA1 Message Date
Guy Harris 8fc875db99 Allow the RTP player dialog to be opened even if we're built without libpcap. 2021-05-02 18:07:36 -07:00
Gerald Combs 3de0a93759 GitLab CI: Fix our common rules.
There are three ways to reuse configuration blobs in .gitlab-ci.yml: The
"extends" keyword, YAML anchors, and "!reference" tags. As noted in
https://gitlab.com/gitlab-org/gitlab/-/issues/322992, only the last
method works for job rules. Clean up our common rules and apply them
using "!reference".
2021-05-02 22:01:48 +00:00
Gilbert Ramirez 6555cfe885 Add min/mean delta and min jitter, to the RTP analysis. 2021-05-02 19:58:59 +00:00
Gerald Combs 75c6177fa1 [Automatic update for 2021-05-02]
Update manuf, services enterprise numbers, translations, and other items.
2021-05-02 09:19:54 +00:00
John Thacker a682f45c23 BGP: Update and fix handling of Multiprotocol Extensions
In the MP_REACH_NLRI attribute, break out the Next Hop field into
constituent subfields for different address types. Add a field name
for the NLRI to make it filterable and consistent with the standard
NLRI attribute. Also add a field name for the withdrawn routes for
the MP_UNREACH_NLRI attribute.

Correct a comment about RFC 2545 and the handling of what it allows,
viz. IPv6 next hop addresses being optionally followed by link-local
next hop addresses.

The above has nothing to do with RFC 2283 allowing multiple <afi, safi,
..., NLRI> tuples (which was impossible to implement, and RFC 2858
later explicitly disallowed), so correct the comment about that.
2021-05-01 09:07:21 -04:00
Chuck Craft e80f6fd768 Qt: URLs to Display Filter Reference and Wiki Protocol pages
Partial fix for #16727
2021-05-01 08:55:28 +00:00
Guy Harris 38f99c09dc sharkd_daemon: fix signed vs. unsigned comparison.
"int argc, char **argv".  If you're looping from 1 to argc, the index
should just be an int; there's no advantage to making it a size_t.
2021-04-30 23:49:20 -07:00
Gerald Combs 49fd57440f GitLab CI: Switch back to explicit scheduling.
It looks like "extends" and YAML anchors don't work for scheduling
rules, at least for the way we're using them. Use explicit rules for
scheduled jobs.
2021-04-30 18:48:20 -07:00
Gerald Combs 69c2e89fe2 GitLab CI: Update the schedule variable name. 2021-04-30 17:37:00 -07:00
Gerald Combs e119c035b3 GitLab CI: Switch back to using "only" for scheduled jobs.
Rules don't seem to support schedule variables.
2021-04-30 16:00:35 -07:00
Gerald Combs d816ebea17 GitLab CI: Fixup a scheduling rule. 2021-04-30 16:00:35 -07:00
Gerald Combs f80227861f Qt: Fix some documentation warnings. 2021-04-30 22:25:17 +00:00
Gerald Combs c603a5f2c1 GitLab CI+tools: Make our clang version configurable.
Track our preferred version of clang using $CLANG_VERSION in
.gitlab-ci.yml. Update validate-clang-check.sh to accept a clang
version.
2021-04-30 21:32:00 +00:00
Gerald Combs ce95951993 GitLab CI: Add a sloccount job. 2021-04-30 13:49:07 -07:00
Gerald Combs bfddd25f3e GitLab CI: Add more restrictions for merged commits.
Move commonly-used rules to their own hidden jobs. Use ".if-merged" to
ensure that our production build and test jobs are run automatically in
wireshark/wireshark and can be run manually in forks.

Note the new manual behavior in the Developer's Guide.
2021-04-30 20:09:33 +00:00
Gerald Combs 018714708f GitLab CI: Submit a URL to Coverity instead of a file.
Trying to upload cov-build output on Windows is currently failing
because the file is too large. Expose the build file as an artifact and
submit its URL instead.
2021-04-30 12:29:17 -07:00
Gerald Combs 6a46e33313 GitLab CI: Restrict when build:ubuntu-dist runs.
Only run build:ubuntu-dist from pushes, and allow it to be manually
built outside the main repository.
2021-04-30 17:28:00 +00:00
Gerald Combs feefb045ee GitLab CI: Miscellaneous updates.
Switch the recent analysis builds from only/when to rules.

Switch the API reference and VS Code Analysis builds to daily.

Remove a no-longer-useful URL.
2021-04-30 09:25:19 -07:00
Guy Harris 57a1514ac7 Cast away the return value of g_strlcpy() and g_strlcat().
Most of the time, the return value tells us nothing useful, as we've
already decided that we're perfectly willing to live with string
truncation.  Hopefully this keeps Coverity from whining that those
routines could return an error code (NARRATOR: They don't) and thus that
we're ignoring the possibility of failure (as indicated, we've already
decided that we can live with string truncation, so truncation is *NOT*
a failure).
2021-04-30 03:19:19 -07:00
Thomas Dreibholz 0914739700 MAC-NR: workaround a gcc 9.3.0 for AMR64 false positive. 2021-04-30 08:43:36 +00:00
Pascal Quantin 5a109265a6 USBLL: allocate address in pinfo pool
The packet pool lifetime is too short for data added to the pinfo
structure

Fixes #17367
2021-04-30 09:32:40 +02:00
Vadim Yanitskiy 9896b1d65d GSM A RR: add missing 10.5.2.82 Extended TSC Set IE 2021-04-30 04:51:45 +00:00
Gerald Combs f7fa73802a GitLab CI: Fix a variable reference. 2021-04-29 21:31:08 -07:00
Gerald Combs 9aee4cdc68 GitLab CI: Try to fix coverity-visual-c++. 2021-04-30 03:18:13 +00:00
Gerald Combs 2d2637c034 GitLab CI: Add a Clang scan-build job. 2021-04-30 02:58:59 +00:00
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