[posix] do not enable loop back to host (#9826)

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.
This commit is contained in:
Yakun Xu
2024-02-02 12:38:15 -08:00
committed by GitHub
parent 74c833b623
commit cf357d70be
-1
View File
@@ -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);
}