From f66b17091cea133613c08637ad8dca738cc0db36 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Thu, 2 Jun 2022 15:21:16 +0800 Subject: [PATCH] netpacket/sockaddr_ll: complete the members of sockaddr_ll Signed-off-by: chao.an --- 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 0dd19473633..3c3f19c6a05 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 */