Lines Matching refs:ipHdr
191 computeTCPChecksum(unsigned char *ipHdr, unsigned char *tcpHdr) in computeTCPChecksum() argument
194 UINT16_t count = ipHdr[2] * 256 + ipHdr[3]; in computeTCPChecksum()
199 count -= (ipHdr[0] & 0x0F) * 4; in computeTCPChecksum()
201 memcpy(pseudoHeader, ipHdr+12, 8); in computeTCPChecksum()
203 pseudoHeader[9] = ipHdr[9]; in computeTCPChecksum()
246 unsigned char *ipHdr; in clampMSS() local
264 ipHdr = packet->payload + 1; in clampMSS()
276 ipHdr = packet->payload + 2; in clampMSS()
288 if ((ipHdr[0] & 0xF0) != 0x40) { in clampMSS()
293 if ((ipHdr[6] & 0x1F) || ipHdr[7]) { in clampMSS()
298 if (ipHdr[9] != 0x06) { in clampMSS()
303 tcpHdr = ipHdr + (ipHdr[0] & 0x0F) * 4; in clampMSS()
312 csum = computeTCPChecksum(ipHdr, tcpHdr); in clampMSS()
336 (unsigned int) ipHdr[12], in clampMSS()
337 (unsigned int) ipHdr[13], in clampMSS()
338 (unsigned int) ipHdr[14], in clampMSS()
339 (unsigned int) ipHdr[15]); in clampMSS()
350 (unsigned int) ipHdr[12], in clampMSS()
351 (unsigned int) ipHdr[13], in clampMSS()
352 (unsigned int) ipHdr[14], in clampMSS()
353 (unsigned int) ipHdr[15]); in clampMSS()
380 csum = computeTCPChecksum(ipHdr, tcpHdr); in clampMSS()