Skip to content

Commit

Permalink
samples: echo_server: Add a full network stack overflow
Browse files Browse the repository at this point in the history
Some features like IP fragmenting are default disabled to keep the network
stack compact for small devices.
In bigger applications as well as for the Maxwell Pro tests it required
to have the full functionality enabled. This can also work as example for
new projects.

Signed-off-by: Sjors Hettinga <[email protected]>
  • Loading branch information
ssharks authored and carlescufi committed Feb 24, 2023
1 parent 50c1f85 commit 0243599
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions samples/net/sockets/echo_server/overlay-full_network_stack.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This configuration is designed to enable feature that might be disabled by default in the network stack
CONFIG_NET_CONFIG_NEED_IPV4=y
CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.168.11.111"
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.168.11.100"
CONFIG_NET_CONFIG_MY_IPV4_GW="192.168.11.1"

# Optimized networking settings for performance
CONFIG_NET_PKT_RX_COUNT=32
CONFIG_NET_PKT_TX_COUNT=64
CONFIG_NET_BUF_RX_COUNT=256
CONFIG_NET_BUF_TX_COUNT=512

# enable fragmenting
CONFIG_NET_IPV4_FRAGMENT=y
CONFIG_NET_IPV4_FRAGMENT_MAX_COUNT=16
CONFIG_NET_IPV4_FRAGMENT_TIMEOUT=15
CONFIG_NET_IPV4_FRAGMENT_MAX_PKT=8

CONFIG_NET_IPV6_FRAGMENT=y
CONFIG_NET_IPV6_FRAGMENT_MAX_COUNT=16
CONFIG_NET_IPV6_FRAGMENT_TIMEOUT=15
CONFIG_NET_IPV6_FRAGMENT_MAX_PKT=8

CONFIG_NET_SAMPLE_NUM_HANDLERS=20

0 comments on commit 0243599

Please sign in to comment.