Lines Matching defs:thp
489 register struct tcphdr *thp;
522 thp = &cs->cs_tcp;
525 thp->check = *(__sum16 *)cp;
528 thp->psh = (changes & TCP_PUSH_BIT) ? 1 : 0;
535 hdrlen = ip->ihl * 4 + thp->doff * 4;
542 thp->ack_seq = htonl( ntohl(thp->ack_seq) + i);
543 thp->seq = htonl( ntohl(thp->seq) + i);
548 thp->seq = htonl( ntohl(thp->seq) +
554 thp->urg = 1;
558 thp->urg_ptr = htons(x);
560 thp->urg = 0;
565 thp->window = htons( ntohs(thp->window) + x);
571 thp->ack_seq = htonl( ntohl(thp->ack_seq) + x);
577 thp->seq = htonl( ntohl(thp->seq) + x);
616 memcpy(cp, thp, 20);
619 if (thp->doff > 5) {
620 memcpy(cp, cs->cs_tcpopt, ((thp->doff) - 5) * 4);
621 cp += ((thp->doff) - 5) * 4;