2014-06-19 01:45:55 +08:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 22:08:57 +08:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2014-06-19 01:45:55 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menu "UDP Networking"
|
|
|
|
|
|
|
|
config NET_UDP
|
|
|
|
bool "UDP Networking"
|
|
|
|
default n
|
|
|
|
depends on NET
|
|
|
|
---help---
|
|
|
|
Enable or disable UDP networking support.
|
|
|
|
|
|
|
|
if NET_UDP
|
|
|
|
|
|
|
|
config NET_UDP_CHECKSUMS
|
|
|
|
bool "UDP checksums"
|
2015-01-23 23:31:44 +08:00
|
|
|
default y if NET_IPv6
|
|
|
|
default n if !NET_IPv6
|
2014-06-19 01:45:55 +08:00
|
|
|
---help---
|
2015-01-23 23:31:44 +08:00
|
|
|
Enable/disable UDP checksum support. UDP checksum support is
|
|
|
|
REQUIRED for IPv6.
|
2014-06-19 01:45:55 +08: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
|
|
|
|
|
|
|
|
config NET_RXAVAIL
|
|
|
|
bool "Driver-based UDP backlog"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
One problem with UDP communications is that, unlike TCP/IP, there is
|
|
|
|
no backlog of UDP packets. So if you are listening at the precise
|
|
|
|
moment that the UDP packet is sent, it will not be received. This
|
|
|
|
is not incompatible with the properties of UDP, but can result in
|
|
|
|
bad performance if packets are missed, time out, and are resent.
|
|
|
|
|
|
|
|
Some Ethernet controllers have built-in RAM and the drivers can
|
|
|
|
support retention of UDP packets in that RAM. If the drivers
|
|
|
|
supports such a capability, this option may be enabled to use it.
|
|
|
|
NOTE: If this option is enabled, the driver must support the
|
2014-06-28 06:48:12 +08:00
|
|
|
rxavail() method in the net_driver_s structure.
|
2014-06-19 01:45:55 +08:00
|
|
|
|
2015-01-30 20:08:26 +08:00
|
|
|
config NET_UDP_READAHEAD
|
|
|
|
bool "Enable UDP/IP read-ahead buffering"
|
|
|
|
default y
|
|
|
|
select NET_IOB
|
|
|
|
|
2014-06-19 01:45:55 +08:00
|
|
|
endif # NET_UDP
|
|
|
|
endmenu # UDP Networking
|