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:
Xiang Xiao 2021-12-19 23:03:16 +08:00 committed by Gustavo Henrique Nihei
parent 2737701996
commit 1cd935fece

View file

@ -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 */