mirror of
https://github.com/espressif/openthread.git
synced 2026-10-01 13:27:42 +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:
@@ -539,7 +539,14 @@ exit:
|
|||||||
return;
|
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)
|
void Mle::ScheduleUnicastAdvertisementTo(const Router &aRouter)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user