Re-initialize eh pointer after m_adj()

Submitted by:	Kohji Okuno <okuno.kohji jp.panasonic.com>
Reviewed by:	yongari
This commit is contained in:
Gleb Smirnoff 2012-11-26 19:45:01 +00:00
parent 3fc38dbfb8
commit 97cce87f78

View file

@ -578,6 +578,7 @@ ether_input_internal(struct ifnet *ifp, struct mbuf *m)
bcopy((char *)evl, (char *)evl + ETHER_VLAN_ENCAP_LEN,
ETHER_HDR_LEN - ETHER_TYPE_LEN);
m_adj(m, ETHER_VLAN_ENCAP_LEN);
eh = mtod(m, struct ether_header *);
}
M_SETFIB(m, ifp->if_fib);