Skip to content
Commit b3f5db0c authored by Luca Fancellu's avatar Luca Fancellu Committed by Carles Cufí
Browse files

net: eth: Fix ethernet max header size on VLAN presence



Currently NET_ETH_MAX_HDR_SIZE is computed as the size of the
structure struct net_eth_hdr, but this does not take into account
the additional 4 bytes on the ethernet frame header in the presence
of VLAN, fix the issue using the size of struct net_eth_vlan_hdr
when CONFIG_NET_VLAN is enabled.

Signed-off-by: default avatarLuca Fancellu <luca.fancellu@arm.com>
parent 48b201cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment