Lines Matching refs:xsum
1244 ulong xsum; in net_process_received_packet() local
1248 xsum = ip->ip_p; in net_process_received_packet()
1249 xsum += (ntohs(ip->udp_len)); in net_process_received_packet()
1250 xsum += (ntohl(ip->ip_src.s_addr) >> 16) & 0x0000ffff; in net_process_received_packet()
1251 xsum += (ntohl(ip->ip_src.s_addr) >> 0) & 0x0000ffff; in net_process_received_packet()
1252 xsum += (ntohl(ip->ip_dst.s_addr) >> 16) & 0x0000ffff; in net_process_received_packet()
1253 xsum += (ntohl(ip->ip_dst.s_addr) >> 0) & 0x0000ffff; in net_process_received_packet()
1262 xsum += ntohs(sumdata); in net_process_received_packet()
1270 xsum += sumdata; in net_process_received_packet()
1272 while ((xsum >> 16) != 0) { in net_process_received_packet()
1273 xsum = (xsum & 0x0000ffff) + in net_process_received_packet()
1274 ((xsum >> 16) & 0x0000ffff); in net_process_received_packet()
1276 if ((xsum != 0x00000000) && (xsum != 0x0000ffff)) { in net_process_received_packet()
1278 xsum, ntohs(ip->udp_xsum)); in net_process_received_packet()