You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/02/09 04:13:38 UTC

[incubator-nuttx-apps] branch master updated: netutils: Check lo by CONFIG_NET_LOOPBACK not CONFIG_NET_LOCAL

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-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 8361990  netutils: Check lo by CONFIG_NET_LOOPBACK not CONFIG_NET_LOCAL
8361990 is described below

commit 83619902611877210187d7127728a7cba9ba9dc8
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sat Feb 5 03:15:12 2022 +0800

    netutils: Check lo by CONFIG_NET_LOOPBACK not CONFIG_NET_LOCAL
    
    CONFIG_NET_LOCAL is used to enable Unix Domain Socket
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 netutils/netinit/netinit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/netutils/netinit/netinit.c b/netutils/netinit/netinit.c
index 4692f2b..4bb78e1 100644
--- a/netutils/netinit/netinit.c
+++ b/netutils/netinit/netinit.c
@@ -186,7 +186,7 @@
 #elif defined(CONFIG_NET_TUN)
 #  define NET_DEVNAME "tun0"
 #  define NETINIT_HAVE_NETDEV
-#elif defined(CONFIG_NET_LOCAL)
+#elif defined(CONFIG_NET_LOOPBACK)
 #  define NET_DEVNAME "lo"
 #  define NETINIT_HAVE_NETDEV
 #elif defined(CONFIG_NET_CAN)