Skip to content

Commit 36459a9

Browse files
edmontcarlescufi
authored andcommitted
net: openthread: allow to enable/disable TCP
Allow to enable/disable the OpenThread TCP implementation. Disable it by default. Signed-off-by: Eduardo Montoya <[email protected]>
1 parent 49e06ea commit 36459a9

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

subsys/net/l2/openthread/Kconfig.thread

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,13 @@ config OPENTHREAD_IP6_MAX_EXT_MCAST_ADDRS
149149
range 0 32
150150
default 2
151151

152+
config OPENTHREAD_TCP_ENABLE
153+
bool "Enable TCP"
154+
155+
config OPENTHREAD_CLI_TCP_ENABLE
156+
bool "Enable TCP in the CLI tool"
157+
default y if SHELL
158+
depends on OPENTHREAD_TCP_ENABLE
159+
152160
config OPENTHREAD_HISTORY_TRACKER
153161
bool "Enable history tracker support"

subsys/net/lib/openthread/platform/openthread-core-zephyr-config.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,4 +401,20 @@
401401
#define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS CONFIG_OPENTHREAD_IP6_MAX_EXT_MCAST_ADDRS
402402
#endif /* CONFIG_OPENTHREAD_IP6_MAX_EXT_MCAST_ADDRS */
403403

404+
/**
405+
* @def OPENTHREAD_CONFIG_TCP_ENABLE
406+
*
407+
* Enable TCP.
408+
*
409+
*/
410+
#define OPENTHREAD_CONFIG_TCP_ENABLE IS_ENABLED(CONFIG_OPENTHREAD_TCP_ENABLE)
411+
412+
/**
413+
* @def OPENTHREAD_CONFIG_CLI_TCP_ENABLE
414+
*
415+
* Enable TCP in the CLI tool.
416+
*
417+
*/
418+
#define OPENTHREAD_CONFIG_CLI_TCP_ENABLE IS_ENABLED(CONFIG_OPENTHREAD_CLI_TCP_ENABLE)
419+
404420
#endif /* OPENTHREAD_CORE_ZEPHYR_CONFIG_H_ */

0 commit comments

Comments
 (0)