2018-03-31 03:25:37 +08:00
|
|
|
# General config
|
|
|
|
CONFIG_NEWLIB_LIBC=y
|
|
|
|
|
|
|
|
# Networking config
|
|
|
|
CONFIG_NETWORKING=y
|
|
|
|
CONFIG_NET_TEST=y
|
|
|
|
CONFIG_NET_LOOPBACK=y
|
|
|
|
CONFIG_NET_IPV4=y
|
|
|
|
CONFIG_NET_IPV6=y
|
|
|
|
CONFIG_NET_SOCKETS=y
|
|
|
|
CONFIG_NET_SOCKETS_POSIX_NAMES=y
|
|
|
|
|
|
|
|
# Network driver config
|
|
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
|
|
|
|
|
|
# Network address config
|
2018-08-12 14:32:12 +08:00
|
|
|
CONFIG_NET_CONFIG_SETTINGS=y
|
2019-04-05 19:11:44 +08:00
|
|
|
CONFIG_NET_CONFIG_MY_IPV4_ADDR="127.0.0.1"
|
|
|
|
CONFIG_NET_CONFIG_MY_IPV6_ADDR="::1"
|
2018-03-31 03:25:37 +08:00
|
|
|
|
|
|
|
# Enable the DNS resolver
|
|
|
|
CONFIG_DNS_RESOLVER=y
|
|
|
|
CONFIG_DNS_SERVER_IP_ADDRESSES=y
|
|
|
|
|
2019-04-05 19:11:44 +08:00
|
|
|
# Use local server for testing.
|
|
|
|
CONFIG_DNS_SERVER1="[::1]:15353"
|
|
|
|
CONFIG_DNS_SERVER2="127.0.0.1:15353"
|
2018-03-31 03:25:37 +08:00
|
|
|
|
|
|
|
CONFIG_MAIN_STACK_SIZE=2048
|
|
|
|
CONFIG_ZTEST=y
|
net: introduce system calls for zsock socket APIs
Add system calls for the zsock implementations of socket,
close, bind, connect, listen, accept, sendto, recvfrom,
fcntl, poll, inet_pton, and getaddrinfo.
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2018-06-28 03:43:20 +08:00
|
|
|
|
|
|
|
# User mode requirements
|
2019-04-06 06:39:50 +08:00
|
|
|
CONFIG_TEST_USERSPACE=y
|
net: introduce system calls for zsock socket APIs
Add system calls for the zsock implementations of socket,
close, bind, connect, listen, accept, sendto, recvfrom,
fcntl, poll, inet_pton, and getaddrinfo.
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2018-06-28 03:43:20 +08:00
|
|
|
CONFIG_HEAP_MEM_POOL_SIZE=128
|
2019-05-07 03:48:23 +08:00
|
|
|
CONFIG_NEWLIB_LIBC_ALIGNED_HEAP_SIZE=256
|
2019-04-05 19:11:44 +08:00
|
|
|
|
|
|
|
# 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
|