summaryrefslogtreecommitdiffstats
path: root/framework/src/suricata/qa/coccinelle/action-pkt.cocci
blob: 1a66721ac8a1063009731aa93d792b4537ce28ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@action@
typedef Packet;
Packet *p;
position p1;
@@

p->action@p1

@ script:python @
p1 << action.p1;
@@

print "Invalid usage of p->action, please use macro at %s:%s" % (p1[0].file, p1[0].line)
import sys
sys.exit(1)