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__ */