From 1cd935fece78cc67e66ade94391f1b638a1b8cc0 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 19 Dec 2021 23:03:16 +0800 Subject: [PATCH] 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 --- include/net/if.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/net/if.h b/include/net/if.h index 28da8d7324..e54c1b81ec 100644 --- a/include/net/if.h +++ b/include/net/if.h @@ -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 */