debug: add pkt_src to detect/stream entry log

pull/8390/head
Victor Julien 3 years ago
parent ef2ed35311
commit af211cbfad

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

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

Loading…
Cancel
Save