Lines Matching defs:cksum
1739 uint32_t cksum;
1750 cksum = htons(ulp_len) + IP_TCP_CSUM_COMP;
1752 cksum += iphs[4] + iphs[5] + iphs[6] + iphs[7] +
1764 cksum = udpha->uha_length + IP_UDP_CSUM_COMP;
1766 cksum += iphs[4] + iphs[5] + iphs[6] + iphs[7] +
1776 cksum = htons(ulp_len) + IP_ICMPV6_CSUM_COMP;
1778 cksum += iphs[4] + iphs[5] + iphs[6] + iphs[7] +
1784 cksum = 0;
1788 return (cksum);
1801 uint32_t cksum;
1810 cksum = ip_input_cksum_pseudo_v6(ip6h, ira);
1811 cksum = IP_CSUM(mp, ip_hdr_length, cksum);
1812 if (cksum == 0)
1831 uint32_t cksum;
1876 cksum = sctp_cksum(mp, ip_hdr_length);
1878 if (cksum == pktsum)
1929 cksum = DB_CKSUM16(mp);
1930 if (cksum == 0xFFFF)
1944 cksum = ip_input_cksum_pseudo_v6(ip6h, ira);
1960 cksum += DB_CKSUM16(mp);
1961 if (adj >= cksum)
1962 cksum = ~(adj - cksum) & 0xFFFF;
1964 cksum -= adj;
1965 cksum = (cksum & 0xFFFF) + ((int)cksum >> 16);
1966 cksum = (cksum & 0xFFFF) + ((int)cksum >> 16);
1967 if (!(~cksum & 0xFFFF))
2235 * Since there is no SCTP h/w cksum support yet, just