Commit Graph

90365 Commits

Author SHA1 Message Date
John Thacker 127548227e recent: Keep recent column width in sync with prefs
Keep the recent column width list in sync with the order of the
prefs.col_list by appending, inserting, and moving the recent
column width list at the same time, instead of allowing them
to get out of sync (as we use the format for a key.)

Fix an issue where column_prefs_add_custom did not always return
the position of the column added (when a column number was passed
in that was less than the maximum number of columns.)

Preparation for the width and alignment part of #15529
2024-02-09 09:53:52 -05:00
John Thacker 2574d5b9c6 Qt: Add width and alignment to column preferences
Add the ability to change the width and alignment of columns
from the Column Preferences.

This also makes it easier to eventually fix #15529 by having all
the column-relevant details edited at once. In order to properly
solve that issue, the column indices from the preferences and the
recent settings need to be kept in sync, instead of using the format
as the unique key.

Related to #15529
2024-02-09 06:51:27 -05:00
Gerald Combs eebe0a38be Qt: Fix the FilterExpressionToolBar context menu position
When we open a FilterExpressionToolBar menu and right click on it, make
sure we open our context menu using coordinates relative to the toolbar.
2024-02-08 18:21:34 -08:00
Gerald Combs d3c837f6e0 Falco bridge: Fix a couple of integer casts 2024-02-08 13:17:21 -08:00
Gerald Combs 4ec1ae4523 wsutil: Add null checks to wmem_map
Check for a valid wmem_map pointer in each of our lookup routines. This
keeps us from having to do so in various dissectors.

Fixes #19642
2024-02-08 09:50:34 -08:00
Sergio de Paula e967a3ecc3 Fixed Zigbee NWK GP dissector heuristics
Heuristics should not filter out packets that have destinationPAN ID != IEEE802154_BCAST_PAN, since GPD frames MAY inform PAN ID - GPD spec v1.1.1 section A.1.7.1.2 MAC addressing fields
2024-02-08 07:54:18 +00:00
Jan Wiesemann cd33794373 Fix: formatting 2024-02-08 07:36:49 +00:00
Jan Wiesemann 9b36918071 Qt: added preference for hiding 'Welcom page' -> 'Open'
This commit adds a additional preference to hide the 'Open' (recently opened
files) section on the welcome page.
2024-02-08 07:36:49 +00:00
Darius Davis b571c553b4 DCM: const-ify some big data structures.
The DCM tag/status/uid lookup tables are only ever read.  const-ifying them
moves about 220 kBytes of data to a read-only data section.

packet-dcm.h was regenerated using the make-packet-dcm.py script.
2024-02-08 13:22:22 +10:00
Darius Davis c0c2cac89e DCM: Update from 2021b release to 2024a.
The Well-Known Frames of Reference data have moved to Table A-2, so the script
is updated to integrate the data from that table into the UID list.

Ran "tools/make-packet-dcm.py > epan/dissectors/packet-dcm.h".
2024-02-08 03:00:59 +00:00
Darius Davis 3f69f2a0f8 Tools: Expand licence-check horizon to 160 lines.
MR !14295 ran into trouble with the license checker because three added lines
in tools/make-packet-dcm.py moved the important piece of text outside the
150-line window in which it was checking.

This change maintains the status quo by expanding the window to 160 lines.
2024-02-08 11:35:36 +10:00
Gerald Combs 1d16a8fb89 Frame: Use "System Event"
Use "System Event" instead of "Sysdig Event". It's more generic and
avoids duplicate top-level "Sysdig Event" tree items.
2024-02-07 16:55:09 -08:00
Gerald Combs 98ebebec80 Sysdig Event+Falco Bridge: Highlight I/O data
Pass the sysdig.param.asyncevent.data start and offset to the Falco Bridge
dissector, and use that to highlight the evt.buffer and fd fields.

Pass the data to the ELF dissector if we find an ELF magic ID.
2024-02-07 16:55:04 -08:00
Gerald Combs b7ae4f2eb7 Qt: Add null checks to the protocol tree
eab4734a0d removed actionAnalyzeDecodeAs and actionFileExportPacketBytes
from Logray.
2024-02-07 15:00:14 -08:00
Martin Mathieson b8999a383c Fix some more spelling errors 2024-02-07 21:51:34 +00:00
Joakim Karlsson 754a16258c LI5G: update column protocol and filter name
Lawful Interception (LI) is the main area and should be located first
in name, which will be more easy of use for new user when want to
filter messages
2024-02-07 10:14:38 +01:00
John Thacker 75a64a96b7 Qt: Only save the filtered rows to the Map
Be a little more careful in TrafficTab about whether we
want the Proxy Model or the Source Model, since the tap
filter doesn't exclude rows from the source model (since
the non-displayed rows are used to as part of the percentages
of the total.)

