[ip6] fix remove unsecure port behavior (#4822)

When removing unsecure port, we should not add aFromNcpHost filter since
the packet comes from the child.
This commit is contained in:
Jiacheng Guo
2020-04-14 08:58:15 -07:00
committed by GitHub
parent 06cc9bce51
commit c024fac54c
+1 -1
View File
@@ -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;