2019-06-18 22:06:47 +08:00
|
|
|
# General config
|
|
|
|
CONFIG_LOG=y
|
|
|
|
CONFIG_NET_LOG=y
|
|
|
|
|
|
|
|
# Networking config
|
|
|
|
CONFIG_NETWORKING=y
|
|
|
|
CONFIG_NET_TEST=y
|
|
|
|
CONFIG_NET_IPV4=y
|
|
|
|
CONFIG_NET_IPV6=y
|
|
|
|
CONFIG_NET_SOCKETS=y
|
|
|
|
CONFIG_NET_SOCKETS_POSIX_NAMES=y
|
|
|
|
CONFIG_NET_SOCKETS_NET_MGMT=y
|
2019-06-19 15:11:48 +08:00
|
|
|
CONFIG_NET_MGMT=y
|
2019-06-18 22:06:47 +08:00
|
|
|
CONFIG_NET_MGMT_EVENT=y
|
2019-06-19 15:11:48 +08:00
|
|
|
CONFIG_NET_L2_ETHERNET=y
|
|
|
|
CONFIG_NET_L2_ETHERNET_MGMT=y
|
2019-06-18 22:06:47 +08:00
|
|
|
|
|
|
|
# Network driver config
|
|
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
|
|
|
|
|
|
# Network address config
|
|
|
|
CONFIG_NET_CONFIG_AUTO_INIT=n
|
|
|
|
CONFIG_NET_CONFIG_SETTINGS=y
|
|
|
|
CONFIG_NET_CONFIG_MY_IPV4_ADDR="127.0.0.1"
|
|
|
|
CONFIG_NET_CONFIG_MY_IPV6_ADDR="::1"
|
|
|
|
|
|
|
|
CONFIG_MAIN_STACK_SIZE=2048
|
|
|
|
CONFIG_ZTEST=y
|
|
|
|
|
|
|
|
# User mode requirements
|
|
|
|
CONFIG_TEST_USERSPACE=y
|
|
|
|
CONFIG_HEAP_MEM_POOL_SIZE=128
|
|
|
|
|
|
|
|
# We do not need neighbor discovery etc for this test
|
|
|
|
CONFIG_NET_IPV6_DAD=n
|
|
|
|
CONFIG_NET_IPV6_ND=n
|
|
|
|
CONFIG_NET_IPV6_MLD=n
|
|
|
|
|
|
|
|
CONFIG_NET_SOCKETS_LOG_LEVEL_DBG=y
|