Commit Graph

79090 Commits

Author SHA1 Message Date
Guy Harris d09e9fe0ea macos-setup: explain why we're running autoreconf on minizip.
[skip ci]


(cherry picked from commit 8b0d19c634)
2020-12-19 07:54:41 +00:00
Guy Harris f647aebf86 macos-setup: fix the name of the -done file for Minizip.
It's minizip-$installed_minizip_version-done, not
zlib-$installed_minizip_version-done; the tarball is
zlib-$installed_minizip_version.tar.gz, because it's a contributed file
in the zlib package, but we don't use zlib in the name of the -done
file.

[skip ci]


(cherry picked from commit 0cdbdcc5a4)
2020-12-19 07:46:25 +00:00
Guy Harris ffb049f040 macos-setup: do "make clean", not "make distclean", for zstd.
It has no configure script, so there's no need for "make distclean", and
the Makefile supplied with it has no "make distclean" rule; just do
"make clean".

[skip ci]


(cherry picked from commit 806f524a10)
2020-12-19 07:21:26 +00:00
Guy Harris 10985f6e27 In Wireshark's version info, indicate whether we were built with Minizip.
We can't determine the version number, as there's nothing in the header
to indicate the version with which we were compiled, nor is there an API
to determine the version with which we're running.


(cherry picked from commit 6498bde741)
2020-12-19 06:42:39 +00:00
Gerald Combs 03ebce0c30 Version: 3.4.2 → 3.4.3.
[skip ci]
2020-12-18 13:57:11 -08:00
Gerald Combs a889cf1b1b Build 3.4.2. 2020-12-18 10:46:47 -08:00
Nardi Ivan 7ac76765fc QUIC: update to draft-33
QUIC (final?) constants for v1 are defined in draft-33


(cherry picked from commit 91bd291b90ab78fa2ccb1eaca27fc1685f6ad0ab)
2020-12-18 07:44:30 +00:00
Gerald Combs 2437f45a49 Prep for 3.4.2. 2020-12-17 16:26:52 -08:00
Guy Harris bd4259557b macos-setup: Update a comment.
Lua isn't the only dependency that doesn't support "make uninstall".

(backported from commit 7d01e3a74e)
2020-12-17 12:33:55 -08:00
Guy Harris d1be8e80e2 Don't assume macOS version numbers are of the form 10.N.
Big Sur goes to 11, and it appears that next year's (San Juan Capistrano?)
will go to 12, and so on.

