Lines Matching refs:tcphdr
81 static int correct_mss(struct tcphdr *, int, uint16_t, int);
273 struct tcphdr *tcp;
320 M_CHECK(iphlen - sizeof(struct ip) + sizeof(struct tcphdr));
322 tcp = (struct tcphdr *)((caddr_t )ip + iphlen);
326 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen)
330 if (!(tcp->th_flags & TH_SYN) || tcphlen == sizeof(struct tcphdr))
336 M_CHECK(tcphlen - sizeof(struct tcphdr));
338 tcp = (struct tcphdr *)((caddr_t )ip + iphlen);
412 correct_mss(struct tcphdr *tc, int hlen, uint16_t maxmss, int flags)
420 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1);