]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
coccinelle: update struct flags test
authorEric Leblond <eric@regit.org>
Tue, 10 Jun 2014 07:43:56 +0000 (09:43 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 8 May 2015 09:37:12 +0000 (11:37 +0200)
qa/coccinelle/struct-flags.cocci

index d7204aada4b8e05765171cc05fa03eaf29b87895..45fab73415da19cbf9a5f87ff96bdfe696501a23 100644 (file)
@@ -1,18 +1,20 @@
 @flags@
-TcpSegment *struct0;
-identifier struct_flags0 =~ "^(?!SEGMENTTCP_FLAG).+";
-TcpStream *struct1;
-identifier struct_flags1 =~ "^(?!STREAMTCP_STREAM_FLAG_).+";
-TcpSession *struct2;
-identifier struct_flags2 =~ "^(?!STREAMTCP_FLAG).+";
-Packet *struct3;
-identifier struct_flags3 =~ "^(?!FLOW_PKT_).+";
-SignatureHeader *struct4;
-identifier struct_flags4 =~ "^(?!SIG_FLAG).+";
-Signature *struct5;
-identifier struct_flags5 =~ "^(?!SIG_FLAG).+";
-Signature *struct6;
-identifier struct_flags6 =~ "^(?!SIG_FLAG_INIT_).+";
+SignatureHeader *struct0;
+identifier struct_flags0 =~ "^(?!SIG_FLAG).+";
+Signature *struct1;
+identifier struct_flags1 =~ "^(?!SIG_FLAG).+";
+Signature *struct2;
+identifier struct_flags2 =~ "^(?!SIG_FLAG_INIT_).+";
+Flow *struct3;
+identifier struct_flags3 =~ "^(?!FLOW_).+";
+TcpSegment *struct4;
+identifier struct_flags4 =~ "^(?!SEGMENTTCP_FLAG).+";
+TcpStream *struct5;
+identifier struct_flags5 =~ "^(?!STREAMTCP_STREAM_FLAG_).+";
+TcpSession *struct6;
+identifier struct_flags6 =~ "^(?!STREAMTCP_FLAG).+";
+Packet *struct7;
+identifier struct_flags7 =~ "^(?!FLOW_PKT_).+";
 position p1;
 @@
 
@@ -29,17 +31,17 @@ struct1->flags@p1 & struct_flags1
 |
 struct1->flags@p1 &= ~struct_flags1
 |
-struct2->flags@p1 |= struct_flags2
+struct2->init_flags@p1 |= struct_flags2
 |
-struct2->flags@p1 & struct_flags2
+struct2->init_flags@p1 & struct_flags2
 |
-struct2->flags@p1 &= ~struct_flags2
+struct2->init_flags@p1 &= ~struct_flags2
 |
-struct3->flowflags@p1 |= struct_flags3
+struct3->flags@p1 |= struct_flags3
 |
-struct3->flowflags@p1 & struct_flags3
+struct3->flags@p1 & struct_flags3
 |
-struct3->flowflags@p1 &= ~struct_flags3
+struct3->flags@p1 &= ~struct_flags3
 |
 struct4->flags@p1 |= struct_flags4
 |
@@ -53,11 +55,17 @@ struct5->flags@p1 & struct_flags5
 |
 struct5->flags@p1 &= ~struct_flags5
 |
-struct6->init_flags@p1 |= struct_flags6
+struct6->flags@p1 |= struct_flags6
 |
-struct6->init_flags@p1 & struct_flags6
+struct6->flags@p1 & struct_flags6
 |
-struct6->init_flags@p1 &= ~struct_flags6
+struct6->flags@p1 &= ~struct_flags6
+|
+struct7->flowflags@p1 |= struct_flags7
+|
+struct7->flowflags@p1 & struct_flags7
+|
+struct7->flowflags@p1 &= ~struct_flags7
 )
 
 @script:python@