Skip to content

Commit

Permalink
[posix] do not enable loop back to host (#9826)
Browse files Browse the repository at this point in the history
There's no clear use case for looping back packets to host.
And it would probably result in host processing duplicate
messages. This commit disables looping packets back to host.
  • Loading branch information
bukepo authored Feb 2, 2024
1 parent 74c833b commit cf357d7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/posix/platform/netif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,6 @@ static void processTransmit(otInstance *aInstance)
message = otIp6NewMessage(aInstance, &settings);
#endif
VerifyOrExit(message != nullptr, error = OT_ERROR_NO_BUFS);
otMessageSetLoopbackToHostAllowed(message, true);
otMessageSetOrigin(message, OT_MESSAGE_ORIGIN_HOST_UNTRUSTED);
}

Expand Down

0 comments on commit cf357d7

Please sign in to comment.