]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
assorted: fix low hanging typos
authorJuliana Fajardini <jufajardini@gmail.com>
Thu, 21 Apr 2022 15:47:03 +0000 (12:47 -0300)
committerVictor Julien <vjulien@oisf.net>
Tue, 3 May 2022 07:10:02 +0000 (09:10 +0200)
(cherry picked from commit 29b5f68bf0770750954780982c46c6fa82eec96b)

src/detect-engine-alert.c
src/detect-engine-iponly.c
src/util-action.c

index 9c5a25506fd092d20228e031a35328af66b7ba2b..9cc7006f31480b0147aa245736a571882b564108 100644 (file)
@@ -130,7 +130,7 @@ static int PacketAlertHandle(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det
  * \brief Check if a certain sid alerted, this is used in the test functions
  *
  * \param p   Packet on which we want to check if the signature alerted or not
- * \param sid Signature id of the signature that thas to be checked for a match
+ * \param sid Signature id of the signature that has to be checked for a match
  *
  * \retval match A value > 0 on a match; 0 on no match
  */
index c55b68ee9a108b2baaf3a985d343d9db2914d8e6..390e3495e7cd3b8de3ebb948fe27887b955d6a7e 100644 (file)
@@ -1142,7 +1142,7 @@ void IPOnlyMatchPacket(ThreadVars *tv,
 }
 
 /**
- * \brief Build the radix trees from the lists of parsed adresses in CIDR format
+ * \brief Build the radix trees from the lists of parsed addresses in CIDR format
  *        the result should be 4 radix trees: src/dst ipv4 and src/dst ipv6
  *        holding SigNumArrays, each of them with a hierarchical relation
  *        of subnets and hosts
@@ -1562,7 +1562,7 @@ void IPOnlyPrepare(DetectEngineCtx *de_ctx)
 
 /**
  * \brief Add a signature to the lists of Addresses in CIDR format (sorted)
- *        this step is necesary to build the radix tree with a hierarchical
+ *        this step is necessary to build the radix tree with a hierarchical
  *        relation between nodes
  * \param de_ctx Pointer to the current detection engine context
  * \param de_ctx Pointer to the current ip only detection engine contest
@@ -1619,7 +1619,7 @@ static int IPOnlyTestSig01(void)
 }
 
 /**
- * \test check that we dont set a Signature as IPOnly because it has no rule
+ * \test check that we don't set a Signature as IPOnly because it has no rule
  *       option appending a SigMatch but a port is fixed
  */
 
@@ -1639,7 +1639,7 @@ static int IPOnlyTestSig02 (void)
 }
 
 /**
- * \test check that we set dont set a Signature as IPOnly
+ * \test check that we set don't set a Signature as IPOnly
  *  because it has rule options appending a SigMatch like content, and pcre
  */
 
index 769135a0277f9d0b8694f1b9300aa3f80ca1177a..fa9509ea9a551eaa602a3b765021edfe58994285 100644 (file)
@@ -814,8 +814,8 @@ static int UtilActionTest13(void)
                               {0, 0, 1},
                               {0, 0, 1},
                               {0, 0, 1} };
-     /* All the patckets should match the 3 sigs. As drop has more
-      * priority than pass, it should alert on each packet */
+    /* All the packets should match the 3 sigs. As drop has more
+     * priority than pass, it should alert on each packet */
 
     DetectEngineCtx *de_ctx = DetectEngineCtxInit();
     if (de_ctx == NULL)
@@ -889,9 +889,9 @@ static int UtilActionTest14(void)
                               {1, 0, 1},
                               {1, 0, 1},
                               {1, 0, 1} };
-     /* All the patckets should match the 3 sigs. As drop
-      * and alert have more priority than pass, both should
-      * alert on each packet */
+    /* All the packets should match the 3 sigs. As drop
+     * and alert have more priority than pass, both should
+     * alert on each packet */
 
     DetectEngineCtx *de_ctx = DetectEngineCtxInit();
     if (de_ctx == NULL)
@@ -958,9 +958,9 @@ static int UtilActionTest15(void)
                               {0, 0, 0},
                               {0, 0, 0},
                               {0, 0, 0} };
-     /* All the patckets should match the 3 sigs. As drop
-      * and alert have more priority than pass, both should
-      * alert on each packet */
+    /* All the packets should match the 3 sigs. As drop
+     * and alert have more priority than pass, both should
+     * alert on each packet */
 
     DetectEngineCtx *de_ctx = DetectEngineCtxInit();
     if (de_ctx == NULL)
