Lines Matching refs:tcpHdr
191 * tcpHdr -- pointer to TCP header
196 computeTCPChecksum(unsigned char *ipHdr, unsigned char *tcpHdr)
200 unsigned char *addr = tcpHdr;
250 unsigned char *tcpHdr;
308 tcpHdr = ipHdr + (ipHdr[0] & 0x0F) * 4;
311 if (!(tcpHdr[13] & 0x02)) {
317 csum = computeTCPChecksum(ipHdr, tcpHdr);
326 endHdr = tcpHdr + ((tcpHdr[12] & 0xF0) >> 2);
327 opt = tcpHdr + 20;
383 tcpHdr[16] = 0;
384 tcpHdr[17] = 0;
385 csum = computeTCPChecksum(ipHdr, tcpHdr);
386 (* (UINT16_t *) (tcpHdr+16)) = csum;