Commit Graph

44582 Commits

Author SHA1 Message Date
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
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
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
Nardi Ivan acd2b2a2aa TDS: add decoding of TLS messages
Close #17908
2022-01-27 11:40:08 +00:00
John Thacker 601a55b36d RTP: add some comments 2022-01-27 02:33:50 -05:00
John Thacker 84c89b8f6c GTP': Support Release 15 and higher CDRs
The Release Identifer field is only one nibble in GTP'. So in
Release 15 of 3GPP TS 32.295, an extra octet, Release Identifier
Extension, was added to support CDRs encoded with Release 16 and
higher of TS 32.298. Fix #17903.
2022-01-27 05:24:16 +00:00
John Thacker f31881ef0b GTP: Fix wrong GGSN control plane address field
Fix a typo / copy and paste error
2022-01-26 19:33:44 -05:00
John Thacker 36521f27b3 DTLS-SRTP: Set up SRTP and SRTCP sessions
Use the information in a use_srtp Extension in a Server Hello to
set up SRTP and SRTCP sessions according to RFC 5764. It is RECOMMENDED
that symmetric RTP be used with DTLS-SRTP, and RTP and RTCP traffic may
be multiplexed, so set up all four possible connections.

Fix #17905.
2022-01-26 14:50:59 +00:00
Dario Lombardo ac164db3ac ieee80211: initialize local buffers.
Fix valgrind errors for jumps on non-initialized memory.

Fix: #17894.
2022-01-26 13:05:25 +00:00
Anders Broman 5c5c109ec0 SIP: Add 3GPP TS 24.229 SIP headers. 2022-01-26 09:56:00 +00:00
Michał Kępień d408ad5ba8 DNS: Base32-encode NSEC3 Next Hashed Owner Name
As the owner name of each NSEC3 record is Base32-encoded, the Next
Hashed Owner Name field in those records should also be displayed in
Base32-encoded form.  This enables the user to quickly tell what span of
hashed owner names is covered by a given NSEC3 record.
2022-01-26 07:48:45 +00:00
John Thacker f7a882d3eb DTLS: comment out unused expert info 2022-01-25 23:20:21 -05:00
Guy Harris e4b26c586c realtek: add support for some Realtek protocols.
This could be extended to handle some "switch tags" seen when capturing
from interfaces supporting the Linux DSA mechanism.
2022-01-25 22:09:57 +00:00
John Thacker ab4d858398 RTCP: Don't always Decode As SRTCP
If RTCP is chosen via Decode As, decode as RTCP.
If SRTCP is chosen via Decode As, decode as SRTCP (assuming that
all packets are encrypted, because we can't tell where the E bit is
in that case.)

If possible [S]RTCP is found via the heuristic dissector, assume either
RTCP or (encrypted) SRTCP based a preference. Perhaps later the heuristic
dissector could be improved to make a better decision.
2022-01-25 13:57:27 +00:00
John Thacker 402e05bc37 X509ce: Use FT_ABSOLUTE_TIME for baseUpdateTime, invalidityDate
These two GeneralizedTime fields are manually constructed so they
need to be manually updated for the changes in commit 7e99bbf32b
2022-01-25 13:42:00 +00:00
Uli Heilmeier 11e7240bcf LLRP: Fix check of enough bytes
Don't use DISSECTOR_ASSERT to check for enough bytes.

Reated to #17890
2022-01-25 12:31:18 +00:00
Martin Mathieson 89b7a1328b tools/check_typed_item_calls.py: improve detection of missing items 2022-01-25 11:43:32 +00:00
Stefan Metzmacher 2235d5fd2c packet-kerberos: kerberos.patimestamp use FT_ABSOLUTE_TIME/ABSOLUTE_TIME_LOCAL
This was done for all generated values in commit:

commit 7e99bbf32b
Author:     John Thacker <johnthacker@gmail.com>
AuthorDate: Tue Nov 23 21:36:02 2021 -0500
Commit:     John Thacker <johnthacker@gmail.com>
CommitDate: Thu Dec 2 20:40:22 2021 -0500

    BER: Make GeneralizedTime a FT_ABSOLUTE_TIME

    ...

But we need to also do it for manual stuff.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2022-01-25 11:14:01 +00:00
Alexis La Goutte af40152a0d ieee80211: fix typo (verision => version) 2022-01-25 10:35:19 +00:00
Uli Heilmeier fb7f1823da 5co: Fix failed assertion
Check length before calling tvb_get_raw_bytes_as_string()
Related to #17890
2022-01-24 22:01:18 +01:00
John Thacker e4a33d22a8 GTP: Add MBMS UE Info IE
Add MBMS UE Info IE (7.7.55) and Enhanced NSAPI (7.7.67) IEs.
Related to #17839.
2022-01-23 21:50:55 -05:00
Uli Heilmeier a202350f6f DHCPv6: Fix failed assertion tvb_bytes_to_str()
Check address_length before calling tvb_bytes_to_str()
Related to #17890
2022-01-23 20:57:50 +00:00
Alexis La Goutte ac2389d3e4 ICMPv6: fix missing hf for SubjectKeyInfo 2022-01-23 20:20:21 +00:00
Alexis La Goutte 5ec5edec0f cdp: fix tvbuff.c:4429: failed assertion len > 0
tvb_bytes_to_str don't support length = 0
2022-01-23 20:20:21 +00:00
Alexis La Goutte ccdcc91e81 couchbase: fix Illegal call of proto_item_add_bitmask_tree without fields
extra_flags can't be empty

