Lines Matching defs:iphlen
781 int iphlen;
785 iphlen = ip->ip_hl << 2;
786 m_head->m_pkthdr.l3hlen = iphlen;
788 PULLUP_HDR(m_head, ehlen + iphlen + sizeof(*th));
789 th = mtodo(m_head, ehlen + iphlen);
842 int iphlen;
846 iphlen = ip->ip_hl << 2;
847 m_head->m_pkthdr.l3hlen = iphlen;
860 uint16_t off = ehlen + iphlen;
898 int ehlen, iphlen;
902 iphlen = m_head->m_pkthdr.l3hlen;
904 PULLUP_HDR(m_head, ehlen + iphlen + sizeof(*th));
905 th = mtodo(m_head, ehlen + iphlen);
4838 int len, iphlen, iplen;
4855 iphlen = ip->ip_hl << 2;
4856 if (iphlen < sizeof(struct ip)) /* minimum header length */
4860 if (m->m_len < hoff + iphlen)
4884 if (iplen < iphlen + sizeof(struct tcphdr))
4886 if (m->m_len < hoff + iphlen + sizeof(struct tcphdr))
4888 th = (const struct tcphdr *)((const uint8_t *)ip + iphlen);
4890 if (thoff < sizeof(struct tcphdr) || thoff + iphlen > iplen)
4892 if (m->m_len < hoff + iphlen + thoff)
4896 if (iplen < iphlen + sizeof(struct udphdr))
4898 if (m->m_len < hoff + iphlen + sizeof(struct udphdr))
4902 if (iplen < iphlen)