summaryrefslogtreecommitdiff
path: root/regress/sys/netinet6/frag6/frag6_overhead0.py
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/netinet6/frag6/frag6_overhead0.py')
-rw-r--r--regress/sys/netinet6/frag6/frag6_overhead0.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/regress/sys/netinet6/frag6/frag6_overhead0.py b/regress/sys/netinet6/frag6/frag6_overhead0.py
index 0bfdb1c0202..621fc6d1fab 100644
--- a/regress/sys/netinet6/frag6/frag6_overhead0.py
+++ b/regress/sys/netinet6/frag6/frag6_overhead0.py
@@ -9,18 +9,17 @@ import os
from addr import *
from scapy.all import *
-dstaddr=sys.argv[1]
pid=os.getpid()
payload="ABCDEFGHIJKLOMNO"
dummy="0123456701234567"
-packet=IPv6(src=SRC_OUT6, dst=dstaddr)/ICMPv6EchoRequest(id=pid, data=payload)
+packet=IPv6(src=SRC_OUT6, dst=DST_IN6)/ICMPv6EchoRequest(id=pid, data=payload)
frag=[]
frag.append(IPv6ExtHdrFragment(nh=58, id=pid, m=1)/str(packet)[40:56])
frag.append(IPv6ExtHdrFragment(nh=58, id=pid, offset=1)/dummy)
frag.append(IPv6ExtHdrFragment(nh=58, id=pid, offset=2)/str(packet)[56:64])
eth=[]
for f in frag:
- pkt=IPv6(src=SRC_OUT6, dst=dstaddr)/f
+ pkt=IPv6(src=SRC_OUT6, dst=DST_IN6)/f
eth.append(Ether(src=SRC_MAC, dst=DST_MAC)/pkt)
if os.fork() == 0:
@@ -29,7 +28,7 @@ if os.fork() == 0:
os._exit(0)
ans=sniff(iface=SRC_IF, timeout=3, filter=
- "ip6 and src "+dstaddr+" and dst "+SRC_OUT6+" and icmp6")
+ "ip6 and src "+DST_IN6+" and dst "+SRC_OUT6+" and icmp6")
for a in ans:
if a and a.type == scapy.layers.dot11.ETHER_TYPES.IPv6 and \
ipv6nh[a.payload.nh] == 'ICMPv6' and \