From a2004cc70fe82febbce117a653c5cbdd9569ec3c Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Thu, 26 May 2016 12:29:56 +0300 Subject: [PATCH] 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 --- net/ip/Kconfig | 6 ++++++ net/ip/contiki/contiki-conf.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/net/ip/Kconfig b/net/ip/Kconfig index c98f8499a2d..758ef620d80 100644 --- a/net/ip/Kconfig +++ b/net/ip/Kconfig @@ -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 diff --git a/net/ip/contiki/contiki-conf.h b/net/ip/contiki/contiki-conf.h index 2e12100aed4..fdeb2e67771 100644 --- a/net/ip/contiki/contiki-conf.h +++ b/net/ip/contiki/contiki-conf.h @@ -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__ */