mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
Improvements in UDP connections allocation.
This commit is contained in:
committed by
Xiang Xiao
parent
8f9dfe0be1
commit
7f3591b9cc
@@ -288,16 +288,6 @@
|
||||
|
||||
/* UDP configuration options */
|
||||
|
||||
/* The maximum amount of concurrent UDP connection, Default: 10 */
|
||||
|
||||
#ifndef CONFIG_NET_UDP_CONNS
|
||||
# ifdef CONFIG_NET_UDP
|
||||
# define CONFIG_NET_UDP_CONNS 10
|
||||
# else
|
||||
# define CONFIG_NET_UDP_CONNS 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* The UDP maximum packet size. This should not be set to more than
|
||||
* NETDEV_PKTSIZE(d) - NET_LL_HDRLEN(dev) - __UDP_HDRLEN - IPv*_HDRLEN.
|
||||
*/
|
||||
@@ -432,7 +422,7 @@
|
||||
|
||||
#ifndef CONFIG_NET_NACTIVESOCKETS
|
||||
# define CONFIG_NET_NACTIVESOCKETS (CONFIG_NET_TCP_PREALLOC_CONNS + \
|
||||
CONFIG_NET_UDP_CONNS)
|
||||
CONFIG_NET_UDP_PREALLOC_CONNS)
|
||||
#endif
|
||||
|
||||
/* The initial retransmission timeout counted in timer pulses.
|
||||
|
||||
Reference in New Issue
Block a user