From 7b07dc503bf7228238451b919d2a0728bcda77e9 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Mon, 26 Apr 2021 14:26:36 -0700 Subject: [PATCH] [mesh-forwarder] allow 15.4 broadcast of unsecure link-local multicast (#6503) --- src/core/thread/mesh_forwarder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/thread/mesh_forwarder.cpp b/src/core/thread/mesh_forwarder.cpp index 4e39c73be..152ad2a67 100644 --- a/src/core/thread/mesh_forwarder.cpp +++ b/src/core/thread/mesh_forwarder.cpp @@ -361,11 +361,11 @@ Error MeshForwarder::UpdateIp6Route(Message &aMessage) if (ip6Header.GetDestination().IsMulticast()) { - // With the exception of MLE multicasts, an End Device - // transmits multicasts, as IEEE 802.15.4 unicasts to its - // parent. + // With the exception of MLE multicasts and any other message + // with link security disabled, an End Device transmits + // multicasts, as IEEE 802.15.4 unicasts to its parent. - if (mle.IsChild() && !aMessage.IsSubTypeMle()) + if (mle.IsChild() && aMessage.IsLinkSecurityEnabled()) { mMacDest.SetShort(mle.GetNextHop(Mac::kShortAddrBroadcast)); }