This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new db8e498  net/if: remove the macro expansion of the public structure
db8e498 is described below

commit db8e498e4f1db7da54de348b56cbe721c86683a2
Author: chao.an <anc...@xiaomi.com>
AuthorDate: Fri Mar 12 14:19:01 2021 +0800

    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 <anc...@xiaomi.com>
---
 include/net/if.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/net/if.h b/include/net/if.h
index 1f6dd82..44f467a 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 */

Reply via email to