Lines Matching refs:sum
193 UINT32_t sum = 0;
208 sum += * (UINT16_t *) pseudoHeader;
209 sum += * ((UINT16_t *) (pseudoHeader+2));
210 sum += * ((UINT16_t *) (pseudoHeader+4));
211 sum += * ((UINT16_t *) (pseudoHeader+6));
212 sum += * ((UINT16_t *) (pseudoHeader+8));
213 sum += * ((UINT16_t *) (pseudoHeader+10));
217 sum += * (UINT16_t *) addr;
222 sum += *addr;
225 while(sum >> 16) {
226 sum = (sum & 0xffff) + (sum >> 16);
228 return (UINT16_t) (~sum & 0xFFFF);