]> 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>
Sat, 30 Apr 2022 05:58:39 +0000 (07:58 +0200)
src/detect-engine-alert.c
src/detect-engine-iponly.c
src/util-action.c

index 2f74ed4fcfba6372bc6ccb4751042805718a98f8..98fe24c2dcc5ef8fbd37674ec239c71e0da8a917 100644 (file)
@@ -126,12 +126,11 @@ static int PacketAlertHandle(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det
     SCReturnInt(1);
 }
 
-
 /**
  * \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 063aa651a8945aabec957dd07e67709d4ffb1899..6fa3a9d042f8c0ba5d11220d728476241ed8aa58 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)