mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
net: add config to support allocate connect dynamically
add config CONFIG_NET_ALLOC_CONNS to support allocate connect. Use this feature if the number of connections can not be determined at compile time. When enabled the stack will be compiled without the static pre-allocate connection list and all connection instances will be dynamically allocated from heap at run time. Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
+10
@@ -312,6 +312,16 @@ source "net/ipforward/Kconfig"
|
||||
|
||||
endmenu # Internet Protocol Selection
|
||||
|
||||
config NET_ALLOC_CONNS
|
||||
bool "Allocate connect instance dynamically"
|
||||
default n
|
||||
---help---
|
||||
Enable to allocate connection instances dynamically.
|
||||
Use this feature if the number of connections can not be determined at
|
||||
compile time. When enabled the stack will be compiled without the static
|
||||
pre-allocate connection list and all connection instances will be dynamically
|
||||
allocated from heap at run time.
|
||||
|
||||
source "net/socket/Kconfig"
|
||||
source "net/inet/Kconfig"
|
||||
source "net/pkt/Kconfig"
|
||||
|
||||
Reference in New Issue
Block a user