packets: more detailed entry debug for detect/stream

pull/6197/head
Victor Julien 4 years ago
parent 3587033d9e
commit beb6b1e0d1

@ -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) {

@ -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;

Loading…
Cancel
Save