mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
[mle] check router role allowed before sending multicast adv (#12876)
This commit updates `Mle::SendMulticastAdvertisement()` to verify that the router role is allowed by calling `IsRouterRoleAllowed()` before proceeding to send the multicast MLE advertisement.
This commit is contained in:
committed by
GitHub
parent
e2d07be235
commit
8a032575da
@@ -539,7 +539,14 @@ exit:
|
||||
return;
|
||||
}
|
||||
|
||||
void Mle::SendMulticastAdvertisement(void) { SendAdvertisement(Ip6::Address::GetLinkLocalAllNodesMulticast()); }
|
||||
void Mle::SendMulticastAdvertisement(void)
|
||||
{
|
||||
VerifyOrExit(IsRouterRoleAllowed());
|
||||
SendAdvertisement(Ip6::Address::GetLinkLocalAllNodesMulticast());
|
||||
|
||||
exit:
|
||||
return;
|
||||
}
|
||||
|
||||
void Mle::ScheduleUnicastAdvertisementTo(const Router &aRouter)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user