]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
packets: more detailed entry debug for detect/stream
authorVictor Julien <victor@inliniac.net>
Fri, 11 Jun 2021 08:52:25 +0000 (10:52 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 14 Jun 2021 19:22:11 +0000 (21:22 +0200)
src/detect.c
src/stream-tcp.c

index 4124adf385965605cd2182aa8ecd67c8050b019b..ae5a76c174823aeba298912d6a3df302a5e3054d 100644 (file)
@@ -96,7 +96,10 @@ static void DetectRun(ThreadVars *th_v,
         Packet *p)
 {
     SCEnter();
-    SCLogDebug("pcap_cnt %"PRIu64, p->pcap_cnt);
+    SCLogDebug("p->pcap_cnt %" PRIu64 " direction %s flow %p", p->pcap_cnt,
+            p->flow ? (FlowGetPacketDirection(p->flow, p) == TOSERVER ? "toserver" : "toclient")
+                    : "noflow",
+            p->flow);
 
     /* bail early if packet should not be inspected */
     if (p->flags & PKT_NOPACKET_INSPECTION) {
index a9892d8aa5e2ab39b13e07156cd8fb049dfe1690..07c94446ef5385a42afb25c434b4e3fc04619d78 100644 (file)
@@ -5196,7 +5196,9 @@ TmEcode StreamTcp (ThreadVars *tv, Packet *p, void *data, PacketQueueNoLock *pq)
 {
     StreamTcpThread *stt = (StreamTcpThread *)data;
 
-    SCLogDebug("p->pcap_cnt %"PRIu64, p->pcap_cnt);
+    SCLogDebug("p->pcap_cnt %" PRIu64 " direction %s", p->pcap_cnt,
+            p->flow ? (FlowGetPacketDirection(p->flow, p) == TOSERVER ? "toserver" : "toclient")
+                    : "noflow");
 
     if (!(PKT_IS_TCP(p))) {
         return TM_ECODE_OK;