Fix #17890
2022-01-23 20:20:21 +00:00
John Thacker fbeee407b4 GTP: Fix wrong value_string for PDP organization
PDP organization in PDP context should use its own value string,
not the value string for the PDP type number.
2022-01-23 13:23:27 -05:00
Gerald Combs f7fba2ad52 [Automatic update for 2022-01-23]
Update manuf, services enterprise numbers, translations, and other items.
2022-01-23 17:43:16 +00:00
John Thacker fb37fe8537 GTP: Support Additional Trace Info IEs
Support 7.7.62 Additional Trace Info IE and 7.7.68 Additional
MBMS Trace Info IE. Related to #17839.
2022-01-23 10:29:53 -05:00
Uli Heilmeier 2337761e92 IPP: Fix failed assertion for tvb_bytes_to_str()
Check size before calling tvb_bytes_to_str()
Related to #17890
2022-01-23 10:43:49 +00:00
Zoran Bošnjak 8f873bcbb7 asterix: Sync with asterix-specs #251f703483
Whitespace fix.
2022-01-23 08:45:04 +00:00
Zoran Bošnjak 63cbb2dd1e asterix: output format fix
Use HEX, DEC, HEX_DEC..., depending on item size and byte alignment.
2022-01-23 08:45:04 +00:00
Zoran Bošnjak 99ab96555a asterix: minor cleanup in decoding subitems
The "VALUE" string should not be displayed for generated subitem levels.
2022-01-23 08:45:04 +00:00
John Thacker f7ea4ab085 GTP: Dissect two IEs from BSSGP
Dissect two IEs that are transparent container from BSSGP (3GPP TS
48.018), 7.7.72 BSS Container and 7.7.78 List of set-up PFCs.
Related to #17839.
2022-01-22 14:32:21 -05:00
Eason Wei 7005b047a4 GTP: add dissection of IE's for some "for future use" 2022-01-22 12:06:34 +00:00
John Thacker 470b6b17ad GTP: Dissect more undecoded IEs
Dissect MBMS Protocol Configuration Options, Operator Selection Entity,
and PDU Numbers. Related to #17839.
2022-01-22 00:42:05 -05:00
Martin Mathieson d7d2994228 check_typed_item_calls.py: fix matching of calls 2022-01-21 21:59:50 +00:00
Uli Heilmeier 81b57b29ab PPP: Fix failed assertion for tvb_bytes_to_str()
Check size before calling tvb_bytes_to_str()

Related to wireshark/wireshark#17890
2022-01-21 20:54:53 +00:00
John Thacker f57919d6ba GTP: Dissect CSG related IEs
Dissect User CSG Information (UCI), CSG Information Reporting Action,
CSG ID, and CSG Membership Indication IEs. Related to #17839.
2022-01-21 20:38:06 +00:00
Jaap Keuter f37d8bad53 GTP: add dissection of various IE's 2022-01-21 20:26:48 +00:00
John Thacker b2f78b47b4 GTP: Don't include padding in the RAC in ULI
From 3GPP TS 29.06 V 17.1.0 7.7.51:
The routing area code consists of 2 octets and is found in octet 10
and octet 11. Only the first octet (10) contains the RAC and the
second octet (11) is coded as "11111111".

Don't include the spare octet 11 in the RAC field. The RAC is only
one octet.
2022-01-21 08:49:36 -05:00
John Thacker 56f1ee5c3a GTP: Support Cell Identification IE
Related to #17839.
2022-01-21 07:48:18 -05:00
Dr. Lars Völker a05d35fd4f SOCKS: Allow SOCKS over TLS 2022-01-21 10:39:47 +00:00
John Thacker f5bb44f75f GTP: Add CAMEL Charging Information Container IE
Add CAMEL Charging Information Container IE (type 155) from
ETSI TS 129 060 7.7.54. Related to #17839
2022-01-20 09:33:29 -05:00
John Thacker feebf6bc65 GTP: Add some undecoded IEs
Add some undecoded IEs from 3GPP TS 29.060 V17.1.0:
Hop Counter (163), Signaling Priority Indication (203), Signaling
Priority Indication with NSAPI (204), ULI Timestamp (214),
and LHN-ID with NSAPI (215). Related to #17839.
2022-01-19 21:40:29 -05:00
Dario Lombardo f7b6ebcc04 tvbuff: assert the called len is > 0.
This assert will notify the higher layers that the dissector needs
to be fixed. ieee1722 and zbee-zcl dissectors have been updated to
prevent such a call.

Ref: #17882.
2022-01-19 13:22:01 +00:00
Pascal Quantin c6de71552a GSM RP: fix dissection of SMS in 5G Nf interface
Closes #17784
2022-01-19 06:46:56 +00:00
Dr. Lars Völker 1bf7904223 UDS: adding diagnostic address resolution
This patch adds diagnostic address resolution to UDS.
2022-01-19 06:32:17 +00:00
zhang zhilei 13b6cbb9cf TLCP:support GB/T 38636-2020 TLCP 2022-01-19 06:31:34 +00:00
Jaap Keuter e1f025d9f4 TVB: Don't uncompress zero sized buffers 2022-01-19 05:19:45 +00:00
John Thacker 8202125fe3 SRTCP: Warn about undecoded, not length error
If we are decoding as SRTCP with encrypted payload but srtcp_info
wasn't set up (e.g. because this was done by Decode As or a heuristic),
then since we can't calculate the length, add the expert info about
an undecoded payload rather than the expert info about an incorrect
length.

Related to #17892
2022-01-19 04:18:13 +00:00
Pascal Quantin ae1ee2f0c0 E2AP: remove an obsolete comment 2022-01-18 15:45:53 +00:00
Pascal Quantin 26d2cb085d NGAP: stop clearing the fence
Closes #17886
2022-01-18 15:45:53 +00:00
Pascal Quantin 4165159263 S1AP: stop clearing the fence
Related to #17886
2022-01-18 15:45:53 +00:00
Dario Lombardo 0461354906 sctp: fix indentation. 2022-01-18 14:48:17 +00:00
Dr. Lars Völker 2170f8e51b PTP: Clean up code to reduce warnings 2022-01-18 14:35:17 +00:00
Jerome-PS 269e662442 Adding dissection for subsystem sftp. 2022-01-18 13:09:06 +00:00
Dr. Lars Völker 9db22e8439 EAP: Adding EAP-IKEv2 support
This patch adds basic EAP-IKEv2 support.
This does not include EAP-IKEv2 fragmentation support.
2022-01-18 07:45:53 +00:00
Dr. Lars Völker 1af0178afd PTP: Analysis of Message Intervals (Sync and PDelay_Req)
This patch adds analysis of the Sync intervals and Pdelay-Req intervals.
2022-01-18 06:02:40 +00:00
Jaap Keuter 3c4d2a28ea tvbuff: add robustness to tvb search related functions 2022-01-18 06:01:54 +00:00
Alexis La Goutte 7843c1fa89 GTP: Add Extended Commong Flags IE
from https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=1595