When we want to respect the display filtering or the sorting,
use the proxy model.

In the tap data model, only claim we have GeoIPData (which makes
the map available) if a row that isn't filtered out has data.

Fix #18530
2024-02-07 08:17:15 +00:00
Timo Warns 7fbff7a381 GNSS: add dissector for UBX-RXM-RAWX messages of u-blox GNSS receivers
Add dissector for UBX-RXM-RAWX messages of u-blox GNSS receivers.
2024-02-07 08:15:26 +00:00
Timo Warns 59d56d7520 Move unit string for cycles to unit_strings.h
Move unit string for cycles to unit_strings.h from packet-usb-i1d3.c to
allow for usage by other dissectors.
2024-02-07 08:15:26 +00:00
Timo Warns 5a761cf95c GNSS: use proto_tree_add_bitmask() for UBX bitmask fields
Use proto_tree_add_bitmask() for bitmask fields of UBX messages.
2024-02-07 08:15:26 +00:00
Timo Warns 54fa2250bd GNSS: replace usage of "^2" by UTF8_SUPERSCRIPT_TWO
Replace usage of "^2" by UTF8_SUPERSCRIPT_TWO in value_strings
2024-02-07 08:15:26 +00:00
Timo Warns 44bcfa9f0a GNSS: add dissector for UBX-NAV-SBAS messages
Add dissector for UBX-NAV-SBAS messages of u-blox GNSS receivers.
2024-02-07 08:15:26 +00:00
Timo Warns f1463bbd32 GNSS: Map GNSS ID in UBX-NAV-SAT SV info subtrees
Map the GNSS ID in the UBX-NAV-SAT SV info subtrees
2024-02-07 08:15:26 +00:00
Timo Warns d66973d947 GNSS: reduce ett_ubx_nav_sat_sv_info length
Reduce ett_ubx_nav_sat_sv_info length to 255 entries as a UBX-NAV-SAT
message may include 255 SV infos at most.
2024-02-07 08:15:26 +00:00
Timo Warns 48a5255a25 GNSS: make available SBAS UDREI mapping to other files
Make available SBAS UDREI mapping to other files to enable usage in
other dissectors (e.g. UBX).
2024-02-07 08:15:26 +00:00
Timo Warns c3305a4bd1 GNSS: add dissector for UBX-NAV-TIMEUTC messages
Add dissector for UBX-NAV-TIMEUTC messages of u-blox GNSS receivers.
2024-02-07 08:15:26 +00:00
Stefan Metzmacher 4b68415213 dcerpc-netlogon: fix const related compiler warnings
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:10:19 +00:00
Stefan Metzmacher b85a56ac73 dcerpc-netlogon: fix dissecting NetrLogonGetCapabilities
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:10:19 +00:00
Stefan Metzmacher 962979a802 dcerpc-netlogon: add basic dissection for NetrChainSetClientAttributes
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:10:19 +00:00
Stefan Metzmacher d65b6075af dcerpc-netlogon: add decryption support for netlogon.sendtosam.opaquebuffer
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:10:19 +00:00
Stefan Metzmacher e673fc411d dcerpc-netlogon: fix dissecting of NetrLogonSendToSam
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:10:19 +00:00
Stefan Metzmacher 4f1ed11da0 dcerpc-netlogon: fix netlogon_dissect_NETLOGON_SECURE_CHANNEL_TYPE for NDR64
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:10:19 +00:00
Stefan Metzmacher a8ad212436 dcerpc-netlogon: add the latest opcodes from [MS-NRPC]
Dissecting them in detail is a task for another day...

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:10:19 +00:00
Stefan Metzmacher 8a6a10b02d dcerpc-netlogon: make use of common dissect_ndr_nt_SE_GROUP_ATTRIBUTES()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:10:19 +00:00
Stefan Metzmacher 3a0891a257 dcerpc-nt: add dissect_ndr_nt_SE_GROUP_ATTRIBUTES
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:10:19 +00:00
Stefan Metzmacher dde539d342 windows-commoni: add new wellknown rids values
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:10:19 +00:00
Stefan Metzmacher dff5065873 windows-common: fix handling of Compounded Authentication/Claims Valid SIDs
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:10:19 +00:00
Stefan Metzmacher 4be3aad2a4 pkinit: pass kerberos_is_win2k_pkinit() over actx boundaries
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:09:36 +00:00
Stefan Metzmacher 647bb10117 Kerberos: add support for aes256-cts-hmac-sha1-96-sk
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:09:36 +00:00
Stefan Metzmacher 8b15994f2b Kerberos: add support for PAC_FULL_CHECKSUM
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:09:36 +00:00
Stefan Metzmacher 8efeee83d1 Kerberos: add AP_OPTIONS UNVERIFIED_TARGET_NAME flag
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-07 08:09:36 +00:00
Vadim Yanitskiy ecb4562e3b M3UA: also dissect tcp/2905, implement reassembly
RFC 4666 section 1.3.1 states that "TCP MAY be used as the underlying
common transport protocol" under certain scenarios.  There is even
IANA-allocated TCP port 2905 for that purpose (see section 1.4.8).
2024-02-07 08:05:41 +00:00
Gerald Combs c9bbcca3b8 Qt: Show "Events" in the status bar when appropriate 2024-02-07 03:25:38 +00:00
Gerald Combs eab4734a0d Logray: UI updates
Change some instances of "packet" to "event" in Logray's menu items.
Remove "Export Objects" and "Export PDUs" and associated code. Remove
the packet diagram menu items and associated code. Remove the "Decode
as" menu items and associated code.

