net: ip: Allow user to select number of UDP connections

Earlier default was 10, new default is 2.

Change-Id: I938449d840a244a13e9b9b954648577b76db00bc
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2016-05-26 12:29:56 +03:00
commit a2004cc70f
2 changed files with 10 additions and 0 deletions

View file

@ -79,6 +79,12 @@ config NET_MAX_CONTEXTS
It defines a network endpoint and number of context depends
on application usage.
config UDP_MAX_CONNECTIONS
int "How many UDP connections can be used"
default 2
help
Amount of concurrent UDP connections.
choice
prompt "Internet Protocol version"
depends on NETWORKING

View file

@ -239,4 +239,8 @@ typedef unsigned int uip_stats_t;
#define UIP_CONF_LLH_LEN 14
#endif
#if defined(CONFIG_UDP_MAX_CONNECTIONS)
#define UIP_CONF_UDP_CONNS CONFIG_UDP_MAX_CONNECTIONS
#endif
#endif /* __CONTIKI_CONF_H__ */