mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-04-16 08:43:17 +00:00
Changed two MEMCPY calls to SMEMCPY
This commit is contained in:
parent
521d439a07
commit
c93cfb2c74
@ -395,8 +395,8 @@ autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr)
|
|||||||
/* Copy struct ip_addr2 to aligned ip_addr, to support compilers without
|
/* Copy struct ip_addr2 to aligned ip_addr, to support compilers without
|
||||||
* structure packing (not using structure copy which breaks strict-aliasing rules).
|
* structure packing (not using structure copy which breaks strict-aliasing rules).
|
||||||
*/
|
*/
|
||||||
MEMCPY(&sipaddr, &hdr->sipaddr, sizeof(sipaddr));
|
SMEMCPY(&sipaddr, &hdr->sipaddr, sizeof(sipaddr));
|
||||||
MEMCPY(&dipaddr, &hdr->dipaddr, sizeof(dipaddr));
|
SMEMCPY(&dipaddr, &hdr->dipaddr, sizeof(dipaddr));
|
||||||
|
|
||||||
if ((netif->autoip->state == AUTOIP_STATE_PROBING) ||
|
if ((netif->autoip->state == AUTOIP_STATE_PROBING) ||
|
||||||
((netif->autoip->state == AUTOIP_STATE_ANNOUNCING) &&
|
((netif->autoip->state == AUTOIP_STATE_ANNOUNCING) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user