mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 06:37:46 +00:00
[mle] ensure MLE messages are sent via broadcast (#6730)
MLE Announce messages are sent with link security enabled. This commit ensures that REEDs always send MLE Announce messages to the broadcast destination address.
This commit is contained in:
@@ -365,7 +365,7 @@ Error MeshForwarder::UpdateIp6Route(Message &aMessage)
|
||||
// with link security disabled, an End Device transmits
|
||||
// multicasts, as IEEE 802.15.4 unicasts to its parent.
|
||||
|
||||
if (mle.IsChild() && aMessage.IsLinkSecurityEnabled())
|
||||
if (mle.IsChild() && aMessage.IsLinkSecurityEnabled() && !aMessage.IsSubTypeMle())
|
||||
{
|
||||
mMacDest.SetShort(mle.GetNextHop(Mac::kShortAddrBroadcast));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user