From 49b98ab3bf84f44c572ef3e65ef7f1d13a908c1a Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 1 Sep 2025 14:51:49 +0200 Subject: [PATCH] stream: minor improvement to timestamp debug messages Add pcap_cnt for easier debugging. --- src/stream-tcp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stream-tcp.c b/src/stream-tcp.c index de374626e8..9270dba1d7 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -1784,14 +1784,14 @@ static inline bool StateSynSentValidateTimestamp(TcpSession *ssn, Packet *p) if (receiver_stream->last_ts != 0 && ts_echo != 0 && ts_echo != receiver_stream->last_ts) { - SCLogDebug("ssn %p: BAD TSECR echo %u recv %u", ssn, - ts_echo, receiver_stream->last_ts); + SCLogDebug("%" PRIu64 ": ssn %p: BAD TSECR echo %u recv %u", p->pcap_cnt, ssn, ts_echo, + receiver_stream->last_ts); return false; } } else { if (receiver_stream->last_ts == 0 && ts_echo != 0) { - SCLogDebug("ssn %p: BAD TSECR echo %u recv %u", ssn, - ts_echo, receiver_stream->last_ts); + SCLogDebug("%" PRIu64 ": ssn %p: BAD TSECR echo %u recv %u", p->pcap_cnt, ssn, ts_echo, + receiver_stream->last_ts); return false; } } -- 2.47.3