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 <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
a2004cc70f
commit
798d3511c1
2 changed files with 13 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue