Home | History | Annotate | Download | only in netinet

Lines Matching refs:tcphdr

418 	unsigned hlen = basehlen + sizeof(struct tcphdr);
451 struct tcphdr *n;
482 KASSERT(hlen + sizeof(struct tcphdr) <= MCLBYTES);
485 if (m && m->m_len == hlen + sizeof(struct tcphdr)) {
491 if (m && hlen + sizeof(struct tcphdr) > MHLEN) {
501 m->m_pkthdr.len = m->m_len = hlen + sizeof(struct tcphdr);
506 n = (struct tcphdr *)(mtod(m, char *) + hlen);
516 ipov->ih_len = htons(sizeof(struct tcphdr));
540 htons(sizeof(struct tcphdr) + IPPROTO_TCP));
550 ip6->ip6_plen = htons(sizeof(struct tcphdr));
570 &in6p_faddr(inp), htonl(sizeof(struct tcphdr)),
605 struct tcphdr *th0, tcp_seq ack, tcp_seq seq, int flags)
615 struct tcphdr *th;
668 th = (struct tcphdr *)(ip + 1);
673 th = (struct tcphdr *)(ip6 + 1);
749 th = (struct tcphdr *)(ip + 1);
757 th = (struct tcphdr *)(ip6 + 1);
777 th->th_off = sizeof (struct tcphdr) >> 2;
1276 struct tcphdr th;
1382 struct tcphdr *th;
1418 th = (struct tcphdr *)((char *)ip + (ip->ip_hl << 2));
1487 th = (struct tcphdr *)((char *)ip + (ip->ip_hl << 2));
1721 hdrsiz += sizeof(struct tcphdr);
2164 hlen += sizeof(struct tcphdr);