mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
net/procfs: disable tcp/udp proc node if no stack available
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user