Lines Matching defs:hlen
2294 int hlen = (th->th_off << 2) - sizeof (*th), thoptlen = hlen;
2300 if (hlen < TCPOLEN_SACKLEN ||
2301 !pf_pull_hdr(m, off + sizeof (*th), opts, hlen, NULL, NULL, pd->af))
2304 while (hlen >= TCPOLEN_SACKLEN) {
2310 hlen--;
2313 if (olen > hlen)
2314 olen = hlen;
2333 hlen -= olen;
3751 int hlen;
3756 hlen = th_off << 2; /* hlen <= sizeof (hdr) */
3757 if (hlen <= (int)sizeof (struct tcphdr))
3759 if (!pf_pull_hdr(m, off, hdr, hlen, NULL, NULL, af))
3762 hlen -= sizeof (struct tcphdr);
3763 while (hlen >= 3) {
3768 --hlen;
3780 hlen -= optlen;
3791 int hlen;
3796 hlen = th_off << 2; /* hlen <= sizeof (hdr) */
3797 if (hlen <= (int)sizeof (struct tcphdr))
3799 if (!pf_pull_hdr(m, off, hdr, hlen, NULL, NULL, af))
3802 hlen -= sizeof (struct tcphdr);
3803 while (hlen >= TCPOLEN_MAXSEG) {
3808 --hlen;
3820 hlen -= optlen;
3840 int hlen;
3846 hlen = sizeof (struct ip);
3858 hlen = sizeof (struct ip6_hdr);
3874 mss = rt->rt_ifp->if_mtu - hlen - sizeof (struct tcphdr);
8419 ("pf: dropping packet with ip options [hlen=%u]\n",