From: Victor Julien Date: Fri, 3 Dec 2021 07:01:51 +0000 (+0100) Subject: detect: increase SigMatch type from u8 to u16 X-Git-Tag: suricata-7.0.0-beta1~1139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51dcf3d76a80e442809481fb77fa3c566fa65c0a;p=thirdparty%2Fsuricata.git detect: increase SigMatch type from u8 to u16 --- diff --git a/src/detect.h b/src/detect.h index c3bb491305..0a0ac44d1c 100644 --- a/src/detect.h +++ b/src/detect.h @@ -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;