@@ -1022,9 +1022,9 @@ static int UtilActionTest16(void)
                               {0, 0, 0},
                               {0, 0, 0},
                               {0, 0, 0} };
-     /* All the patckets should match the 3 sigs. As drop
-      * and alert have more priority than pass, both should
-      * alert on each packet */
+    /* All the packets should match the 3 sigs. As drop
+     * and alert have more priority than pass, both should
+     * alert on each packet */
 
     DetectEngineCtx *de_ctx = DetectEngineCtxInit();
     if (de_ctx == NULL)
@@ -1086,9 +1086,9 @@ static int UtilActionTest17(void)
                               {0, 0, 0},
                               {0, 0, 0},
                               {0, 0, 0} };
-     /* All the patckets should match the 3 sigs. As drop
-      * and alert have more priority than pass, both should
-      * alert on each packet */
+    /* All the packets should match the 3 sigs. As drop
+     * and alert have more priority than pass, both should
+     * alert on each packet */
 
     DetectEngineCtx *de_ctx = DetectEngineCtxInit();
     if (de_ctx == NULL)
@@ -1155,9 +1155,9 @@ static int UtilActionTest18(void)
                               {0, 0, 1},
                               {0, 0, 1},
                               {0, 0, 1} };
-     /* All the patckets should match the 3 sigs. As drop
-      * and alert have more priority than pass, both should
-      * alert on each packet */
+    /* All the packets should match the 3 sigs. As drop
+     * and alert have more priority than pass, both should
+     * alert on each packet */
 
     DetectEngineCtx *de_ctx = DetectEngineCtxInit();
     if (de_ctx == NULL)
@@ -1230,9 +1230,9 @@ static int UtilActionTest19(void)
                               {1, 0, 0},
                               {1, 0, 0},
                               {1, 0, 0} };
-     /* All the patckets should match the 3 sigs. As drop
-      * and alert have more priority than pass, both should
-      * alert on each packet */
+    /* All the packets should match the 3 sigs. As drop
+     * and alert have more priority than pass, both should
+     * alert on each packet */
 
     DetectEngineCtx *de_ctx = DetectEngineCtxInit();
     if (de_ctx == NULL)
@@ -1305,9 +1305,9 @@ static int UtilActionTest20(void)
                               {0, 1, 0},
                               {0, 1, 0},
                               {0, 1, 0} };
-     /* All the patckets should match the 3 sigs. As drop
-      * and alert have more priority than pass, both should
-      * alert on each packet */
+    /* All the packets should match the 3 sigs. As drop
+     * and alert have more priority than pass, both should
+     * alert on each packet */
 
     DetectEngineCtx *de_ctx = DetectEngineCtxInit();
     if (de_ctx == NULL)
@@ -1374,9 +1374,9 @@ static int UtilActionTest21(void)
                               {1, 0, 1},
                               {1, 0, 1},
                               {1, 0, 1} };
-     /* All the patckets should match the 3 sigs. As drop
-      * and alert have more priority than pass, both should
-      * alert on each packet */
+    /* All the packets should match the 3 sigs. As drop
+     * and alert have more priority than pass, both should
+     * alert on each packet */
 
     DetectEngineCtx *de_ctx = DetectEngineCtxInit();
     if (de_ctx == NULL)
@@ -1449,9 +1449,9 @@ static int UtilActionTest22(void)
                               {1, 1, 0},
                               {1, 1, 0},
                               {1, 1, 0} };
-     /* All the patckets should match the 3 sigs. As drop
-      * and alert have more priority than pass, both should
-      * alert on each packet */
+    /* All the packets should match the 3 sigs. As drop
+     * and alert have more priority than pass, both should
+     * alert on each packet */
 
     DetectEngineCtx *de_ctx = DetectEngineCtxInit();
     if (de_ctx == NULL)
@@ -1524,9 +1524,9 @@ static int UtilActionTest23(void)
                               {0, 1, 1},
                               {0, 1, 1},
                               {0, 1, 1} };
-     /* All the patckets should match the 3 sigs. As drop
-      * and alert have more priority than pass, both should
-      * alert on each packet */
+    /* All the packets should match the 3 sigs. As drop
+     * and alert have more priority than pass, both should
+     * alert on each packet */
 
     DetectEngineCtx *de_ctx = DetectEngineCtxInit();
     if (de_ctx == NULL)