Fix some errors in memcpy arguments. No ampersands on array arguments.
This commit is contained in:
parent
32d2a4c548
commit
8132afb3de
@ -272,7 +272,7 @@ struct ipv6_hdr_s
|
||||
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
# define net_ipv6addr_copy(dest,src) \
|
||||
memcpy(&dest, &src, sizeof(net_ipv6addr_t))
|
||||
memcpy(dest, src, sizeof(net_ipv6addr_t))
|
||||
# define net_ipv6addr_hdrcopy(dest,src) \
|
||||
net_ipv6addr_copy(dest, src)
|
||||
#endif
|
||||
|
@ -202,7 +202,7 @@ void icmpv6_input(FAR struct net_driver_s *dev)
|
||||
* REVISIT: What if the link layer is not Ethernet?
|
||||
*/
|
||||
|
||||
memcpy(&(adv->tgtlladdr), &dev->d_mac, IFHWADDRLEN);
|
||||
memcpy(adv->tgtlladdr, &dev->d_mac, IFHWADDRLEN);
|
||||
|
||||
/* Calculate the checksum over both the ICMP header and payload */
|
||||
|
||||
|
@ -146,7 +146,7 @@ void icmpv6_solicit(FAR struct net_driver_s *dev,
|
||||
* REVISIT: What if the link layer is not Ethernet?
|
||||
*/
|
||||
|
||||
memcpy(&(sol->srclladdr), &dev->d_mac, IFHWADDRLEN);
|
||||
memcpy(sol->srclladdr, &dev->d_mac, IFHWADDRLEN);
|
||||
|
||||
/* Calculate the checksum over both the ICMP header and payload */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user