aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorChuck Craft <bubbasnmp@gmail.com>2022-04-15 10:10:51 -0500
committerRoland Knall <rknall@gmail.com>2022-07-12 14:15:33 +0000
commite12954a637527f7fcc85cea51b2b147f93188828 (patch)
treeb39055fe0afbf5b8edc7945a62bd315f3b4711c0 /epan/packet.c
parent8ac995578c0a314fc1dc091d6f0fdc268b94da7c (diff)
epan: ws_debug log for heuristic that claims frame (len != 0)
It's possible for a dissector to claim a frame without adding to the tree or being added to frame.protocols (see !6669) Log a debug message showing the pinfo layers and the dissector that claimed the tvb (frame/packet).
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/packet.c b/epan/packet.c
index a3f0f865f1..6a7ce0300c 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -2957,6 +2957,10 @@ dissector_try_heuristic(heur_dissector_list_t sub_dissectors, tvbuff_t *tvb,
}
}
if (len) {
+ if (ws_log_msg_is_active(WS_LOG_DOMAIN, LOG_LEVEL_DEBUG)) {
+ ws_debug("Frame: %d | Layers: %s | Dissector: %s\n", pinfo->num, proto_list_layers(pinfo), hdtbl_entry->short_name);
+ }
+
*heur_dtbl_entry = hdtbl_entry;
/* Bubble the matched entry to the top for faster search next time. */