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
|
|
|
|
CONFIG_NET_APP_SERVER=y
|
|
|
|
CONFIG_NET_APP_NEED_IPV6=y
|
|
|
|
CONFIG_NET_APP_NEED_IPV4=y
|
|
|
|
CONFIG_NET_APP_SETTINGS=y
|
|
|
|
|
|
|
|
# First interface will use these settings
|
|
|
|
CONFIG_NET_APP_MY_IPV6_ADDR="2001:db8::1"
|
|
|
|
|
|
|
|
# Logging
|
|
|
|
CONFIG_SYS_LOG_SHOW_COLOR=y
|
|
|
|
CONFIG_SYS_LOG_NET_LEVEL=4
|
|
|
|
|
|
|
|
# Debug options
|
|
|
|
CONFIG_NET_DEBUG_NET_PKT=y
|
|
|
|
CONFIG_NET_DEBUG_L2_ETHERNET=n
|
|
|
|
CONFIG_NET_DEBUG_ARP=n
|
|
|
|
CONFIG_NET_DEBUG_IF=n
|