Lines Matching refs:tcphdr
331 #define TCP_MINPROTOHDR (sizeof(struct ip6_hdr) + sizeof(struct tcphdr))
389 struct tcphdr *tcp_hdr = (struct tcphdr *)tcp_ptr;
401 ip6->ip6_plen = sizeof(struct tcphdr);
421 htons(sizeof(struct tcphdr) + IPPROTO_TCP));
475 register struct tcphdr *th,
488 struct tcphdr *nth;
537 nth = (struct tcphdr *)(ip6 + 1);
543 nth = (struct tcphdr *)(ip + 1);
545 bcopy((caddr_t)th, (caddr_t)nth, sizeof(struct tcphdr));
557 nth = (struct tcphdr *)(ip6 + 1);
562 nth = (struct tcphdr *)(ip + 1);
578 ip6->ip6_plen = htons((u_short)(sizeof (struct tcphdr) +
580 tlen += sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
615 nth->th_off = sizeof (struct tcphdr) >> 2;
638 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
909 sizeof (struct tcphdr) :
1276 struct tcphdr *th;
1302 th = (struct tcphdr *)((caddr_t)ip
1330 struct tcphdr th;
1573 sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
1770 struct tcphdr *th;
1781 th = (struct tcphdr *)(ip6 + 1);
1783 sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
1790 th = (struct tcphdr *)(ip + 1);