Lines Matching refs:iphlen

776 		int iphlen;  in hn_tso_fixup()  local
780 iphlen = ip->ip_hl << 2; in hn_tso_fixup()
781 m_head->m_pkthdr.l3hlen = iphlen; in hn_tso_fixup()
783 PULLUP_HDR(m_head, ehlen + iphlen + sizeof(*th)); in hn_tso_fixup()
784 th = mtodo(m_head, ehlen + iphlen); in hn_tso_fixup()
837 int iphlen; in hn_set_hlen() local
841 iphlen = ip->ip_hl << 2; in hn_set_hlen()
842 m_head->m_pkthdr.l3hlen = iphlen; in hn_set_hlen()
855 uint16_t off = ehlen + iphlen; in hn_set_hlen()
893 int ehlen, iphlen; in hn_check_tcpsyn() local
897 iphlen = m_head->m_pkthdr.l3hlen; in hn_check_tcpsyn()
899 PULLUP_HDR(m_head, ehlen + iphlen + sizeof(*th)); in hn_check_tcpsyn()
900 th = mtodo(m_head, ehlen + iphlen); in hn_check_tcpsyn()
4827 int len, iphlen, iplen; in hn_check_iplen() local
4844 iphlen = ip->ip_hl << 2; in hn_check_iplen()
4845 if (iphlen < sizeof(struct ip)) /* minimum header length */ in hn_check_iplen()
4849 if (m->m_len < hoff + iphlen) in hn_check_iplen()
4873 if (iplen < iphlen + sizeof(struct tcphdr)) in hn_check_iplen()
4875 if (m->m_len < hoff + iphlen + sizeof(struct tcphdr)) in hn_check_iplen()
4877 th = (const struct tcphdr *)((const uint8_t *)ip + iphlen); in hn_check_iplen()
4879 if (thoff < sizeof(struct tcphdr) || thoff + iphlen > iplen) in hn_check_iplen()
4881 if (m->m_len < hoff + iphlen + thoff) in hn_check_iplen()
4885 if (iplen < iphlen + sizeof(struct udphdr)) in hn_check_iplen()
4887 if (m->m_len < hoff + iphlen + sizeof(struct udphdr)) in hn_check_iplen()
4891 if (iplen < iphlen) in hn_check_iplen()