]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
debug: add pkt_src to detect/stream entry log
authorVictor Julien <vjulien@oisf.net>
Mon, 5 Sep 2022 08:51:11 +0000 (10:51 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 17 Jan 2023 13:25:06 +0000 (14:25 +0100)
src/detect.c
src/stream-tcp.c

index e716afd86f6c221b9bc222a5a3889f8c8a2e627b..9fdd2e9c08723eb9795e9eaf8ea206acb687edb6 100644 (file)
@@ -106,10 +106,10 @@ static void DetectRun(ThreadVars *th_v,
         Packet *p)
 {
     SCEnter();
-    SCLogDebug("p->pcap_cnt %" PRIu64 " direction %s flow %p", p->pcap_cnt,
+    SCLogDebug("p->pcap_cnt %" PRIu64 " direction %s pkt_src %s", p->pcap_cnt,
             p->flow ? (FlowGetPacketDirection(p->flow, p) == TOSERVER ? "toserver" : "toclient")
                     : "noflow",
-            p->flow);
+            PktSrcToString(p->pkt_src));
 
     /* bail early if packet should not be inspected */
     if (p->flags & PKT_NOPACKET_INSPECTION) {
index b805a0893af1428405383698e973c414a1a80150..669f0c3096a6931b27c118f339b2f4d3dfec15d0 100644 (file)
@@ -5363,9 +5363,10 @@ TmEcode StreamTcp (ThreadVars *tv, Packet *p, void *data, PacketQueueNoLock *pq)
 {
     StreamTcpThread *stt = (StreamTcpThread *)data;
 
-    SCLogDebug("p->pcap_cnt %" PRIu64 " direction %s", p->pcap_cnt,
+    SCLogDebug("p->pcap_cnt %" PRIu64 " direction %s pkt_src %s", p->pcap_cnt,
             p->flow ? (FlowGetPacketDirection(p->flow, p) == TOSERVER ? "toserver" : "toclient")
-                    : "noflow");
+                    : "noflow",
+            PktSrcToString(p->pkt_src));
     t_pcapcnt = p->pcap_cnt;
 
     if (!(PKT_IS_TCP(p))) {