Fix #17855
2022-01-18 05:35:44 +00:00
Dr. Lars Völker 6d5a961414 ISO15765: change addresses to 32bit
Currently the dissector maps 29bit addresses to 16bit. This limitation
is being resolved by allowing 32bit addresses to be passed on.
2022-01-18 05:25:16 +00:00
Martin Mathieson 3bbcf76d30 ORAN FH-CUS: Show I/Q values in U-Plane PRBs. 2022-01-18 05:24:35 +00:00
Dario Lombardo d6a6cc72a0 cmake: fix indentation. 2022-01-17 16:38:11 +00:00
Dr. Lars Völker ea21ffdb88 ISAKMP: Fix Typo 2022-01-17 16:13:46 +00:00
Dr. Lars Völker 268582b553 Frame: Parsing of PCAPNG Option Block PEN 46254 2022-01-17 10:54:57 +00:00
Gerald Combs 28fc042686 Kafka: Make sure a string pointer is valid.
Make sure dissect_kafka_string_new always sets a valid display string.
Fixes #17880.
2022-01-17 08:31:58 +00:00
Jaap Keuter 5ee3116113 IPDC: implement proper length checks 2022-01-17 08:31:17 +00:00
Lucas Pardue a65abbc2bb http2: add PRIORITY_UPDATE frame dissection
The HTTP/2 priority update frame is an extension frame defined in
https://datatracker.ietf.org/doc/draft-ietf-httpbis-priority/.

With this change, we add new support for the frame to the HTTP/2
dissection, matching the capability in the HTTP/3 dissector, to expose
the target of the priority and the value of the hint.
2022-01-16 22:13:49 +00:00
Lucas Pardue 0e8387747b http3: add PRIORITY_UPDATE frame dissection
The HTTP/3 priority update frame is an extension frame defined in
https://datatracker.ietf.org/doc/draft-ietf-httpbis-priority/.
Previously, the HTTP/3 dissector only went as far as reporting the
PRIORITY_UPDATE frame types.

With this change, we extend the HTTP/3 dissection to cover the fields
inside the frame. This makes it easier to see the actual target of the
priority and the value of the hint.
2022-01-16 22:13:49 +00:00
Jaap Keuter 1b46176849 tvbuff: add robustness to memory copy related functions 2022-01-16 19:49:48 +00:00
Gerald Combs 496a23a56a [Automatic update for 2022-01-16]
Update manuf, services enterprise numbers, translations, and other items.
2022-01-16 16:40:05 +00:00
Lucas Pardue e06020e391 http3: fix QPACK blocked streams filter 2022-01-16 09:47:59 +00:00
Lucas Pardue 1370a6186f http3: detect extended CONNECT setting 2022-01-16 09:47:59 +00:00
Lucas Pardue fd72d99d7f http2: detect extended CONNECT setting 2022-01-16 09:47:59 +00:00
Lucas Pardue 9c318abef4 http2: add support for ORIGIN frame
Add support for ORIGIN frame (RFC 8336) to the HTTP/2 dissector. The
frame is a sequence of 0 or more origin entries (length and ASCII
value), hence dissection is implemented as a subtree.
2022-01-16 09:34:21 +00:00
Dr. Lars Völker 6ce15b9521 PTP: Adding Analysis Features
This patch links PTPv2 messages to each other and starts analysis
based on the messages:
- Link Sync to FollowUp
- Link PDelay Req to PDelay Res
- Link PDelay Res to PDelay F'Up
- Add timestamp to a sync based on the Follow Up (2-step only).
- Calculate the mean propagation delay and add it to PDelay Resp F'Up.
- Calculate the neighborRateRatio of PDelay and show it
- Calculate the syncRateRatio and show it

This feature is off by default but only slows down dissection of PTP
frames by about 10%.
2022-01-16 07:55:57 +00:00
Martin Mathieson 559df3c620 Fix some spelling errors 2022-01-15 23:11:47 +00:00
Dario Lombardo 8e805674e0 ieee80211: fix wrong proto_tree_add_item call.
Data from packet has been used as encoding instead of an actual
encoding. Fix by using ENC_NA, since the field is FT_UINT8.

Fix: #17878.
2022-01-15 12:15:31 +00:00
Alexis La Goutte 153f836ab3 kafka: Fix Clang Warning Uninitialized argument value 2022-01-15 08:41:12 +00:00
Alexis La Goutte b1d7d78fed file-rfc7468: Fix Clang Warnings Uninitialized argument value 2022-01-15 08:41:12 +00:00
Bahadir Ozgun 308add2f3a Fixed a typo 2022-01-14 12:19:25 +00:00
Dario Lombardo c0e2a26290 extrememesh: use correct address sizes when allocating a buffer.
Prevent useless allocation when no addresses are present in pinfo.
Useless allocation introduced in b086e5192a.

Fix: #17866.
2022-01-14 11:14:27 +00:00
Lin Sun 5da3992c8e BT Mesh: Fix build error when GCRYPT_VERSION_NUMBER >= 0x010600 is false 2022-01-14 10:01:34 +00:00
Bahadir Ozgun 5560f3f85b Fixed non-existent ness value because of wrong number 2022-01-14 07:18:04 +00:00
Quentin Armitage 3fce24fb99 netlink protocol: Add Keepalived and OpenR protocol identifiers
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
2022-01-13 16:02:53 +00:00
Dario Lombardo 4b7a022a07 openflow_v5: prevent infinite loops.
Check lenghts and add expert info when they are too small and
cause infinite loops.

Fix: #17847.
2022-01-13 15:04:27 +00:00
Dario Lombardo 445b3f7eaa openflow_v6: add one more sanity check.
Ref: #17847.
2022-01-13 14:53:13 +00:00
Dario Lombardo c427b81aa2 tds: consider 0 as invalid token size.
Instead of consider just negative sizes as invalid, threat 0 the
same way. The size is used to increment the packet offset and 0
causes an infinite loop.

Fix: #17855.
2022-01-13 14:29:54 +00:00
Joakim Karlsson 6d53617f9d JSON: add 3GPP Supported Features handling
Format defined in TS29.571, ch5.2.2.
First API (NPCF) filled from TS29.512, ch5.8
2022-01-13 13:13:48 +00:00
Joakim Karlsson f62f8e59c6 pfcp: correction of IE Type: UE IP Address (93) 2022-01-13 13:03:21 +00:00
Jim Young b5f89dbe2d tshark: Add new long option --hexdump <hexoption> 2022-01-13 01:18:38 +00:00
Dario Lombardo fdc5166234 ssh: prevent packet-driven oversize bignum.
Fix: #17857.
2022-01-12 15:11:53 +00:00
Pau Espin 85e79ae1fd packet-rsl: Fix dissect of RLM Cause IE with length 0
The IE is defined in 3GPP TS 48.058 section 8.3.3 "ERROR INDICATION" as
being a TLV of size 2-4, which means length=0 is an accepted form. Avoid
showing "Malformed packet" error if such packet is found.
2022-01-12 11:40:43 +01:00
Andy Grover 7190f34e2d proxy protocol: Fix parsing of TLV values
Do not attempt to look for TLVs in the entire rest of the packet, only
look in the proxy protocol header bytes.
2022-01-12 09:39:01 +00:00
Pascal Quantin 5c1406971d NGAP: fix variable ‘ngap_data’ might be clobbered by ‘longjmp’ or ‘vfork’
Fixes #17858
2022-01-12 08:52:12 +01:00
Guy Harris 08f5044894 except: update some coments.
If KAZLIB_POSIX_THREADS isn't defined, we are still using thread support
- compiler and support library support for per-thread data, at least for
the stack of exception catchers.

