From 798d3511c14b7970167b4f54bd6c1a94a691c78f Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Thu, 26 May 2016 12:32:19 +0300 Subject: [PATCH] net: ip: Allow user to select number of TCP connections Earlier default was 10, new default is 2. Change-Id: I307a4abaad34223254fd32e1fd4357892a04a2d0 Signed-off-by: Jukka Rissanen --- net/ip/Kconfig | 9 +++++++++ net/ip/contiki/contiki-conf.h | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/net/ip/Kconfig b/net/ip/Kconfig index 758ef620d80..4839a7ac821 100644 --- a/net/ip/Kconfig +++ b/net/ip/Kconfig @@ -137,6 +137,15 @@ config NETWORKING_WITH_TCP help Enable Transmission and Control Protocol (TCP) support. +config TCP_MAX_CONNECTIONS + int "Maximum number of connections" + depends on NETWORKING_WITH_TCP + default 2 + help + Tweak the TCP maximum segment size. Normally one should + not change this but let the IP stack to calculate a best + size for it. + config TCP_DISABLE_ACTIVE_OPEN bool prompt "Disallow host to initiate connection attempt" diff --git a/net/ip/contiki/contiki-conf.h b/net/ip/contiki/contiki-conf.h index fdeb2e67771..30cc03101ac 100644 --- a/net/ip/contiki/contiki-conf.h +++ b/net/ip/contiki/contiki-conf.h @@ -243,4 +243,8 @@ typedef unsigned int uip_stats_t; #define UIP_CONF_UDP_CONNS CONFIG_UDP_MAX_CONNECTIONS #endif +#if defined(CONFIG_TCP_MAX_CONNECTIONS) +#define UIP_CONF_MAX_CONNECTIONS CONFIG_TCP_MAX_CONNECTIONS +#endif + #endif /* __CONTIKI_CONF_H__ */