Searched refs:pseudoHeader (Results 1 – 1 of 1) sorted by relevance
196 unsigned char pseudoHeader[12]; in computeTCPChecksum() local201 memcpy(pseudoHeader, ipHdr+12, 8); in computeTCPChecksum()202 pseudoHeader[8] = 0; in computeTCPChecksum()203 pseudoHeader[9] = ipHdr[9]; in computeTCPChecksum()204 pseudoHeader[10] = (count >> 8) & 0xFF; in computeTCPChecksum()205 pseudoHeader[11] = (count & 0xFF); in computeTCPChecksum()208 sum += * (UINT16_t *) pseudoHeader; in computeTCPChecksum()209 sum += * ((UINT16_t *) (pseudoHeader+2)); in computeTCPChecksum()210 sum += * ((UINT16_t *) (pseudoHeader+4)); in computeTCPChecksum()211 sum += * ((UINT16_t *) (pseudoHeader+6)); in computeTCPChecksum()[all …]