Commit Graph

83576 Commits

Author SHA1 Message Date
Guy Harris 0d357951c3 pflog: byte swap UID and PID fields in the header if necessary. 2022-02-01 16:20:21 -08:00
Chuck Craft 5c020863c7 Qt: Go To Packet field - change from inputMask to QIntValidator
inputMask populates the field with a space for each character
in the mask. Mouse people that click in the field may position
the cursor at the far right of the mask and not be able to enter
a value.
https://www.qtcentre.org/threads/7106-QLineEdit-and-input-mask

Remove the inputMask from the field definition and add a validator.
2022-02-01 21:41:18 +00:00
Stefan Metzmacher a0426314a7 packet-ntlmssp: only mark invalid target_info lists without failing the rest
This copes with invalid target info AvPairs, see
https://bugzilla.samba.org/show_bug.cgi?id=14932
and
https://gitlab.com/wireshark/wireshark/-/issues/17817

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2022-02-01 21:23:48 +00:00
Stefan Metzmacher c9e1c2cf4e Revert "NTLMv2 dissector: skip target info for AUTHENTICATE_MESSAGE"
This reverts commit e8e6a2c6df.

This introduced regression of skipping valid target_info blobs.

The next commit will fix
https://gitlab.com/wireshark/wireshark/-/issues/17817
in a better way.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2022-02-01 21:23:48 +00:00
Vladimir Bespalov 0b2c35986b ZBOSS NCP renamed zbncp.data.joined 2022-02-01 21:23:05 +00:00
Roland Knall a087544ba8 Qt: Fix PacketDialog preference context menu
The context menu is not being filled in the packetdialog popup

Fixes #17803
2022-02-01 19:44:39 +00:00
John Thacker 65b44f4621 docs: tshark: read filter -> display filter
The beginning of the tshark manual talks about read filters and
using the -R option. Switch all that to display filters and -Y,
since that's the typical use now, with -R limited to two-pass
analysis.
2022-02-01 13:25:03 +00:00
Volodymyr Khomenko 43a0a3bc8b ONC-RPC: when a GSS context is destroyed, NULL proc Verifier must be dissected
When RPCGSS flavor is used and GSS context is destroyed (GSS procedure is set
to RPCSEC_GSS_DESTROY), Verifier field must be dissected as a part of 'RPC'
protocol in the same way as for other GSS procedures.  This behaviour
is explicitly defined by RFC2203 chapter '5.4 COntext Destruction'.
Reverts commit 3d81f3612b.
Fixes #17845.

Signed-off-by: Volodymyr Khomenko <Khomenko.Volodymyr@gmail.com>
2022-02-01 09:43:23 +00:00
Guy Harris 08dc06027f TShark, Wireshark: add some more documentation of "-i TCP@<host>:<port>".
Add a mention of the meaning of the "TCP@<host>:<port>" syntax in the
text about the -i option.
2022-01-31 21:31:48 -08:00
Uli Heilmeier dc16d91c37 OER: Check length
Check if length > 0 before calling proto_tree_add_item_ret_uint64() or
proto_tree_add_item_ret_uint().

Related to #17890
2022-02-01 02:37:33 +00:00
John Thacker b88b7ce798 SCTP: Fix relative sequence number calculation first pass
Calculate the relative sequence number correctly for the first
data chunk of an association in the first pass. This fixes
tshark display and fixes calculation of retransmissions if the
first data chunk of an association is retransmitted. Fix #17917.
2022-01-31 21:01:53 -05:00
Guy Harris 778fc283a7 dumpcap: add some more documentation of "-i TCP@<host>:<port>".
Add a mention of the meaning of the "TCP@<host>:<port>" syntax in the
text about the -i option.
2022-01-31 16:45:31 -08:00
Guy Harris 62c1f9e1a9 pflog: fix typo in URL. 2022-01-31 15:25:02 -08:00
ardnew 84873418da
macos-setup.sh: libtiff: refactor curl fail logic
- Rebased against master (18edc17)
2022-01-31 12:57:25 -06:00
ardnew d06e7bd0f6
macos-setup.sh: fix libtiff filename and URL
macos-setup.sh:
  - Fix filename of libtiff in existence test from "libtiff" to "tiff"
  - Added fallback URL for libtiff when the downloaded file is not a valid gzip
    archive. The host rotates older versions of libtiff into an "old"
    subdirectory, so curl downloads a 404 Web page and exits without error. Then
    the call to gzcat fails with an invalid gzip archive error. Maybe libtiff
    version should be updated instead?
2022-01-31 12:54:05 -06:00
Roman Volkov 18edc17bf3 mpeg_descriptor: add Telephone Descriptor (0x57) 2022-01-31 13:01:29 +00:00
Guy Harris 2700bd60ce pflog: more cleanups.
Fix the URL for the FreeBSD pflog code.

