Lines Matching +full:0 +full:xfffe
18 sum = 0; in compute_ip_checksum()
24 oddbyte = 0; in compute_ip_checksum()
25 ((u8 *)&oddbyte)[0] = *(u8 *)ptr; in compute_ip_checksum()
26 ((u8 *)&oddbyte)[1] = 0; in compute_ip_checksum()
29 sum = (sum >> 16) + (sum & 0xffff); in compute_ip_checksum()
31 sum = ~sum & 0xffff; in compute_ip_checksum()
40 sum = ~sum & 0xffff; in add_ip_checksums()
41 new = ~new & 0xffff; in add_ip_checksums()
47 new = ((new >> 8) & 0xff) | ((new << 8) & 0xff00); in add_ip_checksums()
50 if (checksum > 0xffff) in add_ip_checksums()
51 checksum -= 0xffff; in add_ip_checksums()
53 return (~checksum) & 0xffff; in add_ip_checksums()
58 return !(compute_ip_checksum(addr, nbytes) & 0xfffe); in ip_checksum_ok()