[mesh-forwarder] allow 15.4 broadcast of unsecure link-local multicast (#6503)

This commit is contained in:
Jonathan Hui
2021-04-26 14:26:36 -07:00
committed by GitHub
parent 8168d7a403
commit 7b07dc503b
+4 -4
View File
@@ -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));
}