From: Eric Leblond Date: Mon, 5 Jun 2017 11:46:08 +0000 (+0200) Subject: qa: update struct-flags coccinelle test X-Git-Tag: suricata-4.0.0-beta1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91d2809bca82f23472a07f55158b8ebff4304c87;p=thirdparty%2Fsuricata.git qa: update struct-flags coccinelle test --- diff --git a/qa/coccinelle/struct-flags.cocci b/qa/coccinelle/struct-flags.cocci index 45fab73415..7050043103 100644 --- a/qa/coccinelle/struct-flags.cocci +++ b/qa/coccinelle/struct-flags.cocci @@ -1,29 +1,29 @@ @flags@ -SignatureHeader *struct0; -identifier struct_flags0 =~ "^(?!SIG_FLAG).+"; +SignatureInitData *struct0; +identifier struct_flags0 =~ "^(?!SIG_FLAG_INIT_).+"; Signature *struct1; identifier struct_flags1 =~ "^(?!SIG_FLAG).+"; -Signature *struct2; -identifier struct_flags2 =~ "^(?!SIG_FLAG_INIT_).+"; +Flow *struct2; +identifier struct_flags2 =~ "^(?!FLOWFILE_).+"; 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).+"; +identifier struct_flags3 =~ "^(?!FLOW_END_FLAG_).+"; +TcpStream *struct4; +identifier struct_flags4 =~ "^(?!STREAMTCP_STREAM_FLAG_).+"; +TcpSession *struct5; +identifier struct_flags5 =~ "^(?!STREAMTCP_FLAG).+"; +TcpStreamCnf *struct6; +identifier struct_flags6 =~ "^(?!STREAMTCP_INIT_).+"; Packet *struct7; identifier struct_flags7 =~ "^(?!FLOW_PKT_).+"; position p1; @@ ( -struct0->flags@p1 |= struct_flags0 +struct0->init_flags@p1 |= struct_flags0 | -struct0->flags@p1 & struct_flags0 +struct0->init_flags@p1 & struct_flags0 | -struct0->flags@p1 &= ~struct_flags0 +struct0->init_flags@p1 &= ~struct_flags0 | struct1->flags@p1 |= struct_flags1 | @@ -31,17 +31,17 @@ struct1->flags@p1 & struct_flags1 | struct1->flags@p1 &= ~struct_flags1 | -struct2->init_flags@p1 |= struct_flags2 +struct2->file_flags@p1 |= struct_flags2 | -struct2->init_flags@p1 & struct_flags2 +struct2->file_flags@p1 & struct_flags2 | -struct2->init_flags@p1 &= ~struct_flags2 +struct2->file_flags@p1 &= ~struct_flags2 | -struct3->flags@p1 |= struct_flags3 +struct3->flow_end_flags@p1 |= struct_flags3 | -struct3->flags@p1 & struct_flags3 +struct3->flow_end_flags@p1 & struct_flags3 | -struct3->flags@p1 &= ~struct_flags3 +struct3->flow_end_flags@p1 &= ~struct_flags3 | struct4->flags@p1 |= struct_flags4 |