Update and expand comments.
2022-01-11 21:05:35 -08:00
Dr. Lars Völker a21f1af336 SIGNAL-PDU: Adding Aggregation Functions
This patch allows to calculate aggregations for easier analysis.
Per configured signal (uint, int, float) the following aggregations
are supported:
- sum of values (sum)
- average of values (avg)
- sum of value * delta_time (int)
2022-01-11 21:58:13 +00:00
Guy Harris 18748abb5e Fix handling of dissector registration errors.
Report all registration errors with REPORT_DISSECTOR_BUG().

In the workers for register_all_protocols() and
register_all_protocol_handlers(), use TRY/CATCH/ENDTRY to catch
DissectorError exceptions thrown by REPORT_DISSECTOR_BUG() when
registering dissectors.  Return the error message from the main thread
routine and, when joining the worker thread, if there's an error message
returned, throw it in the current thread, so that it gets caught by the
main libwireshark initialization code.

Fixes the crash in #17856.
2022-01-11 19:56:14 +00:00
Jaap Keuter 16e0ba7dd7 CFM: Add 1SL PDU dissection 2022-01-11 17:38:48 +00:00
Martin Mathieson a0a67a75fe SSH: Make some functions static (were local but declared extern) 2022-01-11 12:15:50 +00:00
Roman Volkov 9c38eda7ef mpeg descriptor: complete Registration Descriptor (0x05) ID list
A fix. Add first ten registered IDs.
2022-01-11 12:13:53 +02:00
Jaap Keuter 7113cf15a6 MPLS ECHO: Fix FEC stack change TLV dissection 2022-01-11 07:16:07 +00:00
Guy Harris db27fb777a exceptions: make the exception handler stack per-thread.
This prevents the weird failures I saw on macOS in #17856; instead, it
should fail on *all* platforms with

    Unhandled exception ("epan/proto.c:8800: failed assertion "DISSECTOR_ASSERT_NOT_REACHED"", group=1, code=6)

(which it does on macOS 11.6/Xcode 12.5.1 and Windows 10/VS 2019
16.11.8; according to

https://en.wikipedia.org/w/index.php?title=Thread-local_storage&oldid=1064900318#C_and_C++

the major UN*X C compilers support __thread and the major Windows C
compilers support __declspec(thread).).

@jvalverde: on branches that require C11/C++11 support, we could perhaps
just use _Thread_local for C and thread_local for C++.  Note that
<thread.h> is optional in C11, and macOS 11.6/Xcode 12.5.1 does not
appear to include it.)

This does not *fix* the aforementioned issue; to do *that* we need to do
TRY in the register-dissectors thread code.  I'm committing this
separately because it fixes a bug in our exception package that could
cause all sorts of randomness now and in the future - what we're doing
now is Just Wrong.

(Yes, there's code to support per-thread exception handler stacks *on
platforms with pthreads*, but this is simpler *and* also works on
Windows.)
2022-01-11 05:00:42 +00:00
Gerald Combs b7ab0fc1cd SSH: Add back a NULL check.
d4a3aabc originally had this check, but I misread the GLib documentation
& source, and requested that Lars remove it.
2022-01-10 11:48:21 -08:00
Dr. Lars Völker b3d5ace216 PTP: ITU-T OUI as define instead of constant (cleanup) 2022-01-10 13:33:35 +00:00
Dr. Lars Völker 5e26c1cf8c PTP: Adding 802.1AS-2020 1-step Sync support
This patch adds support for 802.1AS-2020 Sync with 1-step as they carry
the originTimestamp and the Follow_UP TLV.

This patch also corrects that 802.1AS Sync with 2-step DO NOT have the
originTimestamp but "reserved" data.

Based on MR 2638.
2022-01-10 12:32:40 +01:00
Roman Volkov 869b84631d dvb: unify some 'Length' fields
Unify the last hex 'Length' fields displaying, make them decimal
as other ones.
2022-01-09 22:16:27 +02:00
Gerald Combs e71ab6dde5 [Automatic update for 2022-01-09]
Update manuf, services enterprise numbers, translations, and other items.
2022-01-09 16:38:45 +00:00
Huang Qiangxiong 9a681f88ad http2/grpc: make fake headers be used in uncompleted HPACK index table situation
Some http2 headers are unable to be parse in current
HEADERS frame because previous HEADERS frames were not
captured that causing HPACK index table not completed.
This commit make fake headers can also be used in this
situation.

close #17799
2022-01-09 14:35:27 +00:00
Dr. Lars Völker d4a3aabc27 SSH: Make code more robust regards NULL pointer deref 2022-01-09 12:47:04 +01:00
Martin Kaiser 1774e373f3 imf: dissect some more headers
Add support for Lines, Precedence and X-Original-To headers.
2022-01-09 11:26:42 +00:00
Dr. Lars Völker bb1fb0624c SOME/IP: Adding taps and statistics
Added:
- SOME/IP Messages tap and statistics
- SOME/IP-SD Entry tap and statistics
2022-01-09 10:49:23 +00:00
Jaap Keuter 479175d044 CFM: Add CSF PDU dissection 2022-01-09 10:48:44 +00:00
Roman Volkov 21833071dc mp2t: add descriptions for additional reserved PIDs
According modern EN 300 468 releases reserved PID list includes not
only range 0x00...0x0F from ISO 13818-1 but 0x10...0x1F also.
I added descriptions of the second ones from DVB BlueBook A038r14.

