]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #1371 in SNORT/snort3 from typos to master
authorRuss Combs (rucombs) <rucombs@cisco.com>
Thu, 27 Sep 2018 13:13:48 +0000 (09:13 -0400)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Thu, 27 Sep 2018 13:13:48 +0000 (09:13 -0400)
Squashed commit of the following:

commit 46622b7e8f5d394060d66e543c4c814fb7d31661
Author: Russ Combs <rucombs@cisco.com>
Date:   Tue Sep 25 23:51:05 2018 -0400

    manual: fix some typos

commit 304524c7a7aa1214225258cb4f919779de3f8aa4
Author: Russ Combs <rucombs@cisco.com>
Date:   Tue Sep 25 23:42:07 2018 -0400

    source: fix some typos

13 files changed:
doc/active.txt
src/detection/regex_offload.cc
src/file_api/circular_buffer.cc
src/flow/flow_key.cc
src/main/snort_config.cc
src/main/snort_debug.h
src/network_inspectors/appid/appid_config.cc
src/network_inspectors/appid/appid_http_session.h
src/network_inspectors/appid/lua_detector_flow_api.cc
src/network_inspectors/packet_capture/packet_capture.cc
src/network_inspectors/packet_tracer/packet_tracer.cc
src/service_inspectors/sip/test/sip_splitter_test.h
tools/snort2lua/helpers/converter.cc

index 0c88f12adab740a037acf93a60e9f7085b277c72..3c48eff2ad689c7447706615e3f829153761a953 100644 (file)
@@ -88,7 +88,7 @@ resetting it.
 
 The page to be sent can be read from a file:
 
-    react = { page = "custmized_block_page.html", }
+    react = { page = "customized_block_page.html", }
 
 or else the default is used:
 
index 9e34e056d228b990ebe8f13064407643746861f0..d29d4d37f8198b00ecc44bbaf6e380da2606aa80 100644 (file)
@@ -119,7 +119,7 @@ void RegexOffload::worker(RegexRequest* req)
 
 void RegexOffload::tterm()
 {
-    // FIXIT-M break this overcoupling. In reality we shouldn't be evaluating latency in offload.
+    // FIXIT-M break this over-coupling. In reality we shouldn't be evaluating latency in offload.
     PacketLatency::tterm();
     RuleLatency::tterm();
 }
index 1452082ce8b3d04fed221713ea9da2aa9dd50bc9..e71f28a944fbdc873239f7244c50b92702e33425 100644 (file)
@@ -22,7 +22,7 @@
  **
  **  NOTES
  **
- **  Circular buffer is thread safe for one writer and one reader thread
+ **  Circular buffer is thread-safe for one writer and one reader thread
  **
  **  This implementation is inspired by one slot open approach.
  **  See http://en.wikipedia.org/wiki/Circular_buffer
index c4dc91ffcb03af68d878f1a57b18bf8adf1b6554..afaf68267f09b39f6769aece67851d19dec7d04f 100644 (file)
@@ -103,7 +103,7 @@ inline bool FlowKey::init4(
 
     if (ip_proto == IpProtocol::ICMPV4)
         update_icmp4(srcIP, srcPort, dstIP, dstPort);
-    
+
     src = srcIP->get_ip4_value();
     dst = dstIP->get_ip4_value();
 
@@ -324,7 +324,7 @@ uint32_t FlowKey::hash(HashFnc* hf, const unsigned char* p, int)
 
     a += d[9];   // port lo & port hi
     b += d[10];  // vlan tag, address space id
-    c += d[11];  // ip_proto, pkt_type, version, and 8bits of zeroed pad, 
+    c += d[11];  // ip_proto, pkt_type, version, and 8 bits of zeroed pad
 
     finalize(a, b, c);
 
index 91ecf2d77840e2dd5e9681bf9be791f7a123b090..303a69de07bea22b83b030b1ef7395ad28196956 100644 (file)
@@ -253,7 +253,7 @@ SnortConfig::~SnortConfig()
             if ( scratch_handlers[i - 1].second )
                 scratch_handlers[i - 1].second(this);
         }
-        // FIXME-T: Do we need to shrink_to_fit() state->scratch at this point?
+        // FIXIT-T: Do we need to shrink_to_fit() state->scratch at this point?
     }
 
     FreeRuleLists(this);
index 2c67171d8d8c63194c77604cae5ed7b2e01215d1..f934cd69072d0a269e20e5d22da22eca0be4109d 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef SNORT_DEBUG_H
 #define SNORT_DEBUG_H
 
-// this provides a module trace capabilty that can be set by config to
+// this provides a module trace capability that can be set by config to
 // turn on the output of specific debug messages.
 //
 
index f179f5ca7eb4e393a2fe060192de15947c22c6d2..ede083f095c4e7f4bcbd79076f32c0024d24f081 100644 (file)
@@ -133,7 +133,7 @@ AppIdConfig::~AppIdConfig()
     cleanup();
 }
 
