From: Victor Julien Date: Fri, 11 Jun 2021 08:52:25 +0000 (+0200) Subject: packets: more detailed entry debug for detect/stream X-Git-Tag: suricata-7.0.0-beta1~1591 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beb6b1e0d1ad1b0dcf7a4c524792d9d08d311f09;p=thirdparty%2Fsuricata.git packets: more detailed entry debug for detect/stream --- diff --git a/src/detect.c b/src/detect.c index 4124adf385..ae5a76c174 100644 --- a/src/detect.c +++ b/src/detect.c @@ -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) { diff --git a/src/stream-tcp.c b/src/stream-tcp.c index a9892d8aa5..07c94446ef 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -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;