summaryrefslogtreecommitdiffstats
path: root/src/test/gen_icmp.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-11 12:02:40 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-11 12:02:40 +0000
commit4e0143a3bd62defb458342444822a445d8513107 (patch)
tree4b8ea3f51cf497c3e8539be41a16242c19054be1 /src/test/gen_icmp.py
parentAdding upstream version 2.2.0. (diff)
downloaddnscap-4e0143a3bd62defb458342444822a445d8513107.tar.xz
dnscap-4e0143a3bd62defb458342444822a445d8513107.zip
Adding upstream version 2.2.1.upstream/2.2.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/gen_icmp.py')
-rw-r--r--src/test/gen_icmp.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/gen_icmp.py b/src/test/gen_icmp.py
new file mode 100644
index 0000000..afee206
--- /dev/null
+++ b/src/test/gen_icmp.py
@@ -0,0 +1,10 @@
+import sys
+from scapy.all import *
+
+pcap = sys.argv[1]
+
+pkts = []
+pkts.append(Ether()/IPv6(dst="2001:db8:dead::1")/ICMPv6DestUnreach())
+pkts.append(Ether()/IP(dst="0.0.0.0")/ICMP(type=3))
+
+wrpcap(pcap, pkts) \ No newline at end of file