You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/qa/coccinelle/action-pkt.cocci

16 lines
218 B
Plaintext

@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)