Date: Mon, 26 Jun 2006 06:53:06 GMT From: Clément Lecigne <clem1@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 100038 for review Message-ID: <200606260653.k5Q6r6Jh025044@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100038 Change 100038 by clem1@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) ====
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606260653.k5Q6r6Jh025044>