From 1df38c3b970134311bc9c9a11694bae1d5767ee6 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 13 Aug 2018 10:23:59 +0200 Subject: [PATCH] cocci: add more flag checks --- src/app-layer-parser.c | 2 ++ src/detect.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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;