Lines Matching refs:tcpHdr
127 * tcpHdr -- pointer to TCP header
132 computeTCPChecksum(unsigned char *ipHdr, unsigned char *tcpHdr)
136 unsigned char *addr = tcpHdr;
186 unsigned char *tcpHdr;
227 tcpHdr = ipHdr + (ipHdr[0] & 0x0F) * 4;
230 if (!(tcpHdr[13] & 0x02)) {
236 csum = computeTCPChecksum(ipHdr, tcpHdr);
245 endHdr = tcpHdr + ((tcpHdr[12] & 0xF0) >> 2);
246 opt = tcpHdr + 20;
302 tcpHdr[16] = 0;
303 tcpHdr[17] = 0;
304 csum = computeTCPChecksum(ipHdr, tcpHdr);
305 (* (UINT16_t *) (tcpHdr+16)) = csum;