mirror of
https://github.com/espressif/openthread.git
synced 2026-09-21 08:27:33 +00:00
[mesh-forwarder] avoid forwarding multicast messages back to SED originator (#12329)
This commit is contained in:
@@ -81,7 +81,8 @@ void MeshForwarder::SendMessage(OwnedPtr<Message> aMessagePtr)
|
||||
|
||||
for (Child &child : Get<ChildTable>().Iterate(Child::kInStateValidOrRestoring))
|
||||
{
|
||||
if (!child.IsRxOnWhenIdle() && (destinedForAll || child.HasIp6Address(destination)))
|
||||
if (!child.IsRxOnWhenIdle() && (destinedForAll || child.HasIp6Address(destination)) &&
|
||||
!child.HasIp6Address(ip6Header.GetSource()))
|
||||
{
|
||||
mIndirectSender.AddMessageForSleepyChild(message, child);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user