From cf357d70be94e6f3f21d07b3c16e29bb7ec5cc7e Mon Sep 17 00:00:00 2001 From: Yakun Xu Date: Sat, 3 Feb 2024 04:38:15 +0800 Subject: [PATCH] [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. --- src/posix/platform/netif.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/posix/platform/netif.cpp b/src/posix/platform/netif.cpp index ac1da79cd..4db22bf6a 100644 --- a/src/posix/platform/netif.cpp +++ b/src/posix/platform/netif.cpp @@ -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); }