diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:39:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:39:49 +0000 |
commit | a0aa2307322cd47bbf416810ac0292925e03be87 (patch) | |
tree | 37076262a026c4b48c8a0e84f44ff9187556ca35 /qa/coccinelle/direct-packet.cocci | |
parent | Initial commit. (diff) | |
download | suricata-upstream/1%7.0.3.tar.xz suricata-upstream/1%7.0.3.zip |
Adding upstream version 1:7.0.3.upstream/1%7.0.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'qa/coccinelle/direct-packet.cocci')
-rw-r--r-- | qa/coccinelle/direct-packet.cocci | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qa/coccinelle/direct-packet.cocci b/qa/coccinelle/direct-packet.cocci new file mode 100644 index 0000000..b184225 --- /dev/null +++ b/qa/coccinelle/direct-packet.cocci @@ -0,0 +1,15 @@ +@directpacket@ +identifier p; +typedef Packet; +position p1; +@@ + +Packet p@p1; + +@ script:python @ +p1 << directpacket.p1; +@@ + +print("Invalid Packet definition, explicit allocation must be used at %s:%s" % (p1[0].file, p1[0].line)) +import sys +sys.exit(1) |