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:
parent
9bdf4ccd68
commit
db8e498e4f
|
@ -195,9 +195,7 @@ struct lifconf
|
||||||
struct ifreq
|
struct ifreq
|
||||||
{
|
{
|
||||||
char ifr_name[IFNAMSIZ]; /* Network device name (e.g. "eth0") */
|
char ifr_name[IFNAMSIZ]; /* Network device name (e.g. "eth0") */
|
||||||
#ifdef CONFIG_NETDEV_IFINDEX
|
|
||||||
int16_t ifr_ifindex; /* Interface index */
|
int16_t ifr_ifindex; /* Interface index */
|
||||||
#endif
|
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
struct sockaddr ifru_addr; /* IP Address */
|
struct sockaddr ifru_addr; /* IP Address */
|
||||||
|
|
Loading…
Reference in New Issue