net/if: remove the macro expansion of the public structure

This is a compatibility issue if different structures included
in the usrsock server/client scene, usrsock client has no habit
of actively choosing of config CONFIG_NETDEV_IFINDEX at most of the time

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2021-03-12 14:19:01 +08:00 committed by Xiang Xiao
parent 9bdf4ccd68
commit db8e498e4f
1 changed files with 0 additions and 2 deletions

View File

@ -195,9 +195,7 @@ struct lifconf
struct ifreq
{
char ifr_name[IFNAMSIZ]; /* Network device name (e.g. "eth0") */
#ifdef CONFIG_NETDEV_IFINDEX
int16_t ifr_ifindex; /* Interface index */
#endif
union
{
struct sockaddr ifru_addr; /* IP Address */