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:
parent
2737701996
commit
1cd935fece
1 changed files with 1 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue