]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: minor improvement to timestamp debug messages
authorVictor Julien <vjulien@oisf.net>
Mon, 1 Sep 2025 12:51:49 +0000 (14:51 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 8 Sep 2025 16:47:16 +0000 (18:47 +0200)
Add pcap_cnt for easier debugging.

src/stream-tcp.c

index de374626e84f565ea85582fc9e7008ebba26ae2f..9270dba1d7f071636587828340567908bd9d6f6d 100644 (file)
@@ -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;
         }
     }