Lines Matching refs:tcphdr
456 #define TCP_MINPROTOHDR (sizeof(struct ip6_hdr) + sizeof(struct tcphdr))
519 struct tcphdr *tcp_hdr = (struct tcphdr *)tcp_ptr;
531 ip6->ip6_plen = sizeof(struct tcphdr);
535 htonl(sizeof (struct tcphdr) + IPPROTO_TCP));
552 htons(sizeof(struct tcphdr) + IPPROTO_TCP));
603 tcp_respond(struct tcpcb *tp, void *ipgen, struct tcphdr *th, struct mbuf *m,
611 struct tcphdr *nth;
663 nth = (struct tcphdr *)(void *)(ip6 + 1);
671 nth = (struct tcphdr *)(void *)(ip + 1);
673 bcopy((caddr_t)th, (caddr_t)nth, sizeof(struct tcphdr));
692 nth = (struct tcphdr *)(void *)(ip6 + 1);
699 nth = (struct tcphdr *)(void *)(ip + 1);
715 ip6->ip6_plen = htons((u_short)(sizeof (struct tcphdr) +
717 tlen += sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
747 nth->th_off = sizeof (struct tcphdr) >> 2;
760 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
771 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
1170 sizeof (struct tcphdr) :
1832 struct tcphdr th;
1918 struct tcphdr th;
2148 sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
2429 struct tcphdr *th;
2440 th = (struct tcphdr *)(void *)(ip6 + 1);
2442 sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
2449 th = (struct tcphdr *)(ip + 1);