[tcp] add OPENTHREAD_CONFIG_TCP_ENABLE guards to headers (#13195)

This commit wraps the contents of `tcp6.hpp` and `tcp6_ext.hpp` with
`#if OPENTHREAD_CONFIG_TCP_ENABLE` feature guards to ensure that TCP
definitions and types are cleanly excluded when TCP support is disabled
in the build configuration. Additionally, it explicitly disables the
`OPENTHREAD_CONFIG_TCP_ENABLE` feature flag in the Toranj test
configuration to validate building without TCP support.
This commit is contained in:
Abtin Keshavarzian
2026-06-03 08:29:35 -07:00
committed by GitHub
parent 1b238bffc0
commit c410733490
3 changed files with 10 additions and 0 deletions
@@ -141,6 +141,8 @@
#define OPENTHREAD_CONFIG_IP6_SLAAC_DEPRECATION_INTERVAL 30
#define OPENTHREAD_CONFIG_TCP_ENABLE 0
#define OPENTHREAD_CONFIG_MAC_FILTER_ENABLE 1
#define OPENTHREAD_CONFIG_MAC_FILTER_SIZE 80