mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 18:27:56 +08:00
net: Add lifr_ifindex field to struct lifreq
to ensure union lifr_ifru start at the same offset of union ifr_ifru Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Gustavo Henrique Nihei
parent
2737701996
commit
1cd935fece
@@ -160,6 +160,7 @@ struct can_ioctl_data_s
|
||||
struct lifreq
|
||||
{
|
||||
char lifr_name[IFNAMSIZ]; /* Network device name (e.g. "eth0") */
|
||||
int16_t lifr_ifindex; /* Interface index */
|
||||
union
|
||||
{
|
||||
struct sockaddr_storage lifru_addr; /* IP Address */
|
||||
|
||||
Reference in New Issue
Block a user