Lines Matching defs:cksum
2119 uint32_t cksum;
2130 cksum = htons(ulp_len) + IP_TCP_CSUM_COMP;
2132 cksum += iphs[6] + iphs[7] + iphs[8] + iphs[9];
2141 cksum = udpha->uha_length + IP_UDP_CSUM_COMP;
2143 cksum += iphs[6] + iphs[7] + iphs[8] + iphs[9];
2148 cksum = 0;
2152 return (cksum);
2165 uint32_t cksum;
2173 cksum = ip_input_cksum_pseudo_v4(ipha, ira);
2174 cksum = IP_CSUM(mp, ip_hdr_length, cksum);
2175 if (cksum == 0)
2194 uint32_t cksum;
2226 cksum = sctp_cksum(mp, ip_hdr_length);
2228 if (cksum == pktsum)
2278 cksum = DB_CKSUM16(mp);
2279 if (cksum == 0xFFFF)
2293 cksum = ip_input_cksum_pseudo_v4(ipha, ira);
2309 cksum += DB_CKSUM16(mp);
2310 if (adj >= cksum)
2311 cksum = ~(adj - cksum) & 0xFFFF;
2313 cksum -= adj;
2314 cksum = (cksum & 0xFFFF) + ((int)cksum >> 16);
2315 cksum = (cksum & 0xFFFF) + ((int)cksum >> 16);
2316 if (!(~cksum & 0xFFFF))
2577 * Since there is no SCTP h/w cksum support yet, just