]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: fix typo in DetectTcpmssSetup description
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 28 Feb 2020 13:19:44 +0000 (14:19 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 19 Mar 2020 08:29:26 +0000 (09:29 +0100)
And use lowercase true for boolean

src/detect-tcpmss.c

index 7a8d03c35aba0af44ab2cfa3ee172a0fb5476e93..e644a1525700b74e4c13bf5dae04162fb8898e34 100644 (file)
@@ -89,10 +89,9 @@ static inline int TcpmssMatch(const uint16_t parg, const uint8_t mode,
 /**
  * \brief This function is used to match TCPMSS rule option on a packet with those passed via tcpmss:
  *
- * \param t pointer to thread vars
  * \param det_ctx pointer to the pattern matcher thread
  * \param p pointer to the current packet
- * \param m pointer to the sigmatch that we will cast into DetectTcpmssData
+ * \param ctx pointer to the sigmatch that we will cast into DetectTcpmssData
  *
  * \retval 0 no match
  * \retval 1 match
@@ -255,7 +254,7 @@ error:
 }
 
 /**
- * \brief this function is used to atcpmssd the parsed tcpmss data into the current signature
+ * \brief this function is used to attach the parsed tcpmss data into the current signature
  *
  * \param de_ctx pointer to the Detection Engine Context
  * \param s pointer to the Current Signature
@@ -340,8 +339,8 @@ PrefilterPacketTcpmssCompare(PrefilterPacketHeaderValue v, void *smctx)
     if (v.u8[0] == a->mode &&
         v.u16[1] == a->arg1 &&
         v.u16[2] == a->arg2)
-        return TRUE;
-    return FALSE;
+        return true;
+    return false;
 }
 
 static int PrefilterSetupTcpmss(DetectEngineCtx *de_ctx, SigGroupHead *sgh)
@@ -358,10 +357,10 @@ static bool PrefilterTcpmssIsPrefilterable(const Signature *s)
     for (sm = s->init_data->smlists[DETECT_SM_LIST_MATCH] ; sm != NULL; sm = sm->next) {
         switch (sm->type) {
             case DETECT_TCPMSS:
-                return TRUE;
+                return true;
         }
     }
-    return FALSE;
+    return false;
 }
 
 #ifdef UNITTESTS