2024-08-22 06:02:21 +08:00
|
|
|
# General config
|
|
|
|
CONFIG_MAIN_STACK_SIZE=3072
|
|
|
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
|
|
|
|
|
2019-07-29 02:43:41 +08:00
|
|
|
# Networking config
|
|
|
|
CONFIG_NETWORKING=y
|
|
|
|
CONFIG_NET_IPV4=y
|
|
|
|
CONFIG_NET_IPV6=y
|
|
|
|
CONFIG_NET_TCP=y
|
|
|
|
CONFIG_NET_SHELL=y
|
|
|
|
|
|
|
|
# Sockets
|
|
|
|
CONFIG_NET_SOCKETS=y
|
2024-07-03 20:29:25 +08:00
|
|
|
CONFIG_ZVFS_POLL_MAX=4
|
2024-03-08 13:55:29 +08:00
|
|
|
CONFIG_POSIX_API=y
|
2019-07-29 02:43:41 +08:00
|
|
|
|
|
|
|
# Network driver config
|
|
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
|
|
|
2024-08-22 06:02:21 +08:00
|
|
|
# Network buffers
|
|
|
|
CONFIG_NET_PKT_RX_COUNT=16
|
|
|
|
CONFIG_NET_PKT_TX_COUNT=16
|
|
|
|
CONFIG_NET_BUF_RX_COUNT=128
|
|
|
|
CONFIG_NET_BUF_TX_COUNT=128
|
|
|
|
CONFIG_NET_CONTEXT_NET_PKT_POOL=y
|
|
|
|
|
2019-07-29 02:43:41 +08:00
|
|
|
# Network address config
|
|
|
|
CONFIG_NET_CONFIG_SETTINGS=y
|
|
|
|
CONFIG_NET_CONFIG_NEED_IPV4=y
|
|
|
|
CONFIG_NET_CONFIG_NEED_IPV6=y
|
|
|
|
CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1"
|
|
|
|
CONFIG_NET_CONFIG_MY_IPV4_GW="192.0.2.2"
|
|
|
|
# Address of HTTP IPv4 server
|
|
|
|
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2"
|
|
|
|
CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1"
|
|
|
|
# Address of HTTP IPv6 server
|
|
|
|
CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::2"
|
|
|
|
|
|
|
|
# HTTP
|
|
|
|
CONFIG_HTTP_CLIENT=y
|
|
|
|
|
|
|
|
# Network debug config
|
|
|
|
CONFIG_LOG=y
|
|
|
|
CONFIG_NET_LOG=y
|
|
|
|
CONFIG_NET_SOCKETS_LOG_LEVEL_DBG=n
|
2024-08-22 06:06:11 +08:00
|
|
|
CONFIG_NET_HTTP_LOG_LEVEL_DBG=n
|
|
|
|
CONFIG_NET_IPV6_LOG_LEVEL_DBG=n
|
|
|
|
CONFIG_NET_IPV6_ND_LOG_LEVEL_DBG=n
|