Commit Graph

84794 Commits

Author SHA1 Message Date
Dr. Lars Völker cbe62539b2 TECMP: Update Control Message IDs
This patch updates the Control Message IDs to TECMP 1.6/1.7. Since
some of the IDs are up to the user to configure, a UAT was added.
2022-07-09 17:31:36 +00:00
Roland Knall 26b8674320 Qt: Fix unitialized TrafficTree members 2022-07-09 11:08:15 -05:00
Dr. Lars Völker fad4d7f608 SOME/IP, Signal-PDU, IPduM: Harmonize uat comments 2022-07-08 21:59:51 +00:00
Roland Knall 4742e0cade Qt: Filter column information for traffic dialogs
This enables the traffic dialogs to filter data based on the
context menu entries. For instance, one can only show rows,
where the number of packets is not greater than 10
2022-07-08 16:21:32 -05:00
John Thacker 02b00a8ee5 epan: Copy multifield custom column undecoded values correctly
When writing a custom column, some field types can't have a resolved
value, and just copy the label from the expression to the value.
Only copy information from the most recent field when doing so,
so that with multifield custom columns the entire unresolved value
doesn't get overwritten with the resolved value (if some fields
have resolved values and some don't.) This also reduces copying
from O(N^2) to O(N).

Fixes the display "unresolved" value for multifield custom columns
that are a mix of field types.
2022-07-08 09:54:54 -04:00
Emmanuel Pauchard 79afe8e202 IEEE 802.15.4: CSL: Add dissector for RendezVousTime IE (#18182)
The dissector enables support for CSL Wake Up Frames.
2022-07-08 11:00:51 +00:00
John Thacker 8ed2cb6bb5 debian: Add missing symbol 2022-07-08 03:29:14 +00:00
Andreas Schultz ccbc0d5fe9 pfcp: add TP IPFIX and Trace IEs 2022-07-08 01:08:33 +00:00
Andreas Schultz d7720667d9 pfcp: add TP packet measurement IE 2022-07-08 01:08:33 +00:00
Andreas Schultz 70b7a42f73 pfcp: add TP Created NAT Binding 2022-07-08 01:08:33 +00:00
John Thacker 7a6ff3e5fe prefs: Remove custom column expression limit
Custom column expressions do not need to be limited to COL_MAX_LEN.
The size of the expression does not have any necessary relationship
to the size of the column contents, especially in the common case of
many semantically equivalent different fields from different protocols,
only one of which appears in any given frame.

The only place that actually does limit the length of custom
custom expressions is in reading the preferences. Use a GString
instead of allocating a buffer to COL_MAX_LEN when constructing
the string. In normal cases, this should decrease temporary
memory usage. Fix #16905
2022-07-07 12:52:19 +00:00
John Thacker 1eeb0c9934 cli: Copy global configuration profile to personal as with the GUI
If a configuration profile is requested on the command line that
does not exist as a personal profile but does exist as a global
profile, copy it to the personal directory and use it, the same
as when selecting a global profile in the GUI.

Add the same feature to tshark and tfshark as well, where it
is particularly useful.
2022-07-07 12:14:41 +00:00
Guy Harris abe8798b78 nhrp: clean up extension parsing.
For the top-level item for an extension, initially create it with a
length of "to the end of the packet" and, when we finish dissecting it,
set the length appropriately.  That way, if the length is too large, we
don't throw an immediate exception, making it a little clearer what's
happending.

When dissecting an authentication extension, construct the text of the
top-level item as we dissect it, and initially create it with a length
of "to the end of the packet" and, when we're finished dissecting it,
set the length appropriately.  That way, we don't throw an exception
before doing any dissection if the data for the item isn't all there, we
only throw an exception when we run out of data, and we also don't try
to add the data unless there is at least one byte of data.

The latter of those fixes #18181.
2022-07-07 02:26:27 -07:00
Gerald Combs f296a00f09 Add a default configuration profile for Logray.
Add and install default coloring rules and filter buttons for Logray.
Add is_packet_configuration_namespace() and use it to set the default
timestamp type for Logray to "Absolute", which is more appropriate for
log entries.
2022-07-06 10:53:21 -05:00
Gerald Combs 75efbb1ac4 Rename Logwolf to Logray
Switch to the name "Logray" for the log analyzer. Rays are biological
cousins of sharks and more people like the name "Logray" in a completely
unscientific survey here. Apologies for any inconvenience this might
cause.
2022-07-06 15:04:25 +00:00
Gerald Combs 78ebafd708 Qt: Explicitly set our SyntaxLineEdit background color.
It looks like 1eafee6566 wasn't sufficient to fix the Qt 6 background
paint issue, at least for Qt 6.2.3. Explicitly set our background brush
before filling our rect.
Fixes #18175.
2022-07-06 14:45:26 +00:00
Martin Mathieson eab62aa768 Fix some spellings. 2022-07-06 09:02:37 +01:00
David Perry aa0eeb3184 debian-setup.sh: install pytest and pytest-xdist 2022-07-06 03:35:14 +00:00
Gerald Combs 51cb231208 CMake: Copy our DLLs to a DLL-specific directory.
Set our DLL build directory to the the target directory for wsutil.dll
instead of DATAFILE_DIR.
2022-07-06 01:06:20 +00:00
John Thacker dd5e2f3b3f epan: Fix return value of prooto_strlcpy when not enough room
proto_strlcpy in normal situations returns the number of bytes
copied (because the return value of g_strlcpy is strlen of the
source buffer). It can copy no more than dest_size - 1, because
dest_size is the size of the buffer, including the null terminator.
(https://docs.gtk.org/glib/func.strlcpy.html)

Returning dest_size can cause offsets to get off by one and reach
the end of the buffer, and can cause subsequent calls to have
buffer overflows. (See #16905 for an example in the comments.)
2022-07-05 22:12:41 +00:00
John Thacker 5ef4da4d98 epan: Prevent buffer overflows in some built-in addr_to_str types
Several of the constant length string built in address types don't
check to see if the buf_len passed in is long enough to write
the string.

This can cause buffer overflows, e.g. with a custom column with
many FT_ETHER fields.
2022-07-05 21:56:54 +00:00
David Perry 88a7bf9db2 Properly free range strings, ext strings, custom base 2022-07-05 20:43:31 +00:00
David Perry 51315cf37c Fix AUTOSAR heuristic label 2022-07-05 19:19:56 +00:00
David Perry 82408922fd Prevent null dereference in `rescan_file()` 2022-07-05 16:59:19 +00:00
Gerald Combs 6684583c7c tools: Remove more unused variables from make-version.pl 2022-07-05 10:40:34 -05:00
Gerald Combs 218d290110 tools: Remove unused variables from make-version.pl.
It looks like repo_branch, repo_url, and repo_root have been unused
since faf5f86e7e.
2022-07-05 10:16:19 -05:00
Gerald Combs f17d39db1e CMake+tools: Clean up our build version variables.
In the top-level CMakeLists.txt, fill in PROJECT_BUILD_VERSION directly.
Clean up the WiX PRODUCT_VERSION variable.
2022-07-05 15:00:06 +00:00
João Valverde 5e3a7e9ab8 dfilter: Small optimization for "not all zero" code
Remove extra NOT instruction. Also remove unused ANY_ZERO opcode.
2022-07-05 09:58:43 +01:00
Deepthi Mary dfa160832d Adding 9 zbee zcl frames 2022-07-05 07:25:46 +00:00
João Valverde a877f2d5f3 dfilter: Allow existence check for slices
Allow checking if a slice exists. The result is true if the
slice has length greater than zero.

The len() function is implemented as a DFVM instruction instead.
The semantics are the same.
2022-07-04 22:45:14 +00:00
João Valverde 0fc81c21b2 dfilter: Cleanup scanner value setters 2022-07-04 22:15:40 +00:00
Gerald Combs 7b38ff3d9d tools: Remove dead/unused code from make-version.pl.
Remove the "ugly internal SVN file hack" block from make-version.pl. It
only worked for Subversion versions prior to 1.4, which was released in
2006.

Remove the Bazaar (bzr) block. James Brown may not have sang about it,
but even so it's a Git's world.

Remove the Tortoise block. As noted in a comment, it appears to be dead
code.
2022-07-04 21:43:37 +00:00
Gerald Combs ff36056573 [Automatic update for 2022-07-03]
Update manuf, services enterprise numbers, translations, and other items.
2022-07-04 21:30:14 +00:00
Joakim Karlsson 2fe99d640f pfcp: Update to 3GPP TS 29.244 V17.5.0 2022-07-04 19:57:09 +00:00
Roland Knall c054501335 Qt: Fix compile issue for 5.9
Use the legacy method for when a Qt version below 5.10 is being used,
due to the fact, that QLocale::formattedDataSize had not been introduced
before
2022-07-04 19:22:17 +00:00
Anders Broman fed641fc27 http: Add path components to tree 2022-07-04 17:45:08 +00:00
Uli Heilmeier 1489ea8fe6 SMPP: Initialize tvb_msg to NULL
Fixes: wireshark/wireshark#18170
2022-07-04 18:12:03 +02:00
Guy Harris 1018e39ea3 eap: add a comment asking why dissect_eap_identity_wlan() exists?
Must identity strings in EAP be dissected differently over different
protocols?
2022-07-03 23:27:40 -07:00
John Thacker 50a3ac0c18 diameter: Strengthen heuristic slightly
The Diameter message length must be a multiple of 4, something
implicitly true in RFC 3588 and make explicit in RFC 6733.
2022-07-03 21:25:57 -04:00
John Thacker d5c81ba9d8 ath: Add heuristics
Port 45564 is not IANA registered for Apache. The heartbeat
messages all start with the same 8 character ASCII delimiter
string, so use that for heuristics.
2022-07-03 14:54:56 -04:00
John Thacker d065e9ac50 Diameter: Add a heuristic dissector over TCP
Add a heuristic dissector for Diameter over TCP, disabled by default.
We shouldn't need one for Diameter over SCTP, the PPID should take
care of it.
2022-07-03 12:36:31 -04:00
Tomasz Moń d1f7aa5acb
Qt: Do not spin new event loop on menu show
There is no need for nesting event loops when showing menus. Show menus
asynchronously to limit possibilities of hard to debug problems related
to re-entering event loop.
2022-07-03 13:41:30 +02:00
João Valverde 8d93f0920a dfilter: Fix some debug strings 2022-07-02 21:21:12 +01:00
Roland Knall fe3d70e792 Qt: fix uninitialized member
_sortModel is not initialized properly
2022-07-02 17:58:09 +02:00
John Thacker c88107f632 diameter: Register the [D]TLS port
Port 5868 is IANA registered for Diameter over TLS/TCP and
DTLS/SCTP. Register the diameter TCP handle by name so that
it can be registered to tls.
2022-07-02 12:18:28 +00:00
John Thacker f30062b9d5 egd: Do some simple heuristics
GE Fanuc's Ethernet Global Data uses a unassigned UDP port.
Add some simple heuristics, based on the fixed first two bytes
of the message.
2022-07-02 11:25:40 +00:00
João Valverde eb8acd088e dfilter: Rename dfvm opcodes with a namespace prefix 2022-07-02 11:46:45 +01:00
João Valverde fc5c81328e dfilter: Rename test syntax tree node
Test node also includes arithmetic operations so rename it
to a generic "operator" node.
2022-07-02 11:39:17 +01:00
João Valverde b10db887ce dfilter: Remove unparsed syntax type and RHS literal bias
This removes unparsed name resolution during the semantic
check because it feels like a hack to work around limitations
in the language syntax, that should be solved at the lexical
level instead.

We were interpreting unparsed differently on the LHS and RHS.
Now an unparsed value is always a field if it matches a
registered field name (this matches the implementation in 3.6
and before).

This requires tightening a bit the allowed filter names for
protocols to avoid some common and potentially weird conflicting
cases.

Incidentally this extends set grammar to accept all entities.
That is experimental and may be reverted in the future.
2022-07-02 11:18:20 +01:00
Stig Bjørlykke 190404d66b dtls: Support Connection ID when using Block Ciphers
Add support for DTLS Connection ID when using Block Ciphers,
the MAC algorithm is different.
2022-07-01 21:31:51 +00:00