Formally, due to old ISO 13818-1, values 0x10...0x1F (among others)
may be used freely for other purposes but I didn't see such appliance.
2022-01-09 08:41:38 +00:00
Dr. Lars Völker af8e134b18 Signal-PDU: Fixing description of Signal List UAT 2022-01-09 08:31:13 +00:00
Sharon Brizinov d9023299e3 fixing heap overflow oob read 1 byte 2022-01-08 09:29:17 +00:00
Dr. Lars Völker bfd2adde4b SSH: Fix Key Exchange Init (20) is not shown anymore
This fixes a bug in Wireshark that prevented the Payload to be dissected
and shown.
2022-01-08 02:21:50 +01:00
John Thacker c84430185b ssh: Fix CentOS 7
One line got left out of the previous commit to fix compilation.
2022-01-07 19:44:25 -05:00
Pau Espin 3706edc8ca iuup: Avoid Malformed warning if IuUP contains no payload
IuUP frames with 0-byte length payload are allowed. This can be done by
specifying a NO_DATA RFCI, with all subflow lengths set to 0.
2022-01-07 23:01:35 +00:00
Pau Espin 4b7bc50e68 iuup: Remove _U_ param attribute on used param 2022-01-07 23:01:35 +00:00
Dr. Lars Völker 0e5148e9ee TECMP: Fix warning that dissector_add_uint is called too often 2022-01-07 22:47:26 +00:00
John Thacker 2287014f04 ssh: Fix with gcrypt < 1.7.0 (CentOS 7, SLES 12)
Recent commits 2874b979ad c187020304
7356889242, a2f6b079f1 have lines that
need to be protected by ifdef guards when SSH_DECRYPTION_SUPPORTED
isn't defined. (gcrypt < 1.7.0)

Fixes build.
2022-01-07 11:48:45 -05:00
Dr. Lars Völker cac5c086ed TECMP: Support signed analog values
This patch allows to configure TECMP Payload to interpret analog samples
as int16 instead of uint16.
2022-01-07 13:53:12 +00:00
Jérôme HAMM a2f6b079f1 Displaying decrypted data. 2022-01-07 13:42:33 +00:00
Jérôme HAMM 7356889242 Adding secret management in DSB. 2022-01-07 13:42:33 +00:00
Jérôme HAMM c187020304 Enhancing debug logs. 2022-01-07 13:42:32 +00:00
Jérôme HAMM 2874b979ad Changing format of secret key file. 2022-01-07 13:42:32 +00:00
John Thacker c14d731e45 CMS: get rid of globals
Get rid of the global content_tvb and object_identifier_id in
the CMS dissector, and put them in a packet scoped proto data
struct, so that when there's a non fatal exception retrieving
the OID we don't use the global value from a previous packet
(or worse, file), since what the content_tvb and object_identifier_id
pointed to were both packet scoped that could lead to memory
access violations.

Clear the values of the OID and the content_tvb each time before
they are retrieved, so that values from a previous PDU of CMS
in the same packet aren't used either. This was not quite as bad
as using a value already freed, but still bad.

