summaryrefslogtreecommitdiffstats
path: root/src/test/gen_icmp.py
blob: afee20689f8f23b7a8a1ab287477e6fe61a2c6fb (plain)
1
2
3
4
5
6
7
8
9
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)