Make the byte order for the UID and the PID an enum, with the default
being *host*-endian, as, from a quick look at the PF code in the OSes
that have it, both the IDs are in the byte order of the host writing
the file.  (This means I need to update libpcap and libwiretap to
byte-swap them when reading a byte-swapped capture file or file section,
as we do with some other pseudo-header fields.  That's next on the
list.)

Add some comments about the signedness of the UID and PID fields.

This is the right way to handle #10202.
2022-01-31 04:45:51 -08:00
Roman Volkov a02b964b5f mpeg_descriptor: add NVOD Reference Descriptor (0x4B) 2022-01-31 07:06:18 +00:00
Uli Heilmeier 37dcb3902b DCM: Check if buf_desc is not NULL
Only use buf_desc when it is not NULL.

Related #17890
2022-01-31 06:54:36 +00:00
John Thacker b0036e01f8 SIP: Fix SIP Statistics in GUI
At some point the indices of the request and response stat tables
got switched, and stats were being looked up in the wrong table.
Use stat_tap_find_table to lookup the tables rather than hardcoding
the indices. Fix #17904
2022-01-31 02:22:03 +00:00
Guy Harris 4debf54dbd pflog: Various cleanups.
Correctly handle the length field; it should be rounded up to a multiple
of 4 to determine the full length, it shouldn't just have 3 added to it
under the assumption that length % 4 = 1.

The LEN_PFLOG values refer to OpenBSD releases, so name them
LEN_PFLOG_OPENBSD_{version}., not just BSD.  Give them values that don't
include the padding.

Add FreeBSD and Darwin AF_INET6 values, as this can be used to analyze
non-OpenBSD PF logs.

Add additionaal reason, action, and direction values, with #ifs for
different platforms.  To handle other platforms' PF logs, we'd need a
preference (although what we *really* want are separate LINKTYPE_ values
for different OSes, so the preference would not be needed for newer
files).

Use proto_item_add_item_return_ routines for integral-valued fields.

Show the rule number as decimal, as long as it's an FT_INT32.

Update links for OpenBSD CVS repository, add pfvar.h, and add links to
repositories for other OSes with PF.
2022-01-31 00:52:59 +00:00
John Thacker 7884d792ef RTCP: Reject packets with unsupported version
Have RTCP behave similar to the RTP dissector and reject packets
with a version other than 2 (after adding some entries to the tree
as RTP does.) This is necessary because WebRTC and others often send
STUN or DTLS packets on a port after SDP has set up the RTCP dissector
(with a=rtcp:port or similar). Improves dissection of the files
in #13193 when the key log file is set in the TLS prefs.

Perhaps later a preference could be added, as with RTP.
2022-01-31 00:32:42 +00:00
Gerald Combs bbed034329 [Automatic update for 2022-01-30]
Update manuf, services enterprise numbers, translations, and other items.
2022-01-30 18:14:08 +00:00
Gerald Combs 1fd1853837 CSN.1: Fix some alignment issues.
Not all architectures allow unaligned access. Copy our 16- and 32-bit
values instead of using direct assignment. Ping #17882.
2022-01-30 11:08:07 +00:00
Roman Volkov a2c7564eef mpeg descriptor: add Mosaic Descriptor (0x51) 2022-01-30 10:00:28 +00:00
Roman Volkov 7ecc87375e mpeg descriptor: add Time Shifted Service Descriptor (0x4C) 2022-01-30 09:48:52 +00:00
Alexis La Goutte 342ad4a083 ssh: fix warnings found by Clang Analyzer (deadcode.DeadStores)
packet-ssh.c:2502:17: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ssh.c:2511:17: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ssh.c:2516:17: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ssh.c:2532:17: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ssh.c:2535:17: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ssh.c:2538:17: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ssh.c:2561:25: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ssh.c:2564:25: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-ssh.c:2568:17: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
2022-01-30 09:35:11 +00:00
Alexis La Goutte 226193a18f ssh: fix unused-parameter
Remove tvb and offset from ssh_keylog_hash_write_secret
not longer need after 54cd727edf

packet-ssh.c:1879:40: error: unused parameter ‘tvb’ [-Werror=unused-parameter]
packet-ssh.c:1879:49: error: unused parameter ‘offset’ [-Werror=unused-parameter]
2022-01-30 09:35:11 +00:00
Alexis La Goutte 8cc8a0544b ssh: fix Clang warnings about Dead nested assignment
packet-ssh.c:2131:14: warning: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err'
packet-ssh.c:2137:14: warning: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err'
2022-01-30 09:35:10 +00:00
Alexis La Goutte f837a2000a ssh: Fix Clang Warnings about Dead Assignment
packet-ssh.c:1897:5: warning: Value stored to 'length' is never read [deadcode.DeadStores]
2022-01-30 09:35:10 +00:00
Vladimir Bespalov 5ecb57cb90 Add ZBOSS NCP protocol dissector 2022-01-30 09:34:26 +00:00
Roman Volkov 59208468b9 mpeg descriptor: add Country Availability Descriptor (0x49) 2022-01-30 08:41:28 +00:00
John Thacker e0a11d0607 PROFINET: Fix incorrect API call, assertion
Fix two calls of proto_tree_add_item() when proto_tree_add_uint()
was meant. Passing the actual value of a field instead of an encoding
into proto_tree_add_item() has unexpected results. Fix #17909.

