Lines Matching refs:ehdrlen
1757 int ehdrlen, iphlen, poff, proto;
1774 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN;
1777 ehdrlen = ETHER_HDR_LEN;
1785 if (mbuf->m_len < ehdrlen + sizeof(struct ip6_hdr)) {
1786 mbuf = m_pullup(mbuf, ehdrlen +sizeof(struct ip6_hdr));
1791 poff = ip6_lasthdr(mbuf, ehdrlen, IPPROTO_IPV6, &proto);
1794 poff += ehdrlen;
1799 if (mbuf->m_len < ehdrlen + sizeof(struct ip)) {
1800 mbuf = m_pullup(mbuf, ehdrlen + sizeof(struct ip));
1808 ip = (struct ip *)(mbuf->m_data + ehdrlen);
1810 poff = ehdrlen + iphlen;
1858 hdr->l3_offset = ehdrlen;
1868 hdr->inner_l3_offset = ehdrlen - 2;