Fix bug #50883: struct eth_addr alignment does not fit with ETHADDR16_COPY

... by simply removing ETHADDR16_COPY since noone advocated to keep it
This commit is contained in:
Dirk Ziegelmeier
2017-07-30 17:48:16 +02:00
parent 500598658d
commit 006bb84368
5 changed files with 6 additions and 14 deletions

View File

@@ -297,8 +297,8 @@ ethernet_output(struct netif* netif, struct pbuf* p,
ethhdr = (struct eth_hdr*)p->payload;
ethhdr->type = eth_type_be;
ETHADDR16_COPY(&ethhdr->dest, dst);
ETHADDR16_COPY(&ethhdr->src, src);
SMEMCPY(&ethhdr->dest, dst, ETH_HWADDR_LEN);
SMEMCPY(&ethhdr->src, src, ETH_HWADDR_LEN);
LWIP_ASSERT("netif->hwaddr_len must be 6 for ethernet_output!",
(netif->hwaddr_len == ETH_HWADDR_LEN));