From: Victor Julien Date: Mon, 13 Aug 2018 08:23:59 +0000 (+0200) Subject: cocci: add more flag checks X-Git-Tag: suricata-4.1.0-rc2~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1df38c3b970134311bc9c9a11694bae1d5767ee6;p=thirdparty%2Fsuricata.git cocci: add more flag checks --- diff --git a/src/app-layer-parser.c b/src/app-layer-parser.c index 1203a8d3f5..718c18d10a 100644 --- a/src/app-layer-parser.c +++ b/src/app-layer-parser.c @@ -131,8 +131,10 @@ typedef struct AppLayerParserProtoCtx_ /* Option flags such as supporting gaps or not. */ uint32_t option_flags; + /* coccinelle: AppLayerParserProtoCtx:option_flags:APP_LAYER_PARSER_OPT_ */ uint32_t internal_flags; + /* coccinelle: AppLayerParserProtoCtx:internal_flags:APP_LAYER_PARSER_INT_ */ #ifdef UNITTESTS void (*RegisterUnittests)(void); diff --git a/src/detect.h b/src/detect.h index 7e431caf5e..1bbb9a8cdb 100644 --- a/src/detect.h +++ b/src/detect.h @@ -488,8 +488,8 @@ typedef struct SignatureInitData_ { /** \brief Signature container */ typedef struct Signature_ { - /* coccinelle: Signature:flags:SIG_FLAG */ uint32_t flags; + /* coccinelle: Signature:flags:SIG_FLAG_ */ AppProto alproto;