# Kconfig - IP stack config # # Copyright (c) 2016 Intel Corporation. # # SPDX-License-Identifier: Apache-2.0 # menu "IP stack" depends on NETWORKING # Hidden option config NET_L2_RAW_CHANNEL bool default n if !NET_L2_RAW_CHANNEL config NET_INIT_PRIO int default 90 help Network initialization priority level. This number tells how early in the boot the network stack is initialized. source "subsys/net/ip/Kconfig.debug" source "subsys/net/ip/Kconfig.ipv6" source "subsys/net/ip/Kconfig.ipv4" config NET_SHELL bool "Enable network shell utilities" default n select CONSOLE_SHELL help Activate shell module that provides network commands like ping to the console. config NET_IP_ADDR_CHECK bool "Check IP address validity before sending IP packet" default y help Check that either the source or destination address is correct before sending either IPv4 or IPv6 network packet. config NET_MAX_ROUTERS int "How many routers are supported" default 2 if NET_IPV4 && NET_IPV6 default 1 if NET_IPV4 && !NET_IPV6 default 1 if !NET_IPV4 && NET_IPV6 range 1 254 help The value depends on your network needs. # Normally the route support is enabled by RPL or similar technology # that needs to use the routing infrastructure. config NET_ROUTE bool depends on NET_IPV6_NBR_CACHE default n default y if NET_IPV6_NBR_CACHE config NET_MAX_ROUTES int "Max number of routing entries stored." default NET_IPV6_MAX_NEIGHBORS depends on NET_ROUTE help This determines how many entries can be stored in routing table. config NET_MAX_NEXTHOPS int "Max number of next hop entries stored." default NET_MAX_ROUTES depends on NET_ROUTE help This determines how many entries can be stored in nexthop table. config NET_ROUTE_MCAST bool depends on NET_ROUTE default n config NET_MAX_MCAST_ROUTES int "Max number of multicast routing entries stored." default 1 depends on NET_ROUTE_MCAST help This determines how many entries can be stored in multicast routing table. config NET_TCP bool "Enable TCP" default n help The value depends on your network needs. config NET_TCP_CHECKSUM bool "Check TCP checksum" default y depends on NET_TCP help Enables TCP handler to check TCP checksum. If the checksum is invalid, then the packet is discarded. config NET_DEBUG_TCP bool "Debug TCP" default n depends on NET_TCP && NET_LOG help Enables TCP handler output debug messages config NET_TCP_BACKLOG_SIZE int "Number of simultaneous incoming TCP connections" depends on NET_TCP default 1 range 1 128 help The number of simultaneous TCP connection attempts, i.e. outstanding TCP connections waiting for initial ACK. config NET_TCP_TIME_WAIT bool "Enable TCP TIME_WAIT timeouts" depends on NET_TCP default n help Officially, the TCP standard requires a 4 minute timeout on connection close before that particular port pair can be used again. This requires that the net_context and net_tcp structs persist for the full duration, so has non-trivial memory costs and is optional. Modern systems with well-randomized sequence numbers don't need this, but it is present for specification compliance where needed. config NET_TCP_2MSL_TIME int "How long to wait in TIME_WAIT (in seconds)" depends on NET_TCP_TIME_WAIT default 240 help The value is in seconds. config NET_TCP_ACK_TIMEOUT int "How long to wait for ACK (in milliseconds)" depends on NET_TCP default 1000 range 1 2147483647 help This value affects the timeout when waiting ACK to arrive in various TCP states. The value is in milliseconds. Note that having a very low value here could prevent connectivity. config NET_TCP_RETRY_COUNT int "Maximum number of TCP segment retransmissions" depends on NET_TCP default 9 help The following formula can be used to determine the time (in ms) that a segment will be be buffered awaiting retransmission: n=NET_TCP_RETRY_COUNT ∑((1<