2014-06-18 19:45:55 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:08:57 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2014-06-18 19:45:55 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
menu "UDP Networking"
|
|
|
|
|
|
|
|
config NET_UDP
|
|
|
|
bool "UDP Networking"
|
|
|
|
default n
|
|
|
|
depends on NET
|
|
|
|
---help---
|
|
|
|
Enable or disable UDP networking support.
|
|
|
|
|
2017-03-31 16:58:14 +02:00
|
|
|
config NET_UDP_NO_STACK
|
|
|
|
bool "Disable UDP/IP Stack"
|
|
|
|
default n
|
|
|
|
select NET_UDP
|
|
|
|
---help---
|
|
|
|
Build without UDP/IP stack even if UDP networking support enabled.
|
|
|
|
|
|
|
|
if NET_UDP && !NET_UDP_NO_STACK
|
2014-06-18 19:45:55 +02:00
|
|
|
|
2018-06-25 20:41:28 +02:00
|
|
|
config NET_UDP_BINDTODEVICE
|
|
|
|
bool "UDP Bind-to-device support"
|
|
|
|
default n
|
|
|
|
select NET_UDPPROTO_OPTIONS
|
|
|
|
---help---
|
|
|
|
Enable support for the UDP_BINDTODEVICE socket option.
|
|
|
|
Linux has SO_BINDTODEVICE but in NuttX this option is instead
|
|
|
|
specific to the UDP protocol.
|
|
|
|
|
2014-06-18 19:45:55 +02:00
|
|
|
config NET_UDP_CHECKSUMS
|
|
|
|
bool "UDP checksums"
|
2015-01-23 16:31:44 +01:00
|
|
|
default y if NET_IPv6
|
|
|
|
default n if !NET_IPv6
|
2014-06-18 19:45:55 +02:00
|
|
|
---help---
|
2015-01-23 16:31:44 +01:00
|
|
|
Enable/disable UDP checksum support. UDP checksum support is
|
|
|
|
REQUIRED for IPv6.
|
2014-06-18 19:45:55 +02:00
|
|
|
|
|
|
|
config NET_UDP_CONNS
|
|
|
|
int "Number of UDP sockets"
|
|
|
|
default 8
|
|
|
|
---help---
|
|
|
|
The maximum amount of open concurrent UDP sockets
|
|
|
|
|
|
|
|
config NET_BROADCAST
|
|
|
|
bool "UDP broadcast Rx support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Incoming UDP broadcast support
|
|
|
|
|
2015-01-30 13:08:26 +01:00
|
|
|
config NET_UDP_READAHEAD
|
|
|
|
bool "Enable UDP/IP read-ahead buffering"
|
|
|
|
default y
|
2018-01-23 01:32:02 +01:00
|
|
|
select NET_READAHEAD
|
2017-05-09 15:34:59 +02:00
|
|
|
select MM_IOB
|
2015-01-30 13:08:26 +01:00
|
|
|
|
2018-01-23 01:32:02 +01:00
|
|
|
config NET_UDP_WRITE_BUFFERS
|
|
|
|
bool "Enable UDP/IP write buffering"
|
|
|
|
default n
|
|
|
|
select NET_WRITE_BUFFERS
|
|
|
|
select MM_IOB
|
|
|
|
---help---
|
|
|
|
Write buffers allows buffering of ongoing UDP/IP packets, providing
|
|
|
|
for higher performance, streamed output.
|
|
|
|
|
|
|
|
You might want to disable UDP/IP write buffering on a highly memory
|
|
|
|
memory constrained system where there are no performance issues.
|
|
|
|
|
|
|
|
if NET_UDP_WRITE_BUFFERS
|
|
|
|
|
|
|
|
config NET_UDP_NWRBCHAINS
|
|
|
|
int "Number of pre-allocated I/O buffer chain heads"
|
|
|
|
default 8
|
|
|
|
---help---
|
|
|
|
These tiny nodes are used as "containers" to support queuing of
|
|
|
|
UDP write buffers. This setting will limit the number of UDP write
|
|
|
|
operations that can be "in-flight" at any give time. So a good
|
|
|
|
choice for this value would be the same as the maximum number of
|
|
|
|
UDP connections.
|
|
|
|
|
|
|
|
config NET_UDP_WRBUFFER_DEBUG
|
|
|
|
bool "Force write buffer debug"
|
|
|
|
default n
|
|
|
|
depends on DEBUG_FEATURES
|
|
|
|
select IOB_DEBUG
|
|
|
|
---help---
|
|
|
|
This option will force debug output from UDP write buffer logic,
|
|
|
|
even without network debug output. This is not normally something
|
|
|
|
that would want to do but is convenient if you are debugging the
|
|
|
|
write buffer logic and do not want to get overloaded with other
|
|
|
|
network-related debug output.
|
|
|
|
|
|
|
|
config NET_UDP_WRBUFFER_DUMP
|
|
|
|
bool "Force write buffer dump"
|
|
|
|
default n
|
|
|
|
depends on DEBUG_NET || NET_UDP_WRBUFFER_DEBUG
|
|
|
|
select IOB_DEBUG
|
|
|
|
---help---
|
|
|
|
Dump the contents of the write buffers. You do not want to do this
|
|
|
|
unless you really want to analyze the write buffer transfers in
|
|
|
|
detail.
|
|
|
|
|
|
|
|
endif # NET_UDP_WRITE_BUFFERS
|
|
|
|
|
2017-03-31 16:58:14 +02:00
|
|
|
endif # NET_UDP && !NET_UDP_NO_STACK
|
2014-06-18 19:45:55 +02:00
|
|
|
endmenu # UDP Networking
|