Use "Selected" instead of the parenthetical plural "Packet(s)" for
marking and ignoring. Remove an attempt at plural translation which
apparently doesn't work if we don't have a "%n" in the translation
string.
2024-02-07 03:25:15 +00:00
Darius Davis 2de251261d conversation: Fix conversation_element_list_values.
Fix a misplaced brace in debug-only function conversation_element_list_values.
(The "#if 0" means that the compiler didn't catch it.)

Move the type_names array to file-level to avoid the two copies getting out of
sync again.

Add a DISSECTOR_ASSERT to ensure that input conversation_element_type values
are within range.
2024-02-07 10:48:43 +10:00
Gerald Combs b5d010d44e CMake+Logray: Add the About → Authors CSV resource 2024-02-06 21:11:26 +00:00
Gerald Combs 2a73e99cfb Falco bridge: Syscall conversation updates
Add a pinfo conversation filter which enables related packets based on
(container.id, proc.id) combinations. Register the "Process" conversation
filter first so that the "Go" menu behavior matches the related packet
display.

Handle cases where container.id is missing.

Add 64-bit integer type support to conversations.
2024-02-06 12:24:28 -08:00
John Thacker e972a755d2 dfilter: Handle null arguments to min, max
min and max need to handle null arguments where the GPtrArray
is null, generated when there have been other opcodes between
the field loading and the function. (They are ignored, not
treated as zero, so they don't change the minimum.)

Prevents crashes with filters where a field does not exist in the tree:

min(tcp.srcport * 10, tcp.dstport * 10) == 800
min(len(tcp.payload), len(udp.payload)) == 153
min(len(tcp.payload[2:]) + 2, len(udp.payload[2:]) + 2) == 153

where a register is loaded where it has not had its GPtrArray created:

./run/dftest 'min(len(tcp.payload), len(udp.payload))'
Filter:
 min(len(tcp.payload), len(udp.payload))

Instructions:
 0000 READ_TREE        tcp.payload      -> R1
 0001 IF_FALSE_GOTO    3
 0002 LENGTH           R1               -> R2
 0003 STACK_PUSH       R2
 0004 READ_TREE        udp.payload      -> R3
 0005 IF_FALSE_GOTO    7
 0006 LENGTH           R3               -> R4
 0007 STACK_PUSH       R4
 0008 CALL_FUNCTION    min(R2, R4)      -> R0
 0009 STACK_POP        [2]
 0010 IF_FALSE_GOTO    12
 0011 NOT_ALL_ZERO     R0
 0012 RETURN

Related to fcb6bb5763
(Prior to that commit, this worked because a NULL pointer is a
valid, empty GSList.)
2024-02-06 15:32:57 +00:00
Stefan Metzmacher 795dc54aae ldap: make use of STRING_CASE_INSENSITIVE for CLDAP
Commit 05e404e8cb was wrong...

This allows dissection of the 'NETLOGON' attribute in
the same way as the 'netlogon' attribute.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-06 14:14:50 +00:00
Stefan Metzmacher f6efcb3313 ldap: assume GSS-SPNEGO as default
This allows GSSAPI/SASL dissection if the ldap bind is not captured.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-02-06 14:14:50 +00:00