You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/06/03 05:04:16 UTC

[incubator-nuttx] 02/02: netpacket/sockaddr_ll: complete the members of sockaddr_ll

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

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

commit f66b17091cea133613c08637ad8dca738cc0db36
Author: chao.an <an...@xiaomi.com>
AuthorDate: Thu Jun 2 15:21:16 2022 +0800

    netpacket/sockaddr_ll: complete the members of sockaddr_ll
    
    Signed-off-by: chao.an <an...@xiaomi.com>
---
 include/netpacket/packet.h | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/include/netpacket/packet.h b/include/netpacket/packet.h
index 0dd1947363..3c3f19c6a0 100644
--- a/include/netpacket/packet.h
+++ b/include/netpacket/packet.h
@@ -34,9 +34,13 @@
 
 struct sockaddr_ll
 {
-  uint16_t sll_family;
-  uint16_t sll_protocol;
-  int16_t  sll_ifindex;
+  unsigned short sll_family;
+  unsigned short sll_protocol;
+  int            sll_ifindex;
+  unsigned short sll_hatype;
+  unsigned char  sll_pkttype;
+  unsigned char  sll_halen;
+  unsigned char  sll_addr[8];
 };
 
 #endif /* __INCLUDE_NETPACKET_PACKET_H */