diff --git a/src/detect-tcpmss.c b/src/detect-tcpmss.c index 7a8d03c35a..e644a15257 100644 --- a/src/detect-tcpmss.c +++ b/src/detect-tcpmss.c @@ -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