]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
coccinelle: update pkt not set test 361/head
authorEric Leblond <eric@regit.org>
Thu, 16 May 2013 08:22:27 +0000 (10:22 +0200)
committerEric Leblond <eric@regit.org>
Thu, 16 May 2013 08:22:27 +0000 (10:22 +0200)
This patch updates the test to add the support of initialization
of a Packet via the INITIALIZE macro.

qa/coccinelle/pktnotset-packet.cocci

index 61c00dcefe75d023f7a7f1b1b5750cb646dfbd8c..ab6a98c1d06edcde0b2fe9d305d8bd51cbd7cb9f 100644 (file)
@@ -14,7 +14,11 @@ position zeroed.p1;
 
 memset(p@p1, 0, ...);
 ... when != p
+(
 p->pkt
+|
+PACKET_INITIALIZE(p)
+)
 
 @script:python depends on !isset@
 p1 << zeroed.p1;