1# General config
2CONFIG_MAIN_STACK_SIZE=3072
3CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
4CONFIG_SHELL=y
5CONFIG_LOG=y
6CONFIG_ENTROPY_GENERATOR=y
7CONFIG_TEST_RANDOM_GENERATOR=y
8CONFIG_INIT_STACKS=y
9CONFIG_ZVFS_OPEN_MAX=32
10CONFIG_POSIX_API=y
11CONFIG_FDTABLE=y
12CONFIG_ZVFS_POLL_MAX=32
13
14# Eventfd
15CONFIG_EVENTFD=y
16
17# Networking config
18CONFIG_NETWORKING=y
19CONFIG_NET_IPV4=y
20CONFIG_NET_IPV6=y
21CONFIG_NET_TCP=y
22CONFIG_NET_SOCKETS=y
23CONFIG_NET_CONNECTION_MANAGER=y
24CONFIG_NET_SHELL=y
25CONFIG_NET_STATISTICS=y
26CONFIG_NET_STATISTICS_USER_API=y
27CONFIG_NET_LOG=y
28
29# JSON
30CONFIG_JSON_LIBRARY=y
31
32# HTTP parser
33CONFIG_HTTP_PARSER_URL=y
34CONFIG_HTTP_PARSER=y
35CONFIG_HTTP_SERVER=y
36CONFIG_HTTP_SERVER_WEBSOCKET=y
37
38# Network buffers
39CONFIG_NET_PKT_RX_COUNT=16
40CONFIG_NET_PKT_TX_COUNT=16
41CONFIG_NET_BUF_RX_COUNT=128
42CONFIG_NET_BUF_TX_COUNT=128
43CONFIG_NET_CONTEXT_NET_PKT_POOL=y
44
45# IP address options
46CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=3
47CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=4
48CONFIG_NET_MAX_CONTEXTS=32
49CONFIG_NET_MAX_CONN=32
50
51# Network address config
52CONFIG_NET_CONFIG_SETTINGS=y
53CONFIG_NET_CONFIG_NEED_IPV4=y
54CONFIG_NET_CONFIG_NEED_IPV6=y
55CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1"
56CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2"
57CONFIG_NET_CONFIG_MY_IPV4_GW="192.0.2.2"
58CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1"
59CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::2"
60
61# Networking tweaks
62# Required to handle large number of consecutive connections,
63# e.g. when testing with ApacheBench.
64CONFIG_NET_TCP_TIME_WAIT_DELAY=0
65
66# Device drivers
67CONFIG_GPIO=y
68CONFIG_LED=y
69
70# Network debug config
71CONFIG_NET_SOCKETS_LOG_LEVEL_DBG=n
72CONFIG_NET_HTTP_LOG_LEVEL_DBG=n
73CONFIG_NET_IPV6_LOG_LEVEL_DBG=n
74CONFIG_NET_IPV6_ND_LOG_LEVEL_DBG=n
75