]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3294: stream_tcp: Clarify small segments help text and remove usage...
authorMasud Hasan (mashasan) <mashasan@cisco.com>
Thu, 3 Mar 2022 15:07:43 +0000 (15:07 +0000)
committerMasud Hasan (mashasan) <mashasan@cisco.com>
Thu, 3 Mar 2022 15:07:43 +0000 (15:07 +0000)
Merge in SNORT/snort3 from ~MASHASAN/snort3:small_segs to master

Squashed commit of the following:

commit 52982070e9dd55f4b2e5dcd01031b1311087e412
Author: Masud Hasan <mashasan@cisco.com>
Date:   Wed Mar 2 10:44:58 2022 -0500

    stream_tcp: Clarify small segments help text and remove usage from lua

doc/reference/builtin_stubs.txt
lua/max_detect.lua
lua/security.lua
src/stream/tcp/tcp_module.cc

index b3ba748aacc71b78c85d5edbee9260bfc93556c5..08b27fd4e3d09da345ab1ddb75c55cb701d9b539 100644 (file)
@@ -1828,8 +1828,7 @@ Received TCP data with no TCP flags set.
 
 129:12
 
-Consecutive TCP small segments exceed the configured threshold. The size required to be a small segment can
-be configured via stream_tcp.small_segments.maximum_size, and the maximum number of these small segments can be configured
+Consecutive (in the order of received packets, not the order of sequence numbers) TCP small segments exceed the configured threshold. The size required to be a small segment can be configured via stream_tcp.small_segments.maximum_size, and the maximum number of these small segments can be configured
 with int stream_tcp.small_segments.count.
 
 129:13
index 418f45519f77e0a74eb81077656d6b63eb8984eb..7e6ff3a2033e7abe8f165c9816517092f6a93e51 100644 (file)
@@ -43,12 +43,6 @@ smtp.decompress_zip = true
 
 stream_ip.min_frag_length = 100
 
-stream_tcp.small_segments =
-{
-    count = 3,
-    maximum_size = 150,
-}
-
 telnet.check_encrypted = true
 telnet.normalize = true
 
index c2613d94f7947bc537626634a2ab9e630b9a84d9..c4d7b3c3ca1e4540bc8106180739d9fafce3e4be 100644 (file)
@@ -33,12 +33,6 @@ smtp.decompress_zip = true
 
 stream_ip.min_frag_length = 100
 
-stream_tcp.small_segments =
-{
-    count = 3,
-    maximum_size = 150,
-}
-
 telnet.check_encrypted = true
 telnet.normalize = true
 
index 4de1e87f2fdfbef2e5eebc168545c150f9e9c40c..e7919c857dd39a4bbeb5037da622e1897a50f46c 100644 (file)
@@ -164,7 +164,7 @@ THREAD_LOCAL TcpStats tcpStats;
 static const Parameter stream_tcp_small_params[] =
 {
     { "count", Parameter::PT_INT, "0:2048", "0",
-      "number of consecutive TCP small segments considered to be excessive (129:12)" },
+      "number of consecutive (in the received order) TCP small segments considered to be excessive (129:12)" },
 
     { "maximum_size", Parameter::PT_INT, "0:2048", "0",
       "minimum bytes for a TCP segment not to be considered small (129:12)" },