]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixing IPS module's range explanation
authorJosh <jrosenba@cisco.com>
Thu, 16 Oct 2014 21:05:56 +0000 (16:05 -0500)
committerJosh <jrosenba@cisco.com>
Thu, 16 Oct 2014 21:05:56 +0000 (16:05 -0500)
13 files changed:
src/ips_options/ips_ack.cc
src/ips_options/ips_bufferlen.cc
src/ips_options/ips_dsize.cc
src/ips_options/ips_fragoffset.cc
src/ips_options/ips_icmp_id.cc
src/ips_options/ips_icmp_seq.cc
src/ips_options/ips_icode.cc
src/ips_options/ips_id.cc
src/ips_options/ips_itype.cc
src/ips_options/ips_seq.cc
src/ips_options/ips_tos.cc
src/ips_options/ips_ttl.cc
src/ips_options/ips_window.cc

index b5c3d71cc8d2043a17b41adf31eb4833b5a94e49..ab6f1fa92213a236d38e60e59e74d0cfe9cd166d 100644 (file)
@@ -117,7 +117,7 @@ int TcpAckOption::eval(Cursor&, Packet *p)
 static const Parameter s_params[] =
 {
     { "~range", Parameter::PT_STRING, nullptr, nullptr,
-      "check if packet payload size is min<>max | <max | >min" },
+      "check if packet payload size is 'size | min<>max | <max | >min'" },
 
     { nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
 };
index 2d2296cf9e940159a383470ecc20d505c24ca9d4..b52b6806656882cd6ae49e022a97fa1c12f3bc48 100644 (file)
@@ -110,7 +110,7 @@ int LenOption::eval(Cursor& c, Packet*)
 static const Parameter s_params[] =
 {
     { "~range", Parameter::PT_STRING, nullptr, nullptr,
-      "min<>max | <max | >min" },
+      "len | min<>max | <max | >min" },
 
     { nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
 };
index 14c28e8b93b1aa743abde8c83afc7cd8898b8524..d8c5e63af77c8c0169fe1af39a0ca348ee8e016a 100644 (file)
@@ -125,7 +125,7 @@ int DsizeOption::eval(Cursor&, Packet *p)
 static const Parameter s_params[] =
 {
     { "~range", Parameter::PT_STRING, nullptr, nullptr,
-      "check if packet payload size is min<>max | <max | >min" },
+      "check if packet payload size is 'size | min<>max | <max | >min'" },
 
     { nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
 };
index 018d9c8649ccea25e0f7ccaa4440404608f4f8df..4d1d7a4a7d54a88a8824172d74df444ada24dc4c 100644 (file)
@@ -115,7 +115,7 @@ int FragOffsetOption::eval(Cursor&, Packet *p)
 static const Parameter s_params[] =
 {
     { "~range", Parameter::PT_STRING, nullptr, nullptr,
-      "check if packet payload size is min<>max | <max | >min" },
+      "check if packet payload size is 'size | min<>max | <max | >min'" },
 
     { nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
 };
index dac1c16921249a6e288d333f7548ec78f0a8df5a..840ed65e299c5d1a981f21bd4fb52a34d4b9a576 100644 (file)
@@ -139,7 +139,7 @@ int IcmpIdOption::eval(Cursor&, Packet *p)
 static const Parameter s_params[] =
 {
     { "~range", Parameter::PT_STRING, nullptr, nullptr,
-      "check if icmp id is min<>max | <max | >min" },
+      "check if icmp id is 'id | min<>max | <max | >min'" },
 
     { nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
 };
index 113bc5d53fb62477dcfed197b95378e5489580fb..bf711a765ae4165fdfb652445a297a2822637653 100644 (file)
@@ -141,7 +141,7 @@ int IcmpSeqOption::eval(Cursor&, Packet *p)
 static const Parameter s_params[] =
 {
     { "~range", Parameter::PT_STRING, nullptr, nullptr,
-      "check if icmp sequence number is min<>max | <max | >min" },
+      "check if icmp sequence number is 'seq | min<>max | <max | >min'" },
 
     { nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
 };
