From db8e498e4f1db7da54de348b56cbe721c86683a2 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Fri, 12 Mar 2021 14:19:01 +0800 Subject: [PATCH] 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 --- include/net/if.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/net/if.h b/include/net/if.h index 1f6dd82fb3..44f467ae85 100644 --- a/include/net/if.h +++ b/include/net/if.h @@ -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 */