Lines Matching refs:thp
497 struct tcphdr *thp;
534 thp = &cs->cs_tcp;
537 thp->check = *(__sum16 *)cp;
540 thp->psh = (changes & TCP_PUSH_BIT) ? 1 : 0;
547 hdrlen = ip->ihl * 4 + thp->doff * 4;
554 thp->ack_seq = htonl( ntohl(thp->ack_seq) + i);
555 thp->seq = htonl( ntohl(thp->seq) + i);
560 thp->seq = htonl( ntohl(thp->seq) +
566 thp->urg = 1;
570 thp->urg_ptr = htons(x);
572 thp->urg = 0;
577 thp->window = htons( ntohs(thp->window) + x);
583 thp->ack_seq = htonl( ntohl(thp->ack_seq) + x);
589 thp->seq = htonl( ntohl(thp->seq) + x);
628 memcpy(cp, thp, 20);
631 if (thp->doff > 5) {
632 memcpy(cp, cs->cs_tcpopt, ((thp->doff) - 5) * 4);
633 cp += ((thp->doff) - 5) * 4;