Skip to content

Commit

Permalink
[ip6] do not report an error for disabled host loopback
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
konradderda committed Jun 4, 2024
1 parent ea61703 commit a0a48f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/net/ip6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ Error Ip6::PassToHost(OwnedPtr<Message> &aMessagePtr,
Error error = kErrorNone;
OwnedPtr<Message> messagePtr;

VerifyOrExit(aMessagePtr->IsLoopbackToHostAllowed(), error = kErrorNoRoute);
VerifyOrExit(aMessagePtr->IsLoopbackToHostAllowed());

VerifyOrExit(mReceiveIp6DatagramCallback.IsSet(), error = kErrorNoRoute);

Expand Down

0 comments on commit a0a48f8

Please sign in to comment.