This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new c11752e59f arp.h: make struct arpreq four-byte aligned
c11752e59f is described below

commit c11752e59f6cff27e5a2ec3b2b5c65e273a755fb
Author: zhanghongyu <[email protected]>
AuthorDate: Wed Oct 30 16:52:51 2024 +0800

    arp.h: make struct arpreq four-byte aligned
    
    avoid memory waste in 64-bit architectures.
    
    Signed-off-by: zhanghongyu <[email protected]>
---
 include/netinet/arp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/netinet/arp.h b/include/netinet/arp.h
index 1f434ea1fa..5a310c5dc4 100644
--- a/include/netinet/arp.h
+++ b/include/netinet/arp.h
@@ -65,7 +65,7 @@
 
 /* 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_ha;                /* Hardware address */

Reply via email to