Lines Matching refs:tcpHdr
186 * tcpHdr -- pointer to TCP header
191 computeTCPChecksum(unsigned char *ipHdr, unsigned char *tcpHdr)
195 unsigned char *addr = tcpHdr;
245 unsigned char *tcpHdr;
303 tcpHdr = ipHdr + (ipHdr[0] & 0x0F) * 4;
306 if (!(tcpHdr[13] & 0x02)) {
312 csum = computeTCPChecksum(ipHdr, tcpHdr);
321 endHdr = tcpHdr + ((tcpHdr[12] & 0xF0) >> 2);
322 opt = tcpHdr + 20;
378 tcpHdr[16] = 0;
379 tcpHdr[17] = 0;
380 csum = computeTCPChecksum(ipHdr, tcpHdr);
381 (* (UINT16_t *) (tcpHdr+16)) = csum;