Searched refs:ipHdr (Results 1 – 2 of 2) sorted by relevance
191 computeTCPChecksum(unsigned char *ipHdr, unsigned char *tcpHdr) in computeTCPChecksum() argument194 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() local264 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()[all …]
304 UINT16_t computeTCPChecksum(unsigned char *ipHdr, unsigned char *tcpHdr);