mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Re-initialize eh pointer after m_adj()
Submitted by: Kohji Okuno <okuno.kohji jp.panasonic.com> Reviewed by: yongari
This commit is contained in:
parent
3fc38dbfb8
commit
97cce87f78
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue