samples: net: echo_server: add config for native_sim offloaded sockets

Add configuration for Native Simulator offloaded sockets.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
This commit is contained in:
Marcin Niestroj 2024-02-23 14:25:10 +01:00 committed by Carles Cufí
parent 9359903bd6
commit 81574fd1df
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,9 @@
CONFIG_ETH_NATIVE_POSIX=n
CONFIG_NET_DRIVERS=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_OFFLOAD=y
CONFIG_NET_NATIVE_OFFLOADED_SOCKETS=y
CONFIG_HEAP_MEM_POOL_SIZE=1024
# IPv6 DAD requires lower level network interface access, below exposed socket-level access
CONFIG_NET_IPV6_DAD=n

View file

@ -133,3 +133,8 @@ tests:
- qemu_x86_64
integration_platforms:
- qemu_x86
sample.net.sockets.echo_server.nsos:
platform_allow:
- native_sim
extra_args:
- OVERLAY_CONFIG="overlay-nsos.conf"