]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: Fix typos/spelling errors.
authorJeff Lucovsky <jeff@lucovsky.org>
Sat, 21 Dec 2019 16:12:30 +0000 (11:12 -0500)
committerVictor Julien <victor@inliniac.net>
Tue, 18 Feb 2020 15:25:21 +0000 (16:25 +0100)
src/detect-engine.c
src/detect.h

index 98fa0975d3ffee515e0ec21e23eccd5fe5d507a9..8eb16dffd900a61b82ee1936c8ab80c5369b7a9e 100644 (file)
@@ -1812,7 +1812,7 @@ static int DetectEngineReloadThreads(DetectEngineCtx *new_de_ctx)
     }
     BUG_ON(i != no_of_detect_tvs);
 
-    /* atomicly replace the det_ctx data */
+    /* atomically replace the det_ctx data */
     i = 0;
     for (ThreadVars *tv = tv_root[TVT_PPT]; tv != NULL; tv = tv->next) {
         if ((tv->tmm_flags & TM_FLAG_DETECT_TM) == 0) {
@@ -2096,7 +2096,7 @@ void DetectEngineCtxFree(DetectEngineCtx *de_ctx)
 /** \brief  Function that load DetectEngineCtx config for grouping sigs
  *          used by the engine
  *  \retval 0 if no config provided, 1 if config was provided
- *          and loaded successfuly
+ *          and loaded successfully
  */
 static int DetectEngineCtxLoadConf(DetectEngineCtx *de_ctx)
 {
@@ -2713,7 +2713,7 @@ static TmEcode ThreadCtxDoInit (DetectEngineCtx *de_ctx, DetectEngineThreadCtx *
  *  \param data[out] pointer to store our thread detection ctx
  *
  *  \retval TM_ECODE_OK if all went well
- *  \retval TM_ECODE_FAILED on serious erro
+ *  \retval TM_ECODE_FAILED on serious errors
  */
 TmEcode DetectEngineThreadCtxInit(ThreadVars *tv, void *initdata, void **data)
 {
index 39de33e2b29d56b6df0e682345e4a005d0823a34..404005bb0d3b8f75567cb65ddda7d6903c3e4adf 100644 (file)
@@ -334,7 +334,7 @@ struct DetectEngineThreadCtx_;// DetectEngineThreadCtx;
 
 /* inspection buffer is a simple structure that is passed between prefilter,
  * transformation functions and inspection functions.
- * Initialy setup with 'orig' ptr and len, transformations can then take
+ * Initially setup with 'orig' ptr and len, transformations can then take
  * then and fill the 'buf'. Multiple transformations can update the buffer,
  * both growing and shrinking it.
  * Prefilter and inspection will only deal with 'inspect'. */
@@ -502,7 +502,7 @@ typedef struct SignatureInitData_ {
     int transform_cnt;
 
     /** score to influence rule grouping. A higher value leads to a higher
-     *  likelyhood of a rulegroup with this sig ending up as a contained
+     *  likelihood of a rulegroup with this sig ending up as a contained
      *  group. */
     int whitelist;
 
@@ -900,7 +900,7 @@ typedef struct DetectEngineCtx_ {
     /** id of loader thread 'owning' this de_ctx */
     int loader_id;
 
-    /** are we useing just mpm or also other prefilters */
+    /** are we using just mpm or also other prefilters */
     enum DetectEnginePrefilterSetting prefilter_setting;
 
     HashListTable *dport_hash_table;
@@ -1002,7 +1002,7 @@ typedef struct RuleMatchCandidateTx {
   */
 typedef struct DetectEngineThreadCtx_ {
     /** \note multi-tenant hash lookup code from Detect() *depends*
-     *        on this beeing the first member */
+     *        on this being the first member */
     uint32_t tenant_id;
 
     /** ticker that is incremented once per packet. */