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
@ -160,6 +160,7 @@ struct can_ioctl_data_s
|
|||||||
struct lifreq
|
struct lifreq
|
||||||
{
|
{
|
||||||
char lifr_name[IFNAMSIZ]; /* Network device name (e.g. "eth0") */
|
char lifr_name[IFNAMSIZ]; /* Network device name (e.g. "eth0") */
|
||||||
|
int16_t lifr_ifindex; /* Interface index */
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
struct sockaddr_storage lifru_addr; /* IP Address */
|
struct sockaddr_storage lifru_addr; /* IP Address */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user