-//FIXIT-M: RELOAD - Move app info tabe cleanup back 
+//FIXIT-M: RELOAD - Move app info table cleanup back 
 //to AppId config destructor - cleanup()
 void AppIdConfig::pterm()
 {
index 198608fa5a3ff334adf4c1fb4ee596726670420c..2b592c83dfcd213ea846e732aa64681f574368cd 100644 (file)
@@ -41,7 +41,7 @@ class HttpPatternMatchers;
 // 0 - 8 (inclusive)       : used heavily in CHP code. DO NOT CHANGE.
 // 9 - NUM_METADATA_FIELDS : extra metadata buffers, beyond CHP.
 // NUM_METADATA_FIELDS     : must always follow the last metadata FID.
-// NUM_HTTP_FIELDS       : number of CHP filds, so always RSP_BODY_FID + 1
+// NUM_HTTP_FIELDS         : number of CHP fields, so always RSP_BODY_FID + 1
 enum HttpFieldIds : uint8_t
 {
     // 0-8: CHP fields. DO NOT CHANGE
index c1e1908150d62937c802b18d1c4134ca80c95874..9aa2fb00c43a297114483242060b4a7fb9d9c2c0 100644 (file)
@@ -313,7 +313,7 @@ static int clear_detector_flow_flag(lua_State* L)
 }
 
 /**Set service id on a flow
- * If funtion is implemented, then
+ * If function is implemented, then
  * verify detector user data and that we are in packet context
  *
  * @param Lua_State* - Lua state variable.
@@ -325,7 +325,7 @@ static int set_detector_flow_service_id(lua_State*)
 { return 0; }
 
 /**Set client application id on a flow, during packet processing
- * If funtion is implemented, then
+ * If function is implemented, then
  * verify detector user data and that we are in packet context
  *
  * @param Lua_State* - Lua state variable.
@@ -339,7 +339,7 @@ static int set_detecter_flow_cln_app_id(lua_State*)
 }
 
 /**Set client application type id on a flow, during packet processing
- * If funtion is implemented, then
+ * If function is implemented, then
  * verify detector user data and that we are in packet context
  *
  * @param Lua_State* - Lua state variable.
index 3bfa8508525bdf94c46b32ffcb810493a93dcc7b..ac7c644fa6b2663f5364c4e8b13fbf0b41de18d0 100644 (file)
@@ -76,7 +76,7 @@ static void _capture_term()
 
 static bool bpf_compile_and_validate()
 {
-    // FIXIT-M This BPF compilation is not threadsafe and should be handled by the main thread
+    // FIXIT-M This BPF compilation is not thread-safe and should be handled by the main thread
     // and this call should use DLT from DAQ rather then hard coding DLT_EN10MB
     if ( pcap_compile_nopcap(SNAP_LEN, DLT_EN10MB, &bpf,
         config.filter.c_str(), 1, 0) >= 0 )
index 80c67dbcb440c55060e7d5dc8ca788811646831e..af5a3b5cd8fe9a345c255f88775c5b115a72a79c 100644 (file)
@@ -50,7 +50,7 @@ using namespace snort;
 
 static const uint8_t VERDICT_REASON_NO_BLOCK = 2; /* Not blocking packet; all enum defined after this indicates blocking */
 
-// FIXIT-M currently non-threadsafe accesses being done in packet threads against this
+// FIXIT-M currently non-thread-safe accesses being done in packet threads against this
 static std::unordered_map<uint8_t, uint8_t> reasons = { {VERDICT_REASON_NO_BLOCK, PacketTracer::PRIORITY_UNSET} };
 
 // FIXIT-M refactor the way this is used so all methods are members called against this pointer
index 2963345d5dda06b9f02f31a26811f2943fd010c5..a14cbae7e14a6b365ed6fdbe7a1161729f0392a1 100644 (file)
@@ -36,7 +36,7 @@ const uint8_t no_lf_cr = '\t';
 //characters recognized by isspace() as spaces
 const uint8_t spaces[] = {' ', '\t', '\n', '\v', '\f', '\r'};
 
-//character recognized by isblanck() as seperators 
+//character recognized by isblank() as separators
 const uint8_t blanks[] = {' ', '\t' };
 
 class SipSplitterUT
index 66b65a7b3161c3262aa935d4e3e5246a5d776662..709398c609963fdc3ef9f4780736c2eae1ca4a58 100644 (file)
@@ -215,7 +215,7 @@ int Converter::parse_file(
         if ( tmp.empty() )
             continue;
 
-        // same critea used for rtrim
+        // same criteria used for rtrim
         // http://en.cppreference.com/w/cpp/string/byte/isspace
         std::size_t first_non_white_char = tmp.find_first_not_of(" \f\n\r\t\v");