]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/tcp/udp: minor cleanups
authorVictor Julien <victor@inliniac.net>
Wed, 26 Jun 2019 12:42:55 +0000 (14:42 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 1 Jul 2019 13:44:30 +0000 (15:44 +0200)
src/detect-tcphdr.c
src/detect-udphdr.c

index 7474c9a0f772b65303752d203116b9325e7d0aae..5d4295710415cf4cafa479a5dead425d3e6a22b9 100644 (file)
@@ -45,7 +45,7 @@ static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,
         const DetectEngineTransforms *transforms, Packet *p, const int list_id);
 
 /**
- * \brief Registration function for tcphdr: keyword
+ * \brief Registration function for tcp.hdr: keyword
  */
 void DetectTcphdrRegister(void)
 {
@@ -72,16 +72,16 @@ void DetectTcphdrRegister(void)
 }
 
 /**
- * \brief this function is used to atcphdrd the parsed tcphdr data into the current signature
+ * \brief setup tcp.hdr sticky buffer
  *
  * \param de_ctx pointer to the Detection Engine Context
  * \param s pointer to the Current Signature
- * \param tcphdrstr pointer to the user provided tcphdr options
+ * \param _unused unused
  *
  * \retval 0 on Success
  * \retval -1 on Failure
  */
-static int DetectTcphdrSetup (DetectEngineCtx *de_ctx, Signature *s, const char *tcphdrstr)
+static int DetectTcphdrSetup (DetectEngineCtx *de_ctx, Signature *s, const char *_unused)
 {
     if (!(DetectProtoContainsProto(&s->proto, IPPROTO_TCP)))
         return -1;
index 36c7805109199871190f26cb584cb7c3158c324a..9059510b211f93730dc8494b998fc573a52670c1 100644 (file)
@@ -44,9 +44,8 @@ static int g_udphdr_buffer_id = 0;
 static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,
         const DetectEngineTransforms *transforms, Packet *p, const int list_id);
 /**
- * \brief Registration function for udphdr: keyword
+ * \brief Registration function for udp.hdr: keyword
  */
-
 void DetectUdphdrRegister(void)
 {
     sigmatch_table[DETECT_UDPHDR].name = "udp.hdr";
@@ -71,16 +70,16 @@ void DetectUdphdrRegister(void)
 }
 
 /**
- * \brief this function is used to atcphdrd the parsed tcphdr data into the current signature
+ * \brief set up the udp.hdr sticky buffer
  *
  * \param de_ctx pointer to the Detection Engine Context
  * \param s pointer to the Current Signature
- * \param tcphdrstr pointer to the user provided tcphdr options
+ * \param _unused unused
  *
  * \retval 0 on Success
  * \retval -1 on Failure
  */
-static int DetectUdphdrSetup (DetectEngineCtx *de_ctx, Signature *s, const char *tcphdrstr)
+static int DetectUdphdrSetup (DetectEngineCtx *de_ctx, Signature *s, const char *_unused)
 {
     if (!(DetectProtoContainsProto(&s->proto, IPPROTO_UDP)))
         return -1;