2018-03-28 03:25:40 +08:00
|
|
|
# Generic network options
|
|
|
|
CONFIG_NETWORKING=y
|
|
|
|
CONFIG_NET_LOG=y
|
|
|
|
CONFIG_NET_IPV6=y
|
|
|
|
CONFIG_NET_IPV4=y
|
|
|
|
CONFIG_NET_DHCPV4=n
|
|
|
|
CONFIG_NET_UDP=y
|
|
|
|
CONFIG_NET_TCP=y
|
|
|
|
|
|
|
|
# Network statistics options
|
|
|
|
CONFIG_NET_STATISTICS=y
|
|
|
|
CONFIG_NET_STATISTICS_USER_API=y
|
|
|
|
CONFIG_NET_STATISTICS_PER_INTERFACE=y
|
2018-03-28 22:08:29 +08:00
|
|
|
CONFIG_NET_STATISTICS_ETHERNET=y
|
2018-03-28 03:25:40 +08:00
|
|
|
|
|
|
|
# How often to print current statistics
|
|
|
|
CONFIG_SAMPLE_PERIOD=30
|
|
|
|
|
|
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
|
|
|
|
|
|
# Network packet configuration
|
|
|
|
CONFIG_NET_PKT_RX_COUNT=32
|
|
|
|
CONFIG_NET_PKT_TX_COUNT=32
|
|
|
|
CONFIG_NET_BUF_RX_COUNT=32
|
|
|
|
CONFIG_NET_BUF_TX_COUNT=32
|
|
|
|
|
|
|
|
# IP address configuration
|
|
|
|
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=5
|
|
|
|
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=5
|
|
|
|
CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=1
|
|
|
|
CONFIG_NET_MAX_CONTEXTS=10
|
|
|
|
|
|
|
|
CONFIG_INIT_STACKS=y
|
|
|
|
CONFIG_PRINTK=y
|
|
|
|
CONFIG_NET_SHELL=y
|
|
|
|
|
|
|
|
# Application configuration
|
2018-08-12 14:32:12 +08:00
|
|
|
CONFIG_NET_CONFIG_NEED_IPV6=y
|
|
|
|
CONFIG_NET_CONFIG_NEED_IPV4=y
|
|
|
|
CONFIG_NET_CONFIG_SETTINGS=y
|
2018-03-28 03:25:40 +08:00
|
|
|
|
|
|
|
# First interface will use these settings
|
2018-08-12 14:32:12 +08:00
|
|
|
CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1"
|
2018-03-28 03:25:40 +08:00
|
|
|
|
|
|
|
# Logging
|
2018-09-03 22:42:16 +08:00
|
|
|
CONFIG_LOG=y
|