mirror of
https://github.com/espressif/openthread.git
synced 2026-08-12 21:57:47 +00:00
This commit is fix to avoid dual processing on single TCP packet, added fix which restricts TCP packet to pass from opentghread stack. These changes are applicable only when openthread TCP stack is used and it is implemented under feature flag - OPENTHREAD_CONFIG_TCP_ENABLE
This commit is contained in:
@@ -1062,6 +1062,15 @@ Error Ip6::ProcessReceiveCallback(Message &aMessage,
|
||||
break;
|
||||
}
|
||||
|
||||
#if OPENTHREAD_CONFIG_TCP_ENABLE
|
||||
// Do not pass TCP message to avoid dual processing from both openthread and POSIX tcp stacks
|
||||
case kProtoTcp:
|
||||
{
|
||||
error = kErrorNoRoute;
|
||||
goto exit;
|
||||
}
|
||||
#endif
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user