mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-03 20:27:58 +00:00
apps/: Remove/replace all conditional logic based on CONFIG_NSOCKET_DESCRIPTORS == 0. That value is always greater than zero now. In places just replace with #ifdef CONFIG_NET.
This commit is contained in:
parent
a14f3fbffb
commit
b2f46360de
32 changed files with 73 additions and 77 deletions
|
|
@ -247,8 +247,6 @@ examples/dhcpd
|
|||
NuttX configuration settings:
|
||||
|
||||
CONFIG_NET=y - Of course
|
||||
CONFIG_NSOCKET_DESCRIPTORS - And, of course, you must allocate some
|
||||
socket descriptors.
|
||||
CONFIG_NET_UDP=y - UDP support is required for DHCP
|
||||
(as well as various other UDP-related
|
||||
configuration settings)
|
||||
|
|
@ -1261,7 +1259,6 @@ examples/poll
|
|||
|
||||
CONFIG_NET - Defined for general network support
|
||||
CONFIG_NET_TCP - Defined for TCP/IP support
|
||||
CONFIG_NSOCKET_DESCRIPTORS - Defined to be greater than 0
|
||||
CONFIG_NET_TCP_READAHEAD - Defined
|
||||
CONFIG_NET_NTCP_READAHEAD_BUFFERS - Defined to be greater than zero
|
||||
|
||||
|
|
@ -2031,8 +2028,6 @@ examples/webserver
|
|||
required. These include:
|
||||
|
||||
CONFIG_NET=y - Of course
|
||||
CONFIG_NSOCKET_DESCRIPTORS - And, of course, you must allocate some
|
||||
socket descriptors.
|
||||
CONFIG_NET_UDP=y - UDP support is required for DHCP
|
||||
(as well as various other UDP-related
|
||||
configuration settings).
|
||||
|
|
|
|||
|
|
@ -58,14 +58,13 @@
|
|||
* poll/select support. This kind of looks like overkill.
|
||||
*
|
||||
* CONFIG_NET - Network support must be enabled
|
||||
* CONFIG_NSOCKET_DESCRIPTORS - Socket descriptors must be allocated
|
||||
* CONFIG_NET_TCP - Only support on TCP (because read-ahead
|
||||
* buffering s not yet support for UDP)
|
||||
* CONFIG_NET_TCP_READAHEAD - TCP/IP read-ahead buffering must be enabled
|
||||
*/
|
||||
|
||||
|
||||
#if !defined(CONFIG_NET) || CONFIG_NSOCKET_DESCRIPTORS <= 0
|
||||
#ifndef CONFIG_NET
|
||||
# error Network socket support not enabled
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -58,14 +58,13 @@
|
|||
* poll/select support. This kind of looks like overkill.
|
||||
*
|
||||
* CONFIG_NET - Network support must be enabled
|
||||
* CONFIG_NSOCKET_DESCRIPTORS - Socket descriptors must be allocated
|
||||
* CONFIG_NET_TCP - Only support on TCP (because read-ahead
|
||||
* buffering s not yet support for UDP)
|
||||
* CONFIG_NET_TCP_READAHEAD - TCP/IP read-ahead buffering must be enabled
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_NET) && CONFIG_NSOCKET_DESCRIPTORS > 0 && \
|
||||
defined(CONFIG_NET_TCP) && defined(CONFIG_NET_TCP_READAHEAD)
|
||||
#if defined(CONFIG_NET) && defined(CONFIG_NET_TCP) && \
|
||||
defined(CONFIG_NET_TCP_READAHEAD)
|
||||
# define HAVE_NETPOLL 1
|
||||
#else
|
||||
# undef HAVE_NETPOLL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue