From c024fac54cb088ddf8598c824cda6b44924a88ac Mon Sep 17 00:00:00 2001 From: Jiacheng Guo Date: Tue, 14 Apr 2020 23:58:15 +0800 Subject: [PATCH] [ip6] fix remove unsecure port behavior (#4822) When removing unsecure port, we should not add aFromNcpHost filter since the packet comes from the child. --- src/core/net/ip6.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/net/ip6.cpp b/src/core/net/ip6.cpp index 4d2170845..ff50d823d 100644 --- a/src/core/net/ip6.cpp +++ b/src/core/net/ip6.cpp @@ -1232,7 +1232,7 @@ otError Ip6::HandleDatagram(Message &aMessage, Netif *aNetif, const void *aLinkM } #if OPENTHREAD_CONFIG_UNSECURE_TRAFFIC_MANAGED_BY_STACK_ENABLE - if (aFromNcpHost && (nextHeader == kProtoTcp || nextHeader == kProtoUdp)) + if (nextHeader == kProtoTcp || nextHeader == kProtoUdp) { uint16_t dstPort;