Split version numbers into major and minor, and do version-number
comparison (alas, whilst CMake has that built in, the Bourne shell
doesn't, and neither does the Bourne-again shell).

This should fix issue #17043.


(cherry picked from commit 8e2815bfc0)
2020-12-17 06:50:37 +00:00
Guy Harris e1535a9aa3 macos-setup: various cleanups.
In uninstall_autoconf, when running uninstall subfunctions, pass the
arguments to the subfunctions.

When uninstalling Ninja, remove the "we've finished installing this"
indicator file.

Get rid of a debugging "set +x".


(cherry picked from commit 9fbf79c045)
2020-12-17 06:23:41 +00:00
Guy Harris 7901947b11 macos-setup: set SDKROOT when running xcrun.
That lets it find the right SDK path if you're not using the default
SDK.

(backported from commit 190442d76e)
2020-12-16 21:59:21 -08:00
Guy Harris 67f0d0ed73 macos-setup: more cleanups.
Fix/update/expand some comments.

Do uninstalls for dependencies using CMake more similarly.

For LZ4, as it comes with a Makefile rather than any
autotools/CMake/etc. configuration, "make distclean" might not be
necessary, so, as it's not supported, just do "make clean".

For libssh, do all removes in the uninstall in a single command, and use
$DO_RM, so that it uses sudo iff /usr/local isn't writable by us.  In
addition, remove the build directory as the equivalent of "make
distclean".

As with libssh, so with brotli.

(backported from commit 02c5f50009)
2020-12-16 21:22:38 -08:00
Gerald Combs 6b950fe6f0 Qt: Force layer backing on Big Sur when needed.
Make sure NSView.wantsLayer is true by setting QT_MAC_WANTS_LAYER=1 at
startup if we're running on Big Sur and we were built with a version of
Qt susceptible to QTBUG-87014. Fixes #17075?


(cherry picked from commit d4b40c0047)
2020-12-17 00:11:52 +00:00
Gerald Combs 4a102163d0 macOS: Add a workaround for libsnappy.
Work around an issue with libsnappy similar to what we do with libssh.


(cherry picked from commit bf45e8c3f1)
2020-12-16 21:39:55 +00:00
Guy Harris 64578cba75 fcdns: the Owner Id field is a 3-octet FC address, not a text string.
Make it FT_BYTES with SEP_DOT, like other 3-octet FC addresses.


(cherry picked from commit 19ffed19bd)
2020-12-16 17:14:54 +00:00
Guy Harris 9bb44ac156 fcswils: fix a comment.
In an ESS capability object, the well-known type and well-known subtype
fields are 1 byte, not 2 bytes.


(cherry picked from commit ed6f6a49aa)
2020-12-16 09:59:27 +00:00
Jaap Keuter 564ec58f6d FC: use ETHERTYPE_UNK when applicable, no excuses
Two interlocking problems cause the dissection of FC to fail in some cases,
as shown in the capture of the related issue.

The FC dissector assumes that ETHERTYPE_UNK in the data structure passed
to it is coming from the MDS header dissector only, and thus that header
sizes have to be taken into account. This is not / no longer the case.
It always passes down ETHERTYPE_FCFT. Therefore the MDS header size
checking does not apply to ETHERTYP_UNK, so is removed as condition.

The other FC related dissectors were forced to setup a data structure to
pass to FC for it to handle that part of the frame. Because these weren't
related to ethernet, these lazily set the ethertype field in the data
structure to 0. This unfortunately matches ETHERTYPE_UNK, triggering the
MDS header size checking in FC, leading to this issue. With the first
problem resolved, now make it explicit that unknown ethertype is indicated
by ETHERTYPE_UNK, not '0'.

Addresses primary part of issue #17084


(cherry picked from commit 3f0fc1b232)
2020-12-15 21:26:37 +00:00
Jaap Keuter e228784c4e FCdNS: use correct header field for field of flags
closes #17084


(cherry picked from commit 354a6fd015)
2020-12-15 20:27:50 +00:00
Nardi Ivan a2ceb50866 QUIC: fix a stack overflow
While at it, fix also a memory leak
Close #17073


(cherry picked from commit 4227e5a1ad)
2020-12-14 11:18:20 +00:00
Gerald Combs f53f5e64d5 [Automatic update for 2020-12-13]
Update manuf, services enterprise numbers, translations, and other items.
2020-12-13 17:27:50 +00:00
j.novak@netsystem.cz c865975463 SNMP: Fix checking of SNMP v3 auth if MD5 method is used
When the user enters row to SNMP Users table in wireshark and Authentication model is set to MD5, row is ignored in processing. The reason is that constant for MD5 is 0, but the code checks if the value is defined by simple 'usm_p.user_assoc' condition. Therefore 0 never succeeds.
As item can have only listed values, I think the check can be removed.
Function verified on sample.

I propose to cherry pick the change to all stable branches.


(cherry picked from commit 7f376c7ced)
2020-12-13 16:47:38 +00:00
Nardi Ivan a16388824b QUIC: fix handling of unencrypted padding data
We must be able to correctly detect valid coalesced packets and
recognize them from random padding.

Close #17011
Close #16914


(cherry picked from commit 0af60377b4)
2020-12-13 11:38:54 +00:00
Andrii Vladyka 4908474b1f DOCSIS: Add FDX support to Downstream Active Channel List MDD TLV
(cherry picked from commit 37f11e9a36)
2020-12-12 20:34:03 +00:00
Pascal Quantin b621801877 Qt: fix crash when opening/saving IP map on Windows
According to https://bugreports.qt.io/browse/QTBUG-20372 you need to close
a QFile before calling fclose, otherwise it leads to an unexpected behavior.
Let's duplicate the file handle to avoid this issue as suggested in
https://stackoverflow.com/questions/9465727/convert-qfile-to-file

Closes #17074


(cherry picked from commit 746051d099)
2020-12-12 14:44:34 +00:00
Jaap Keuter 747a03de06 Qt: Add missing break in Win32 file export init dialog function
(cherry picked from commit b09161d758807a6a08b5afcbfdb416ca0781a946)
2020-12-12 13:50:54 +00:00
Gerald Combs 862a55ae54 Win32: Add an include guard.
Add "#ifdef _WIN32" to file_dlg_win32.c so that it's ignored by
tools/validate-clang-check.sh.


(cherry picked from commit 6e1142c33a)
2020-12-12 12:49:43 +00:00
Gerald Combs bf311c44a5 Tools: skip commit validation for merge trains.
Skip commit validation if it looks like we're in a GitLab merge train.


(cherry picked from commit 404802dc34)
2020-12-12 10:18:33 +00:00
Pascal Quantin 81bcbf0ed6 Qt: create endpoint IP map in temp folder
Closes #17074


(cherry picked from commit 9fb03566c2)
2020-12-12 08:25:57 +00:00
Jaap Keuter 18ada21232 USB-HID: Tertiery is usually three
(cherry picked from commit 976738cd6c)
2020-12-10 22:37:07 +00:00
Pascal Quantin 655cb724fd sshdump: fix detection of custom version in Windows
(cherry picked from commit 10377c4d92)
2020-12-10 06:14:14 +00:00
Gerald Combs 19cf6c5600 GitLab CI: Use our images. 2020-12-09 19:11:23 -08:00
Gerald Combs 273eb0efcc GitLab CI: Remove more external dependencies. 2020-12-10 02:42:10 +00:00
Gerald Combs 1bf7c9a693 CI: Fix Ubuntu tests.
The wireshark/wireshark-ubuntu-dev image was recently upgraded to Ubuntu
20.04. Since then the following tests have been failing:

---- FAILED
test/suite_capture.py::case_wireshark_capture::test_wireshark_capture_from_fifo
FAILED
test/suite_capture.py::case_wireshark_capture::test_wireshark_capture_from_stdin
FAILED
test/suite_capture.py::case_tshark_capture::test_tshark_capture_from_fifo
FAILED
test/suite_capture.py::case_tshark_capture::test_tshark_capture_from_stdin
FAILED
test/suite_capture.py::case_dumpcap_capture::test_dumpcap_capture_from_fifo
FAILED
test/suite_capture.py::case_dumpcap_capture::test_dumpcap_capture_from_stdin
FAILED
test/suite_capture.py::case_dumpcap_autostop::test_dumpcap_autostop_filesize
FAILED
test/suite_capture.py::case_dumpcap_autostop::test_dumpcap_autostop_packets
FAILED
test/suite_capture.py::case_dumpcap_ringbuffer::test_dumpcap_ringbuffer_filesize
FAILED
test/suite_capture.py::case_dumpcap_ringbuffer::test_dumpcap_ringbuffer_packets
FAILED
test/suite_capture.py::case_dumpcap_pcapng_sections::test_dumpcap_pcapng_multi_in_multi_out
FAILED
test/suite_capture.py::case_dumpcap_pcapng_sections::test_dumpcap_pcapng_multi_in_single_out
FAILED
test/suite_capture.py::case_dumpcap_pcapng_sections::test_dumpcap_pcapng_single_in_multi_out
FAILED
test/suite_capture.py::case_dumpcap_pcapng_sections::test_dumpcap_pcapng_single_in_single_out
FAILED
test/suite_clopts.py::case_dumpcap_options::test_dumpcap_interface_chars
FAILED
test/suite_clopts.py::case_dumpcap_options::test_dumpcap_invalid_chars
FAILED
test/suite_clopts.py::case_dumpcap_options::test_dumpcap_valid_chars
----

This is because dumpcap can't load our local libraries after setting cap_net_raw+cap_net_admin:

----
-- Begin stderr for command ('/builds/wireshark/wireshark/build/run/dumpcap', '-D') --
/builds/wireshark/wireshark/build/run/dumpcap: error while loading shared libraries: libwsutil.so.0: cannot open shared object file: No such file or directory
-- End stderr for command ('/builds/wireshark/wireshark/build/run/dumpcap', '-D') --
----

Add $(pwd)/run to our rpath.


(cherry picked from commit ef10cc74d1)
2020-12-10 02:20:08 +00:00
Gerald Combs 10a02a65d7 Version: 3.4.1 → 3.4.2.
[skip ci]
2020-12-09 18:09:17 -08:00
Gerald Combs 1a27f40587 Build 3.4.1. 2020-12-09 14:15:23 -08:00
George Powers 295d0a19fa Fix reported_len in Lua framewark when creating tvb from range.
This bug affects Lua plugin dissectors for encapsulation protocols like
GRE.  Typically the dissector creates a range for the payload packet, then
calls the next dissector with a tvb derived from the range, using
TvbRange_tvb().  The original version calls
tvb_new_subset_length_caplen() using the remaining capture length for the
reported_len argument.  The fix passes -1 as the reported length, and
tvb_new_subset_length_caplen() calculates the new reported_len as required.

The bug only affects large packets captured with a snaplen and
truncated, then decoded with a Lua plugin for the encapsulation header.

Here's the typical bug symptom, gleaned from tshark decode of
an encapsulated IP payload:

        [Expert Info (Error/Protocol): IPv4 total length exceeds packet length (114 bytes)]
            [IPv4 total length exceeds packet length (114 bytes)]

Closes #15655.

(cherry picked from commit e7ec6739b6)
2020-12-09 21:53:32 +00:00
Gerald Combs 01fb136ec9 GitLab CI: Stop installing external dependencies.
Remove the last package installation instances from .gitlab-ci.yml. Add
a comment at the top noting that dependencies should be added to our
Dockerfiles instead.
2020-12-09 13:25:10 -08:00
John Thacker 181eb5cf82 epan: Fix format_text treament of Greek, Arabic, etc.
format_text uses the wrong bitmask when checking for two byte UTF-8
characters, resulting in rejecting half the possible two bytes characters,
including all of Arabic and Greek, and substituting REPLACEMENT CHARACTER
for them. Fixes #17070, and add some comments about the current behavior
that doesn't match existing comments.


(cherry picked from commit 770746cca8)
2020-12-09 13:31:23 +00:00
Yoshihiro Ueda 9cee503a87 SOME/IP: Fixed incorrect resetting offset of static array.
Fixed resetting offset of array to enable only when created tvb subset. Fixes #17057


(cherry picked from commit 2ab153527d)
2020-12-09 11:28:10 +00:00
Stig Bjørlykke b668d0a9d5 Qt: Support ampersand in funnel menu and button
An ampersand in the menu item or a button is used as shortcut, so
use "&&" to get a real ampersand.


(cherry picked from commit c84681aca2)
2020-12-09 10:14:35 +00:00
Stig Bjørlykke d5ea403f8d Qt: Fix packet bytes hover rectangle position
For Qt 5.11 and newer use horizontalAdvance() instead of boundingRect().width()
to calculate the width of a QString to position the hover rectangle position,
and to select which byte(s) to highlight.

Closes #17033.

(cherry picked from commit cb3b469d7f)
2020-12-09 09:54:16 +00:00
Stig Bjørlykke 3cd179d007 Lua: Improve Listener error handling
Fix error handlers in Listener draw() and reset() to avoid getting
LUA_ERRERR from lua_pcall(). Added error handler for Listener draw()
callback.

Handle LUA_ERRERR from lua_pcall() to avoid assert on this.
Changed some capitalized words in various error message.

Closes #16974.


(cherry picked from commit d104571e8a)
2020-12-09 07:46:08 +00:00
Uli Heilmeier 41a97c978d SMB/SMB2: FS Name is always Unicode
According to MS-CIFS sections 2.2.8.2.6 [1] FS Name (or Label) string
is in unicode.

[1]: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-cifs/1011206a-55c5-4dbf-aff0-119514136940

Fixes: wireshark/wireshark#17064


(cherry picked from commit c876b34ed1)
2020-12-09 00:05:42 +00:00
Gerald Combs 1296e05a52 Prep for 3.4.1. 2020-12-08 22:30:50 +00:00
Gerald Combs 3501e40941 GitLab CI: Update lintian excludes.
Add "copyright-excludes-files-in-native-package" to the lintian exclude
list. The wireshark/wireshark-ubuntu-dev image was updated to 20.04
recently, and its lintian added
https://lintian.org/tags/copyright-excludes-files-in-native-package.html.


(cherry picked from commit 7a8a3a8702)
2020-12-08 21:26:54 +00:00
Gerald Combs fa02a5779f [Automatic update for 2020-12-06]
Update manuf, services enterprise numbers, translations, and other items.
2020-12-06 09:26:00 +00:00
Andrii Vladyka e507bee854 DOCSIS: Add FDX Sub-band TLV support in MDD Downstream Active Channel List
(cherry picked from commit 18ae9bd4e2)
2020-12-05 22:22:11 +00:00
Guy Harris d6be39038c editcap: add IDBs to second and subsequent output files.
Remember all the IDBs we've seen from the input file so far and, if
we're writing multiple files (splitting an input file into multiple
output files), add all those IDBs to each of the output files.

Fixes issue #17060.


(cherry picked from commit a11e5261e1)
2020-12-05 21:50:40 +00:00
Andrii Vladyka c3aef32766 DOCSIS: Fixed FDX Sub-band ID/offset TLVs dissection
(cherry picked from commit 708ada8381)
2020-12-04 20:57:07 +00:00