From a0a48f837475ec078b9e8b14e640de9dba7a420c Mon Sep 17 00:00:00 2001 From: Konrad Derda Date: Tue, 4 Jun 2024 16:41:13 +0200 Subject: [PATCH] [ip6] do not report an error for disabled host loopback Currently, sending an IPv6 multicast destined packet encoded in otMessage with the otIp6Send() function reports an error kErrorNoRoute if "host loopback allowed" flag is disabled (despite of packet being properly passed to Mesh Forwarder). This commit changes a flag checking statement to return kErrorNone instead. Signed-off-by: Konrad Derda --- 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 74d3e4fe60d..0740e11a355 100644 --- a/src/core/net/ip6.cpp +++ b/src/core/net/ip6.cpp @@ -935,7 +935,7 @@ Error Ip6::PassToHost(OwnedPtr &aMessagePtr, Error error = kErrorNone; OwnedPtr messagePtr; - VerifyOrExit(aMessagePtr->IsLoopbackToHostAllowed(), error = kErrorNoRoute); + VerifyOrExit(aMessagePtr->IsLoopbackToHostAllowed()); VerifyOrExit(mReceiveIp6DatagramCallback.IsSet(), error = kErrorNoRoute);