summaryrefslogtreecommitdiff
path: root/regress/sys/netinet6/frag6/frag6_overtail.py
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/netinet6/frag6/frag6_overtail.py')
-rw-r--r--regress/sys/netinet6/frag6/frag6_overtail.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/regress/sys/netinet6/frag6/frag6_overtail.py b/regress/sys/netinet6/frag6/frag6_overtail.py
index 44991e5d043..4c6dba0fa9d 100644
--- a/regress/sys/netinet6/frag6/frag6_overtail.py
+++ b/regress/sys/netinet6/frag6/frag6_overtail.py
@@ -1,10 +1,10 @@
#!/usr/local/bin/python2.7
-print "ping6 fragment that overlaps the last fragment with the tail"
+print "ping6 fragment that overlaps the last fragment with its tail"
-# |----|
-# |XXXXXXXX|
-# |--------|
+# |----|
+# |XXXX|
+# |---------|
import os
from addr import *
@@ -13,13 +13,12 @@ from scapy.all import *
pid=os.getpid()
eid=pid & 0xffff
payload="ABCDEFGHIJKLMNOP"
-dummy="0123456701234567"
packet=IPv6(src=LOCAL_ADDR6, dst=REMOTE_ADDR6)/ \
ICMPv6EchoRequest(id=eid, data=payload)
frag=[]
fid=pid & 0xffffffff
frag.append(IPv6ExtHdrFragment(nh=58, id=fid, offset=2)/str(packet)[56:64])
-frag.append(IPv6ExtHdrFragment(nh=58, id=fid, offset=1)/dummy)
+frag.append(IPv6ExtHdrFragment(nh=58, id=fid, offset=1, m=1)/str(packet)[48:56])
frag.append(IPv6ExtHdrFragment(nh=58, id=fid, m=1)/str(packet)[40:56])
eth=[]
for f in frag: