diff --git a/src/core/net/ip6.cpp b/src/core/net/ip6.cpp index 011711e4d..57968e90e 100644 --- a/src/core/net/ip6.cpp +++ b/src/core/net/ip6.cpp @@ -955,17 +955,6 @@ Error Ip6::PassToHost(OwnedPtr &aMessagePtr, if (mIsReceiveIp6FilterEnabled && aApplyFilter) { -#if !OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE - // Do not pass messages sent to an RLOC/ALOC, except - // Service Locator - - bool isLocator = Get().IsMeshLocalAddress(aMessageInfo.GetSockAddr()) && - aMessageInfo.GetSockAddr().GetIid().IsLocator(); - - VerifyOrExit(!isLocator || aMessageInfo.GetSockAddr().GetIid().IsAnycastServiceLocator(), - error = kErrorNoRoute); -#endif - switch (aIpProto) { case kProtoIcmp6: