mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-09-17 20:24:24 +00:00
Fix bug #52880: ethernet_output() Compile error.
This commit is contained in:
parent
28c8693683
commit
330793d94d
@ -273,8 +273,6 @@ ethernet_output(struct netif * netif, struct pbuf * p,
|
|||||||
struct eth_hdr *ethhdr;
|
struct eth_hdr *ethhdr;
|
||||||
u16_t eth_type_be = lwip_htons(eth_type);
|
u16_t eth_type_be = lwip_htons(eth_type);
|
||||||
|
|
||||||
LWIP_ASSERT_CORE_LOCKED();
|
|
||||||
|
|
||||||
#if ETHARP_SUPPORT_VLAN && defined(LWIP_HOOK_VLAN_SET)
|
#if ETHARP_SUPPORT_VLAN && defined(LWIP_HOOK_VLAN_SET)
|
||||||
s32_t vlan_prio_vid = LWIP_HOOK_VLAN_SET(netif, p, src, dst, eth_type);
|
s32_t vlan_prio_vid = LWIP_HOOK_VLAN_SET(netif, p, src, dst, eth_type);
|
||||||
if (vlan_prio_vid >= 0) {
|
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 = (struct eth_hdr *)p->payload;
|
||||||
ethhdr->type = eth_type_be;
|
ethhdr->type = eth_type_be;
|
||||||
SMEMCPY(ðhdr->dest, dst, ETH_HWADDR_LEN);
|
SMEMCPY(ðhdr->dest, dst, ETH_HWADDR_LEN);
|
||||||
|
Loading…
Reference in New Issue
Block a user