Skip to content

Commit 1da03f2

Browse files
committed
samples: net: Allow app to control the amount of sockets used
Create a Kconfig entry that allows the application to control how many sockets it needs. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 3af6076 commit 1da03f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

samples/net/common/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,8 @@ config NET_SAMPLE_COMMON_TUNNEL_MY_ADDR
5050
depends on NET_L2_IPIP
5151
help
5252
The value depends on your network setup.
53+
54+
# Generic way to allocate enough sockets for the application
55+
config ZVFS_OPEN_ADD_SIZE_NET_SAMPLE
56+
int "Amount of sockets needed by the networking sample"
57+
default 0

0 commit comments

Comments
 (0)