Fix #17800, #17809, #17835
2022-01-07 03:17:07 +00:00
Dario Lombardo acc0260c84 tcp: add syn cookie support.
Fix: #17082.
2022-01-06 22:34:30 +00:00
Alexis La Goutte 95ef3a2d45 bpsec: fix warning about -Wprototypes (proto_register/reg_handoff_bpsec 2022-01-06 20:03:11 +00:00
Alexis La Goutte 22de61a063 bpsec: fix -Wdocumentation warnings 2022-01-06 20:03:11 +00:00
John Thacker bf643c2649 SABP: Update ASN.1 template
Update the SABP ASN.1 template file for the changes made by commit
dec5590b5b so they aren't lost.
2022-01-06 14:28:20 +00:00
John Thacker bc9e8ea5b3 MPEG PES: Update conformance file for unify PES header bit fields
Update the conformance file for MPEG PES to produce the changes of
commit 5573d3c4e8
2022-01-06 09:12:55 -05:00
John Keeping e9900c38c2 usb: dissect other speed config descriptors
Other speed config descriptors are identical to config descriptors, it's
just the request that is different.  Handle this request so that other
speed config responses are decoded.
2022-01-06 11:59:53 +00:00
Uli Heilmeier b587d6a266 BGP: Fix next_hop decoding
Related to wireshark/wireshark#17836
2022-01-06 11:12:30 +01:00
Matthew Weant 29324f9409 EAP: Fix dissection of encrypted IMSI identifiers 2022-01-06 07:27:46 +00:00
Roman Volkov 5573d3c4e8 mpeg pes: unify PES header bit fields displaying
Add a bit-mask for 'scrambling-control' field to add a displaying of
bits occupied by the field.
2022-01-06 04:03:55 +00:00
Roman Volkov 59012e34df mpeg descriptor: add Partial Transport Stream Descriptor (0x63) 2022-01-06 03:49:06 +00:00
Dr. Lars Völker 4d9f29150e Signal-PDU: Adding support for zero-terminated and UTF strings
This patch adds support for zero-terminated strings as well as UTF-8 and
UTF-16 strings.

This patch also fixes a check for the signal list UAT (scaler, offset).
2022-01-06 03:17:05 +00:00
Pascal Quantin adca11dd5c range_string: follow-up of 893290c 2022-01-05 20:34:15 +00:00
Martin Mathieson f1c31deb61 UDS: make a function static 2022-01-05 20:15:16 +00:00
Dr. Lars Völker 9b43910bc2 PTP: Source Code Cleanup (formatting) 2022-01-05 17:40:32 +00:00
Dr. Lars Völker 0f2cf2b331 Signal-PDU: reformatting for consistency
The code was not formatted consistently. This patch cleans this up.
2022-01-05 13:06:59 +01:00
Benedikt Heumüller 893290c603 Extended range_string to 64 bit 2022-01-05 09:14:46 +00:00
Dr. Lars Völker 382fe23aa8 UDS: add subdissector support
Adding subdissector support to UDS and allow Signal PDUs for it.

This patch supports:
- ReadDataByIdentifier (RDBI) Reply
- WriteDataByIdentifier (WDBI) Request
- RoutineControl (RC) Request
- RoutineControl (RC) Reply
2022-01-05 06:06:33 +00:00
Guy Harris ec0aaf1811 ftype-time: check for NULL from gmtime() and localtime().
On Windows, they return NULL for times prior to the Epoch.
2022-01-04 15:35:18 -08:00
Roman Volkov 0a4f3d62e5 mpeg table: implement Selection Information Table (SIT) 2022-01-04 20:13:09 +02:00
Luca Deri 39df51c46d Added missing nDPI ClassifierId
For more information about classification engine ids see:
https://www.iana.org/assignments/ipfix/ipfix.xhtml#classification-engine-ids
2022-01-04 13:57:14 +00:00
Roman Volkov 4ce03e2be2 mpeg descriptor: add multilingual ones (5B,5C,5D,5E)
Add Multilingual Network Name Descriptor (0x5B),
Multilingual Bouquet Name Descriptor (0x5C),
Multilingual Service Name Descriptor (0x5D),
Multilingual Component Descriptor (0x5E).
2022-01-04 13:26:22 +00:00
Dr. Lars Völker 99056c2d9e Signal-PDU: Fix extraneous parentheses warnings 2022-01-04 13:28:55 +01:00
Roman Volkov 699dc583bd mpeg descriptor: add NorDig Logical Channel Descriptor v1 and v2
Add as a usual DVB descriptors. A specification was taken from
NorDig Unified Requirements 3.1.2.
Formally, private descriptors have to be used after Private Data
Specifier (0x5F) but DVB operators often ignore this rule. So I
didn't limit the descriptors parsing by Nordig private data
specifier (0x00000029).
2022-01-04 11:53:19 +00:00
Martin Mathieson 10ffdcb3c0 Some (trivial) cppcheck fixes. 2022-01-04 10:48:22 +00:00
Dr. Lars Völker b7ae71a9c2 Signal-PDU: Adding support for float, string, uint_string
This patch adds support to the Signal-PDU dissector for the following
data types:
- float: 32 and 64 bit IEEE floating point numbers
- string: fixed length ASCII strings
- uint_string: dynamic length ASCII strings with leading length
2022-01-04 08:16:18 +00:00
Роман Донченко 3efc8eb073 ldap, ros: restore a missing word in a comment
This was accidentally introduced in 69d54d6f. The corresponding
generated source files don't have this problem, so they don't need to
be fixed.
2022-01-04 07:13:45 +00:00
Anders Broman 95e28f7631 GTPv2: Handle thcase where dissect_diameter_3gpp_uli has no data. 2022-01-04 06:24:48 +00:00
Gerald Combs d0408b8b78 epan: Add p_set_proto_data.
Add p_set_proto_data, which either updates our entry if we have a
proto+key match or adds an entry if we don't. Use it with
p_set_proto_depth. Document it and our other proto_data routines.
2022-01-03 22:19:14 +00:00
Dr. Lars Völker f02d2a4793 Signal-PDU: Adding Check to Remove Compiler Warning
There was a warning that dynamic_hf[i].p_id is not checked for NULL and
that could mean a NULL Pointer dereference.

To make the code more robust and the compiler happy, this patch adds the
check for NULL.
2022-01-03 22:04:14 +00:00
Dr. Lars Völker 196e8e74f3 DLT: Call subdissectors even with empty payload 2022-01-03 21:45:52 +00:00
Martin Mathieson 070cc0a47a Run dissector URLs check - fix up a couple of entries. 2022-01-03 20:01:27 +00:00
Pascal Quantin d2b5441cec F1AP: upgrade dissector to v16.8.0 2022-01-03 19:22:24 +00:00
Pascal Quantin ce43234c5a E1AP: upgrade dissector to v16.8.0 2022-01-03 18:48:52 +00:00
Pascal Quantin c50512abc3 NRPPa: upgrade dissector to v16.6.0 2022-01-03 18:15:52 +00:00
Martin Mathieson 29190ed12e RTPS: Make some functions static 2022-01-03 18:15:11 +00:00
Pascal Quantin 4942262c18 XnAP: upgrade dissector to v16.8.0 2022-01-03 17:37:13 +00:00
Pascal Quantin 345326697c NGAP: upgrade dissector to v16.8.0 2022-01-03 17:21:26 +00:00
Pascal Quantin 7f9b4292c1 NR RRC: upgrade dissector to v16.7.0 2022-01-03 16:58:20 +00:00
João Valverde 8501dc48dd dfilter: Accept byte arrays without separators
This relaxes the display filter syntax to accept byte arrays without
separators. An expression such as the following becomes valid:

    quic.dcid == b1f0b7cbe0897974

Previously it had to be written as:

    quic.dcid == b1:f0:b7:cb:e0:89:79:74

Partially fixes #17818.
2022-01-03 16:27:16 +00:00
Pascal Quantin 60dd63892a X2AP: upgrade dissector to v16.8.0 2022-01-03 15:39:36 +00:00
Pascal Quantin cc725c0f93 S1AP: upgrade dissector to v16.8.0 2022-01-03 15:22:31 +00:00
Pascal Quantin c243f7b4c8 LPP: upgrade dissector to v16.7.0 2022-01-03 14:32:06 +00:00
Pascal Quantin d6a9d00cd5 LTE RRC: upgrade dissector to v16.7.0 2022-01-03 14:01:27 +00:00
ismaelrti d4c9dbd2b7 RTPS: Added compressed samples dissection feature.
- Added dissection of encapsulation options.
- Samples compressed with ZLIB can be uncompressed and dissected.
2022-01-03 13:45:12 +00:00
Dr. Lars Völker df2fef33f6 Signal-PDU: Adding support to dissect DLT payloads
This patch adds support to DLT for subdissectors and allows the Signal
PDU dissector to attach to DLT to parse non-verbose payloads.
2022-01-03 13:29:13 +00:00
Dr. Lars Völker ea628979b9 Signal-Pdu: Fix possible memory leak
This should remove a clang warning.
2022-01-03 14:07:41 +01:00
Dr. Lars Völker eeb45372fa UAT: Fix Wireshark crash on missing UAT columns
Wireshark crashes when missing an UAT column due to a read access
violation. This was introduced by the code to add better compatibility
to UAT changes.

See "UAT: Allow missing fields."

This codes add a check, if the defaults are NULL before accessing them.
2022-01-03 08:45:17 +00:00
Roman Volkov 1f73e8e6a1 mpeg descriptor: update Registration Descriptor (0x05)
The descriptor contains a registered MPEG TS Identifier. Which full des-
cription may be found at https://smpte-ra.org/registered-mpeg-ts-ids.
I added displaying of a readable MPEG TS identifier and an organization
name.
2022-01-03 08:29:20 +00:00
Dr. Lars Völker bfffc8d490 Signal-Pdu/AUTOSAR I-PduM: CAN-IDs registered as std/ext (bugfix)
Instead of just assuming CAN-IDs > 0x7ff are extended, the new code
checks the EFF_FLAG of the CAN-ID of the Signal_PDU_Binding_CAN and
AUTOSAR_IPDUM_Binding_CAN. This affects registering CAN-IDs with the CAN
dissector as well as config lookups.

This patch changes the config format of Signal_PDU_Binding_CAN and
AUTOSAR_IPDUM_Binding_CAN. CAN-IDs need to include the EFF-Flag now!
2022-01-03 08:14:10 +00:00
Gerald Combs 17e4032e81 [Automatic update for 2022-01-02]
Update manuf, services enterprise numbers, translations, and other items.
2022-01-02 16:39:07 +00:00
Samuel D. Leslie 40256c64e0 Add support for some additional Cisco IKEv2 VIDs
- CISCO-DYNAMIC-ROUTE
  Indicates support for IKEv2 Dynamic Routing
- CISCO-VPN-REV-02
  Not so sure about this one. Presumably indicates to peers internal
  differences in the IKE implementation which can influence subsequent
  configuration of the security associations.
2022-01-02 15:24:36 +00:00
João Valverde dd9ac15ff2 dfilter: Require separators with ISO 8601 time
Require date/time separators when entering a time value, e,g:
    2014-07-04 12:34:56.789+00:00

Separators in the timezone offset are an exception, they are
never mandatory.

This excludes ISO basic format to avoid inputs that could
be entirely numbers indistinguishable from Epoch time, in case
we want to support that in the future.
2022-01-02 10:44:01 +00:00
Roman Volkov b1bf0db069 mpeg table: add IDs for EIT schedule tables (0x50 - 0x6F) 2022-01-02 00:40:07 +02:00
João Valverde 12d39efdca Revert "epan: Initialize wiretap"
This reverts commit c15f2aadc1.

Crashes on exit. Needs more work.

Fixes #17821.
2022-01-01 16:23:04 +00:00
Roman Volkov 5ce73acf45 mpeg descriptor: update 0x50 to DVB BlueBook A038r14 2022-01-01 15:18:54 +00:00
Roman Volkov ee92914e10 mpeg descriptor: update 0x48 to DVB BlueBook A038r14 2022-01-01 15:18:54 +00:00
easonweii b90b4e5336 ISUP/BICC: Fixes parsing issues in some protocols.
Protocol parses some fields. As a result, the parsed result is inconsistent with the description in the protocol.
Register different fields in the BICC protocol and parse them separately.
The details are as follows:
1. Split the following fields in the ISUP protocol:
Continuity Indicator(isup.continuity_check_indicator)
End-to-end method indicator(isup.forw_call_end_to_end_method_indicator)
End-to-end method indicator(isup.backw_call_end_to_end_method_indicator)
End-to-end information indicator(isup.backw_call_end_to_end_information_indicator)
BICC indicator(isup.backw_call_isdn_user_part_indicator)
SCCP method indicator(isup.backw_call_sccp_method_indicator)
End-to-end information indicator(isup.forw_call_end_to_end_information_indicator)
BICC indicator(isup.forw_call_isdn_user_part_indicator)
BICC preference indicator(isup.forw_call_preferences_indicator)
SCCP method indicator(isup.forw_call_sccp_method_indicator)
2. Register the following fields in the BICC protocol again.
Continuity Check Indicator(bicc.continuity_check_indicator)
End-to-end method indicator(bicc.forw_call_end_to_end_method_indicator)
End-to-end method indicator(bicc.backw_call_end_to_end_method_indicator)
End-to-end information indicator(bicc.backw_call_end_to_end_information_indicator)
ISDN user part indicator(bicc.backw_call_isdn_user_part_indicator)
SCCP method indicator(bicc.backw_call_sccp_method_indicator)
End-to-end information indicator(bicc.forw_call_end_to_end_information_indicator)
ISDN user part indicator(bicc.forw_call_isdn_user_part_indicator)
ISDN user part preference indicator(bicc.forw_call_preferences_indicator)
SCCP method indicator(bicc.forw_call_sccp_method_indicator)
2022-01-01 14:06:21 +00:00
Dario Lombardo b086e5192a extrememesh: check pinfo addresses before use.
Fix: #17777.
2022-01-01 08:25:31 +00:00
Moshe Kaplan 67f05835ca Fix more repeated words throughout
Fixes more repeated words seen throughout
the code base.
2021-12-31 22:50:40 +00:00
Jakub Pawlowski 6930a2db83 BTHCI: add Major Device Class parser for LE Audio 2021-12-31 16:04:27 +00:00
João Valverde e724a4baf6 dfilter: Use ISO8601 as the default time format
Change from a default custom time representation to ISO8601.
All the existing formats are still supported for backward-
compatibility.

Before:

  Filter: frame.time == "2011-07-04 12:34:56"

  Constants:
  00000 PUT_FVALUE	"Jul  4, 2011 12:34:56.000000000" <FT_ABSOLUTE_TIME> -> reg#1
  (...)

After:

  Filter: frame.time == "2011-07-04 12:34:56"

  Constants:
  00000 PUT_FVALUE	"2011-07-04 12:34:56+0100" <FT_ABSOLUTE_TIME> -> reg#1
  (...)
2021-12-31 15:01:41 +00:00
Armin Felder e8e6a2c6df NTLMv2 dissector: skip target info for AUTHENTICATE_MESSAGE
if the NTLMv2 Message is of type AUTHENTICATE_MESSAGE,
there are no target fields, according to MS-NLMP 2.2.1.3,
Fixes #17817
2021-12-31 14:44:00 +00:00
Роман Донченко 777aaeda62 x509af: support dissecting public keys in RFC 7468 files 2021-12-31 14:14:09 +00:00
Dario Lombardo 24403a9a35 rtmpt: limit the number of iterations in rtmpt_get_amf_length().
This prevents a infinite-loop caused by crafted packets.

Fix: #17813.
2021-12-30 22:14:37 +00:00
Martin Mathieson d5cccc5398 MAC-NR: Add a bi-directional lcid field to filter on. 2021-12-30 21:19:51 +00:00
João Valverde 0047ca961f dfilter: Add support for entering time in UTC
Add the option to enter a filter with an absolute time
value in UTC. Otherwise the value is interpreted in
local time.

The syntax used is an "UTC" suffix, for example:

    frame.time == "Dec 31, 2002 13:55:31.3 UTC"

This also changes the behavior of "Apply Selected as filter".
Fields using a local time display type will use local time
and fields using UTC display type will be applied using UTC.

Fixes #13268.
2021-12-30 17:53:09 +00:00
j.novak@netsystem.cz 6c9cb8f3fa Prefs/Extcap: Added support for password which is never stored on the disk 2021-12-30 16:03:15 +00:00
Guy Harris 430bf3b6a4 kafka: have dissect_kafka_string_new() return the display string.
Instead of having it return the information needed to fetch the string
value, just have it return the string to use to display that string, as
that's all its only caller needs.

(Note that the display string has had control characters, etc. escaped,
which is what you want for text that appears in a string displayed in
the protocol details.)
2021-12-29 23:06:33 -08:00
Dario Lombardo ae9d3d1d4f kafka: remove compiler warnings.
1508 |     proto_item_append_text(header_ti, " (Key: %s)",
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1509 |                            tvb_get_string_enc(pinfo->pool, tvb, key_off, key_len, ENC_UTF_8));
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../epan/dissectors/packet-kafka.c:1501:18: note: ‘key_len’ was declared here
 1501 |     int key_off, key_len;
      |                  ^~~~~~~
../epan/dissectors/packet-kafka.c:1508:5: warning: ‘key_off’ may be used uninitialized in this function [-Wmaybe-uninitialized]
 1508 |     proto_item_append_text(header_ti, " (Key: %s)",
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1509 |                            tvb_get_string_enc(pinfo->pool, tvb, key_off, key_len, ENC_UTF_8));
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../epan/dissectors/packet-kafka.c:1501:9: note: ‘key_off’ was declared here
 1501 |     int key_off, key_len;
      |         ^~~~~~~
2021-12-29 23:15:39 +00:00
Gerald Combs 3c0198492d Kafka: Add back some code.
a03f43645d removed some code that set offset and length parameters. Add
it back.
2021-12-29 09:49:49 -08:00
Uli Heilmeier 5800b65a81 OpenVPN: Add P_CONTROL_HARD_RESET_CLIENT_V3 opcode
With https://github.com/OpenVPN/openvpn/blob/master/doc/tls-crypt-v2.txt
OpenVPN has introduced a new opcode.

Fixes: wireshark/wireshark#17806
2021-12-29 16:03:46 +00:00
João Valverde 62c9f333f7 epan: More abs_time_to_str() cleanups
Use abs_time_to_str() to implement abs_time_secs_to_str().

Misc cleanups.
2021-12-29 13:50:21 +00:00
João Valverde 64572a11f9 dfilter: Use better error messages for absolute times 2021-12-29 02:25:38 +00:00
João Valverde 7e041118d8 epan: Add back ABSOLUTE_TIME_NTP_UTC representation
It is a special case the prints "NULL" if time is zero.
2021-12-29 00:30:17 +00:00
Christian Svensson 0d471d9fe9 sflow: Rename fields to match protocol specification
- Rename "Original packet length" to "Sampled header length"
 - Rename "Payload removed" to "Payload stripped"

Signed-off-by: Christian Svensson <blue@cmd.nu>
2021-12-28 21:57:21 +00:00
Gerald Combs a03f43645d Kafka: Be more strict when dissecting varints.
The Kafka dissector uses the return value of tvb_get_varint to advance
the packet offset in many places. If tvb_get_varint fails it returns 0,
which means our offset isn't guaranteed to advance. Stop dissection
whenever that happens. Fixes #17811.
2021-12-28 19:06:10 +00:00
João Valverde 445dcd3117 epan: Extend abs_time_to_str() with a flags argument 2021-12-28 04:05:20 +00:00
João Valverde 8b03ead540 EditorConfig: Fix epan/to_str.h 2021-12-28 02:29:26 +00:00
João Valverde 865e2a3754 epan: Refactor abs_time_to_str()
Refactor the common code in abs_time_to_str() and
abs_time_secs_to_str() into separate functions, to
avoid code duplication and improve maintainability.
2021-12-28 01:49:06 +00:00
João Valverde a566076839 epan: Move time display types to field_display_e
This makes it easier to understand the code, avoids conflicts
and ugly and unnecessary casts.

The field display enum has evolved over time from integer types
to a type generic parameter.
2021-12-27 22:31:31 +00:00
João Valverde a0f1ffec71 epan: Remove obsolete header "garrayfix.h" 2021-12-27 21:16:05 +00:00
João Valverde 318bbfce60 EditorConfig: Fix proto.h 2021-12-27 20:29:50 +00:00
João Valverde 0d5bfd44a8 Use a wrapper function to call strptime()
Encapsulate the feature requirements for strptime() in a
portability wrapper.

Use _GNU_SOURCE to expose strptime. It should be enough on glibc
without the side-effect of selecting a particular SUS version,
which we don't need and might hide other definitions.
2021-12-27 14:07:32 +00:00
Joakim Karlsson 1339d30de3 pfcp: Update to 3GPP TS 29.244 V17.3.0 2021-12-27 10:56:17 +01:00
Gerald Combs a3df9fe13f [Automatic update for 2021-12-26]
Update manuf, services enterprise numbers, translations, and other items.

Asterix failed.
2021-12-26 18:40:31 +00:00
Guy Harris b3215d99ca rfc7468: don't use for (;;) for tvb_find_line_end() loops.
If you're past the end of the tvbuff, tvb_find_line_end() will, when
reassembly is not being done, return a zero-length line without
advancing next_offset, so, unless you check for being past the end of
the tvbuff, you'll loop forever.

Fixes #17801.
2021-12-25 22:22:31 -08:00
Odysseus Yang 6d1be225c6 MBIM: dissect the commands of MBIM extended version 4.0
MBIM_CID_MS_DEVICE_CAPS_V2
MBIM_CID_MS_REGISTRATION_PARAMS
MBIM_CID_PACKET_SERVICE
MBIM_CID_MS_NETWORK_PARAMS
MBIM_CID_MS_UE_POLICY
MBIM_CID_CONNECT
MBIM_CID_MS_PROVISIONED_CONTEXT_V2
MBIM_CID_SUBSCRIBER_READY_STATUS
2021-12-24 09:00:57 +00:00
Jaap Keuter f151e1b0c2 Refactor VARINT handling 2021-12-23 14:27:30 +00:00
Jaap Keuter 1b5acc8d57 Replace ENC_VARIANT_MASK by ENC_VARINT_MASK 2021-12-22 20:14:31 +00:00
Roman Volkov 3b59cb018c mpeg-descriptor: Add support for official DVB 8K HEVC streams 2021-12-22 19:35:18 +00:00
João Valverde d8b7d1f821 dfilter: Add aliases "any_eq" and "all_ne" 2021-12-22 14:32:32 +00:00
João Valverde 8b23dd3a3c dfilter: Add an "all equal" operator
To complete the set of equality operators add an "all equal"
operator that matches a frame if all fields match the condition.

The symbol chosen for "all_eq" is "===".
2021-12-22 14:32:32 +00:00
Moshe Kaplan 69d54d6f8e Corrects repeated words throughout the code.
Repeated words were found with:
egrep "(\b[a-zA-Z]+) +\1\b" . -Ir
and then manually reviewed.
Non-displayed strings (e.g., in comments)
were also corrected, to ease future review.
2021-12-22 11:01:11 +00:00
Jaap Keuter 6fa56bca0c Remove remnants of bygone GTK era 2021-12-22 06:02:10 +00:00