]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
cocci: add more flag checks 3453/head
authorVictor Julien <victor@inliniac.net>
Mon, 13 Aug 2018 08:23:59 +0000 (10:23 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 13 Aug 2018 08:23:59 +0000 (10:23 +0200)
src/app-layer-parser.c
src/detect.h

index 1203a8d3f54994d7e2aad17049909544fe8ef12f..718c18d10a7001d7ed1714b8d8cbfea261c8ba11 100644 (file)
@@ -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);
index 7e431caf5e9f3b591f9326ad7ab3da998fffd539..1bbb9a8cdbabc26ea7462ff3c38ae7dd9e9127a5 100644 (file)
@@ -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;