PERFORCE change 100038 for review
Clément Lecigne
clem1 at FreeBSD.org
Mon Jun 26 06:53:14 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=100038
Change 100038 by clem1 at clem1_ipv6vulns on 2006/06/26 06:52:58
- icmpv6 bug fix.
- ipv6 extension headers support.
- dosbig6.py
Affected files ...
.. //depot/projects/soc2006/clem1_ipv6vulns/pcs/pcs/packets/icmpv6.py#4 edit
.. //depot/projects/soc2006/clem1_ipv6vulns/pcs/pcs/packets/ipv6.py#3 edit
.. //depot/projects/soc2006/clem1_ipv6vulns/pcs/pcs/pcs.py#4 edit
.. //depot/projects/soc2006/clem1_ipv6vulns/pcs/samples/dosbig6.py#1 add
Differences ...
==== //depot/projects/soc2006/clem1_ipv6vulns/pcs/pcs/packets/icmpv6.py#4 (text+ko) ====
@@ -171,7 +171,7 @@
else:
pcs.Packet.__add__(self, [ty, length])
- def cksum(self, ip, data = ""):
+ def cksum(self, ip, data = "", nx = 0):
"""return icmpv6 checksum if we send packet through
raw link level (i.e bpf)"""
total = 0
@@ -179,7 +179,10 @@
p6.src = ip.src
p6.dst = ip.dst
p6.length = len(self.getbytes()) + len (data)
- p6.next_header = ip.next_header
+ if nx:
+ p6.next_header = nx
+ else:
+ p6.next_header = ip.next_header
pkt = p6.getbytes() + self.getbytes() + data
if len(pkt) % 2 == 1:
pkt += "\0"
==== //depot/projects/soc2006/clem1_ipv6vulns/pcs/pcs/packets/ipv6.py#3 (text+ko) ====
==== //depot/projects/soc2006/clem1_ipv6vulns/pcs/pcs/pcs.py#4 (text+ko) ====
More information about the p4-projects
mailing list