Fix bug #52880: ethernet_output() Compile error.

This commit is contained in:
Dirk Ziegelmeier 2018-01-14 09:24:41 +01:00
parent 28c8693683
commit 330793d94d

View File

@ -273,8 +273,6 @@ ethernet_output(struct netif * netif, struct pbuf * p,
struct eth_hdr *ethhdr;
u16_t eth_type_be = lwip_htons(eth_type);
LWIP_ASSERT_CORE_LOCKED();
#if ETHARP_SUPPORT_VLAN && defined(LWIP_HOOK_VLAN_SET)
s32_t vlan_prio_vid = LWIP_HOOK_VLAN_SET(netif, p, src, dst, eth_type);
if (vlan_prio_vid >= 0) {
@ -298,6 +296,8 @@ ethernet_output(struct netif * netif, struct pbuf * p,
}
}
LWIP_ASSERT_CORE_LOCKED();
ethhdr = (struct eth_hdr *)p->payload;
ethhdr->type = eth_type_be;
SMEMCPY(&ethhdr->dest, dst, ETH_HWADDR_LEN);