]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3702: stream: ignore PAWS timestamp checks when in no_ack mode
authorSteven Baigal (sbaigal) <sbaigal@cisco.com>
Wed, 14 Dec 2022 15:18:26 +0000 (15:18 +0000)
committerSteven Baigal (sbaigal) <sbaigal@cisco.com>
Wed, 14 Dec 2022 15:18:26 +0000 (15:18 +0000)
Merge in SNORT/snort3 from ~JALIIMRA/snort3:paws_ts_check to master

Squashed commit of the following:

commit f7307eba55b333bd74d32b466d686176a6edf5f3
Author: Juweria Ali Imran <jaliimra@cisco.com>
Date:   Wed Dec 7 10:26:07 2022 -0500

    stream: ignore PAWS timestamp checks when in no_ack mode

src/stream/tcp/tcp_session.cc

index 7a69e9752be898a87b16fd0bc1df32a38fe4c9d0..a88229e949f10d88b4da6e3eef9c84aa35dc8851 100644 (file)
@@ -696,7 +696,11 @@ void TcpSession::update_paws_timestamps(TcpSegmentDescriptor& tsd)
     TcpStreamTracker* listener = tsd.get_listener();
     TcpStreamTracker* talker = tsd.get_talker();
 
-    if ( listener->normalizer.handling_timestamps()
+    if ( no_ack_mode_enabled() )
+    { 
+        talker->set_ts_last(0); 
+    }
+    else if ( listener->normalizer.handling_timestamps()
         && SEQ_EQ(listener->r_win_base, tsd.get_seq()) )
     {
         if ( ((int32_t)(tsd.get_timestamp() - talker->get_ts_last()) >= 0  )