def __compute_cksum(self):
		packet = self.packet
		if len(packet) & 1:
			packet = packet + '\0'
		words = array.array('h', packet)
		sum = 0
		for word in words:
			sum = sum + (word & 0xffff)
		hi = sum >> 16
		lo = sum & 0xffff
		sum = hi + lo
		sum = sum + (sum >> 16)
		return (~sum) & 0xffff
Use inet.cksum instead
dataset/ETHPy150Open kdart/pycopia/core/pycopia/inet/packet/icmp.py/Packet.__compute_cksum