From: Juliana Fajardini Date: Thu, 21 Apr 2022 15:47:03 +0000 (-0300) Subject: assorted: fix low hanging typos X-Git-Tag: suricata-5.0.10~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb9af8482b539023bc6332d2b8c72b72e3a79538;p=thirdparty%2Fsuricata.git assorted: fix low hanging typos (cherry picked from commit 29b5f68bf0770750954780982c46c6fa82eec96b) --- diff --git a/src/detect-engine-alert.c b/src/detect-engine-alert.c index 6636a4a187..e90eee6284 100644 --- a/src/detect-engine-alert.c +++ b/src/detect-engine-alert.c @@ -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 */ diff --git a/src/detect-engine-iponly.c b/src/detect-engine-iponly.c index b4faed0d23..d1436faa7a 100644 --- a/src/detect-engine-iponly.c +++ b/src/detect-engine-iponly.c @@ -1138,7 +1138,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 @@ -1558,7 +1558,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 @@ -1615,7 +1615,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 */ @@ -1635,7 +1635,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 */ diff --git a/src/util-action.c b/src/util-action.c index 769135a027..fa9509ea9a 100644 --- a/src/util-action.c +++ b/src/util-action.c @@ -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)