mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
arp.h: make struct arpreq four-byte aligned
avoid memory waste in 64-bit architectures. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
@@ -65,7 +65,7 @@
|
|||||||
|
|
||||||
/* All ARP ioctls take a pointer to a struct arpreq as their parameter: */
|
/* All ARP ioctls take a pointer to a struct arpreq as their parameter: */
|
||||||
|
|
||||||
struct aligned_data(sizeof(FAR void *)) arpreq
|
struct aligned_data(sizeof(uint32_t)) arpreq
|
||||||
{
|
{
|
||||||
struct sockaddr arp_pa; /* Protocol address */
|
struct sockaddr arp_pa; /* Protocol address */
|
||||||
struct sockaddr arp_ha; /* Hardware address */
|
struct sockaddr arp_ha; /* Hardware address */
|
||||||
|
|||||||
Reference in New Issue
Block a user