Packet socket tests used non-blocking sockets so in results the test code was overly complicated with delays and loops scattered all across the test code, making it difficult to read. As packet sockets do support blocking operation with timeout, reconfigure the sockets to use that and simplify the test code by getting rid of unnecessary loops and delays. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
28 lines
540 B
Plaintext
28 lines
540 B
Plaintext
# Networking config
|
|
CONFIG_NETWORKING=y
|
|
CONFIG_NET_IPV4=y
|
|
CONFIG_NET_IPV6=n
|
|
CONFIG_NET_UDP=y
|
|
CONFIG_NET_TCP=n
|
|
CONFIG_NET_SOCKETS=y
|
|
CONFIG_NET_SOCKETS_PACKET=y
|
|
CONFIG_ZVFS_OPEN_MAX=8
|
|
CONFIG_NET_IPV6_DAD=n
|
|
CONFIG_NET_IPV6_MLD=n
|
|
|
|
# Network driver config
|
|
CONFIG_NET_L2_ETHERNET=y
|
|
CONFIG_ETH_DRIVER=n
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
|
|
CONFIG_ZTEST=y
|
|
CONFIG_NET_TEST=y
|
|
CONFIG_NET_LOG=y
|
|
CONFIG_TEST_USERSPACE=y
|
|
CONFIG_NET_MAX_CONTEXTS=8
|
|
CONFIG_NET_MAX_CONN=8
|
|
CONFIG_NET_IF_MAX_IPV4_COUNT=2
|
|
CONFIG_NET_CONTEXT_RCVTIMEO=y
|
|
|
|
CONFIG_MAIN_STACK_SIZE=1024
|