(The whole area of this dissector would probably be cleaner with
more calls to add_item(), but this is a smaller change consistent
with the rest.)
2022-01-29 23:39:20 -05:00
Gerald Combs 813854102b Remove our .bzrignore symlink.
On the off chance that someone is still using Bazaar, they should be
able to create a local symlink.
2022-01-29 20:00:32 +00:00
Martin Mathieson 19ec126687 check_typed_item_calls.py - Find all (but 3) items from calls. 2022-01-29 15:54:19 +00:00
John Thacker ee8a4fdfd7 GTP: Fix cut and paste wrong offset MBMS PCO
Fix the recently added MBMS PCO IE. Related to #17839.
2022-01-28 21:06:33 -05:00
Gerald Combs 451e3cc4ef DNS: Check our NSEC3 hash length.
Add a next hashed owner field only if we have one. Use a wmem_strbuf.
Fixes #17912.
2022-01-28 14:02:15 -08:00
Martin Mathieson 899b07a8eb Fix some filters strings. 2022-01-28 10:49:41 +00:00
John Thacker e406e5b826 DTLS: Only call srtp_add_address now
After commit 16ddc9ab19, we don't need to call srtcp_add_address
separately for a multiplexed connection. Do call it on a client hello
with only a single protection profile offered, in case of a one way
connection, though. Related to #13193.
2022-01-28 06:54:28 +00:00
Jean Yap 804b5ffdb3 ppp-packet.c: VSNP fixes for issue #17815 2022-01-28 06:43:41 +00:00
Jean Yap d4c56c2021 ppp-packet.c: VSNP fixes for issue #17815 2022-01-28 06:43:41 +00:00
Chuck Craft ab8500261b Docs: wslua TreeItem class typo 2022-01-28 06:24:28 +00:00
easonweii 6c9662eda4 GTP: Add dissection for Source RNC PDCP Context Info IE
Add dissection for Source RNC PDCP Context Info (7.7.61) IE.
Related to #17839
2022-01-28 05:02:13 +00:00
Jaap Keuter 2f6cf59ce4 CPPcheck: When we say C11 do check for C11 2022-01-28 04:31:07 +00:00
John Thacker 16ddc9ab19 RTP/RTCP: Create rtcp info when RFC 5761 multiplexing
The RTP dissector supports RFC 5761 multiplexing by default, always
passing payload types that conflict with RTCP to the RTCP dissector.
Thus, when a [S]RTP stream is set up by srtp_add_address, it should
pass along the information to the RTCP dissector so that the rtcp_info
and srtcp_info information is attached to the conversation as well.
Helps with DTLS-SRTP (#13193).
2022-01-27 22:48:13 -05:00
Will Aftring 6a99dacf54 Add Microsoft Cluster Route Control Protocol (MSRCP) 2022-01-27 21:15:49 +00:00
Anders Broman 33b000148f GTPv2: MM Context handle 0 length IEs 2022-01-27 18:08:34 +00:00
Jan Snydr-Michal 1a512bc26d afp: fix dissection of afp.access and afp.file_bitmap fields.
Fix regressions in AppleShare dissection by correcting the length
of afp.access and afp.file_bitmap fields to be UINT16 as specified
in the AppleShare protocol specification.

Fix reuse of afp.file_bitmask in CatSearchExt as a 16 and as a 32 bit
value by introducing afp.request_bitmask for the 32 bit Request
Bitmap.

Closes #17907.
2022-01-27 13:48:18 +00:00
Jan Snydr-Michal f098b4ddba Prevent reuse of hf_afp_file_bitmap as a 16 and 32 bit value in
dissections by introducing hf_afp_request_bitmap for the 32 bit
Request Bitmap in FPCatSearchExt.  Made the hf_afp_access_*
FT_BOOLEANs have a width of 16 to reflect the fact that
hf_afp_access_mode needs to be a FT_UINT16 as AFP spec defines
access mode as a short.
2022-01-27 13:48:18 +00:00
Jan Snydr-Michal 5cdb661b8c afp: fix dissection of afp.access and afp.file_bitmap fields.
Fix regressions in AppleShare dissection by correcting the length
of afp.access and afp.file_bitmap fields to be UINT16 as specified
in the AppleShare protocol specification.  Closes #17907
2022-01-27 13:48:18 +00:00