index 05372aa970e3e41079e112762d77067d7dad258b..98dde0cf7dde1c760b499a603360fa880edd0904 100644 (file)
@@ -112,7 +112,7 @@ int IcodeOption::eval(Cursor&, Packet *p)
 static const Parameter s_params[] =
 {
     { "~range", Parameter::PT_STRING, nullptr, nullptr,
-      "check if ICMP code is min<>max | <max | >min" },
+      "check if ICMP code is 'code | min<>max | <max | >min'" },
 
     { nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
 };
index 39d4804c434507ebcf29b855e2a875ca6a86e206..4307837e533979a2a680baf88405f9012767d789 100644 (file)
@@ -107,7 +107,7 @@ int IpIdOption::eval(Cursor&, Packet *p)
 static const Parameter s_params[] =
 {
     { "~range", Parameter::PT_STRING, nullptr, nullptr,
-      "check if the IP ID is min<>max | <max | >min" },
+      "check if the IP ID is 'id | min<>max | <max | >min'" },
 
     { nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
 };
index 8151d85b996132ad6dced65ecd89ae8241177911..9b0f08104ad90311383c28acfbda12abe103992c 100644 (file)
@@ -109,7 +109,7 @@ int IcmpTypeOption::eval(Cursor&, Packet *p)
 static const Parameter s_params[] =
 {
     { "~range", Parameter::PT_STRING, nullptr, nullptr,
-      "check if icmp type is min<>max | <max | >min" },
+      "check if icmp type is 'type | min<>max | <max | >min'" },
 
     { nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
 };
index a8822881533b587a670a3c86d9cf7fa01b125dfc..11a06fd975dd1610d04b2beb75e0a7f81d5c8b58 100644 (file)
@@ -106,7 +106,7 @@ int TcpSeqOption::eval(Cursor&, Packet *p)
 static const Parameter s_params[] =
 {
     { "~range", Parameter::PT_STRING, nullptr, nullptr,
-      "check if packet payload size is min<>max | <max | >min" },
+      "check if packet payload size is 'size | min<>max | <max | >min'" },
 
     { nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
 };
index c289f880b9722311b75e9a840ebef66953e3033c..81a94a1c7b8637dba2655d5d71fa912ab03130d4 100644 (file)
@@ -108,7 +108,7 @@ int IpTosOption::eval(Cursor&, Packet *p)
 static const Parameter s_params[] =
 {
     { "~range", Parameter::PT_STRING, nullptr, nullptr,
-      "check if packet payload size is min<>max | <max | >min" },
+      "check if packet payload size is 'size | min<>max | <max | >min'" },
 
     { nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
 };
index 7d6cf63b8f2a77febae8168a15e5559c6b15fa48..4d5145369d3f91bc00e20fb5d31d6be95ecadb4a 100644 (file)
@@ -107,7 +107,7 @@ int TtlOption::eval(Cursor&, Packet *p)
 static const Parameter s_params[] =
 {
     { "~range", Parameter::PT_STRING, nullptr, nullptr,
-      "check if packet payload size is min<>max | <max | >min" },
+      "check if packet payload size is 'size | min<>max | <max | >min'" },
 
     { nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
 };
index 1d42b3d938b3ea978e12466638d82e3f7798d521..ba68107d75cda67340abdf3ba7b7cfa25544c1ac 100644 (file)
@@ -106,7 +106,7 @@ int TcpWinOption::eval(Cursor&, Packet *p)
 static const Parameter s_params[] =
 {
     { "~range", Parameter::PT_STRING, nullptr, nullptr,
-      "check if packet payload size is min<>max | <max | >min" },
+      "check if packet payload size is 'size | min<>max | <max | >min'" },
 
     { nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
 };