Lines Matching refs:tcphdr
383 tcp_twcheck(struct inpcb *inp, struct tcpopt *to, struct tcphdr *th,
575 struct tcphdr *th = NULL;
604 hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
612 th = (struct tcphdr *)(udp + 1);
614 th = (struct tcphdr *)(ip6 + 1);
631 th = (struct tcphdr *)(udp + 1);
633 th = (struct tcphdr *)(ip + 1);
661 th->th_off = (sizeof(struct tcphdr) + optlen) >> 2;
674 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
676 sizeof(struct tcphdr) + optlen, IPPROTO_TCP, 0);
697 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
699 htons(sizeof(struct tcphdr) + optlen + IPPROTO_TCP));