Lines Matching refs:ehdrlen
1754 int ehdrlen, iphlen, poff, proto;
1771 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN;
1774 ehdrlen = ETHER_HDR_LEN;
1782 if (mbuf->m_len < ehdrlen + sizeof(struct ip6_hdr)) {
1783 mbuf = m_pullup(mbuf, ehdrlen +sizeof(struct ip6_hdr));
1788 poff = ip6_lasthdr(mbuf, ehdrlen, IPPROTO_IPV6, &proto);
1791 poff += ehdrlen;
1796 if (mbuf->m_len < ehdrlen + sizeof(struct ip)) {
1797 mbuf = m_pullup(mbuf, ehdrlen + sizeof(struct ip));
1805 ip = (struct ip *)(mbuf->m_data + ehdrlen);
1807 poff = ehdrlen + iphlen;
1855 hdr->l3_offset = ehdrlen;
1865 hdr->inner_l3_offset = ehdrlen - 2;