Searched refs:tcpHdr (Results 1 – 2 of 2) sorted by relevance
191 computeTCPChecksum(unsigned char *ipHdr, unsigned char *tcpHdr) in computeTCPChecksum() argument195 unsigned char *addr = tcpHdr; in computeTCPChecksum()245 unsigned char *tcpHdr; in clampMSS() local303 tcpHdr = ipHdr + (ipHdr[0] & 0x0F) * 4; in clampMSS()306 if (!(tcpHdr[13] & 0x02)) { in clampMSS()312 csum = computeTCPChecksum(ipHdr, tcpHdr); in clampMSS()321 endHdr = tcpHdr + ((tcpHdr[12] & 0xF0) >> 2); in clampMSS()322 opt = tcpHdr + 20; in clampMSS()378 tcpHdr[16] = 0; in clampMSS()379 tcpHdr[17] = 0; in clampMSS()[all …]
304 UINT16_t computeTCPChecksum(unsigned char *ipHdr, unsigned char *tcpHdr);