Lines Matching refs:hlen
106 size_t hlen, olen, optlen; in MSSFixup() local
111 hlen = tc->th_off << 2; in MSSFixup()
114 if (hlen <= sizeof(struct tcphdr) || hlen > pktlen) in MSSFixup()
121 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1); in MSSFixup()
156 size_t hlen, plen; in tcpmss_Check() local
173 hlen = pip->ip_hl << 2; in tcpmss_Check()
175 ntohs(pip->ip_len) == plen && hlen <= plen && in tcpmss_Check()
176 plen >= sizeof(struct tcphdr) + hlen) in tcpmss_Check()
177 MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), plen - hlen, in tcpmss_Check()
192 hlen = 0; in tcpmss_Check()
195 hlen = sizeof(struct ip6_hdr); in tcpmss_Check()
202 hlen = sizeof(struct ip6_hdr)+ sizeof(struct ip6_frag); in tcpmss_Check()
206 if (hlen > 0 && plen >= sizeof(struct tcphdr) + hlen) in tcpmss_Check()
207 MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), plen - hlen, in tcpmss_Check()