You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gu...@apache.org on 2021/12/21 14:01:44 UTC
[incubator-nuttx] 01/02: net: Add lifr_ifindex field to struct lifreq
This is an automated email from the ASF dual-hosted git repository.
gustavonihei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 1cd935fece78cc67e66ade94391f1b638a1b8cc0
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Dec 19 23:03:16 2021 +0800
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 <xi...@xiaomi.com>
---
include/net/if.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/net/if.h b/include/net/if.h
index 28da8d7..e54c1b8 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 */