]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: increase SigMatch type from u8 to u16
authorVictor Julien <vjulien@oisf.net>
Fri, 3 Dec 2021 07:01:51 +0000 (08:01 +0100)
committerVictor Julien <vjulien@oisf.net>
Fri, 3 Dec 2021 15:28:20 +0000 (16:28 +0100)
src/detect.h

index c3bb491305beaf05434444e9f42e1156e51d0704..0a0ac44d1c2f8ed26dddb876d04d476841e4c3af 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2020 Open Information Security Foundation
+/* Copyright (C) 2007-2021 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -318,7 +318,7 @@ typedef struct SigMatchCtx_ {
 
 /** \brief a single match condition for a signature */
 typedef struct SigMatch_ {
-    uint8_t type; /**< match type */
+    uint16_t type; /**< match type */
     uint16_t idx; /**< position in the signature */
     SigMatchCtx *ctx; /**< plugin specific data */
     struct SigMatch_ *next;
@@ -327,7 +327,7 @@ typedef struct SigMatch_ {
 
 /** \brief Data needed for Match() */
 typedef struct SigMatchData_ {
-    uint8_t type; /**< match type */
+    uint16_t type;   /**< match type */
     uint8_t is_last; /**< Last element of the list */
     SigMatchCtx *ctx; /**< plugin specific data */
 } SigMatchData;