net/procfs: disable tcp/udp proc node if no stack available

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an
2022-09-19 12:36:15 +08:00
committed by Xiang Xiao
parent 3461990ef4
commit f286012c0d
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -41,7 +41,7 @@
* Pre-processor Definitions
****************************************************************************/
#ifdef CONFIG_NET_UDP
#if defined(CONFIG_NET_UDP) && !defined(CONFIG_NET_UDP_NO_STACK)
#ifdef CONFIG_NET_IPv6
# define UDP_LINELEN 180
@@ -206,4 +206,4 @@ ssize_t netprocfs_read_udpstats(FAR struct netprocfs_file_s *priv,
return len;
}
#endif /* CONFIG_NET_UDP */
#endif /* CONFIG_NET_UDP && !CONFIG_NET_UDP_NO_STACK */