From 330793d94ddaa0b9b570b758d9677f28fedb8397 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Sun, 14 Jan 2018 09:24:41 +0100 Subject: [PATCH] Fix bug #52880: ethernet_output() Compile error. --- src/netif/ethernet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/netif/ethernet.c b/src/netif/ethernet.c index ea4e6177..fbc113ac 100644 --- a/src/netif/ethernet.c +++ b/src/netif/ethernet.c @@ -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(ðhdr->dest, dst, ETH_HWADDR_LEN);