mirror of
https://github.com/espressif/openthread.git
synced 2026-08-12 05:37:46 +00:00
[bbr] move BBR constants to related source files (#9129)
This commit moves BBR and DUA related constants to the related source files (from `mle_types.hpp`). Additionally, unused constant variables are removed. Some of the constants are renamed to make the definition more clear.
This commit is contained in:
@@ -376,7 +376,7 @@ void DuaManager::HandleTimeTick(void)
|
||||
mDelay.mFields.mReregistrationDelay, mDelay.mFields.mCheckDelay);
|
||||
|
||||
if ((mDuaState != kNotExist) &&
|
||||
(TimerMilli::GetNow() > (mLastRegistrationTime + TimeMilli::SecToMsec(Mle::kDuaDadPeriod))))
|
||||
(TimerMilli::GetNow() > (mLastRegistrationTime + TimeMilli::SecToMsec(kDuaDadPeriod))))
|
||||
{
|
||||
mDomainUnicastAddress.mPreferred = true;
|
||||
}
|
||||
@@ -546,7 +546,7 @@ void DuaManager::PerformNextRegistration(void)
|
||||
exit:
|
||||
if (error == kErrorNoBufs)
|
||||
{
|
||||
UpdateCheckDelay(Mle::kNoBufDelay);
|
||||
UpdateCheckDelay(kNoBufDelay);
|
||||
}
|
||||
|
||||
LogInfo("PerformNextRegistration: %s", ErrorToString(error));
|
||||
@@ -574,7 +574,7 @@ void DuaManager::HandleDuaResponse(Coap::Message *aMessage, const Ip6::MessageIn
|
||||
|
||||
if (aResult == kErrorResponseTimeout)
|
||||
{
|
||||
UpdateCheckDelay(Mle::KResponseTimeoutDelay);
|
||||
UpdateCheckDelay(KResponseTimeoutDelay);
|
||||
ExitNow(error = aResult);
|
||||
}
|
||||
|
||||
@@ -780,7 +780,7 @@ void DuaManager::UpdateChildDomainUnicastAddress(const Child &aChild, Mle::Child
|
||||
{
|
||||
if (mChildDuaMask == mChildDuaRegisteredMask)
|
||||
{
|
||||
UpdateCheckDelay(Random::NonCrypto::GetUint8InRange(1, Mle::kParentAggregateDelay));
|
||||
UpdateCheckDelay(Random::NonCrypto::GetUint8InRange(1, BackboneRouter::kParentAggregateDelay));
|
||||
}
|
||||
|
||||
mChildDuaMask.Set(childIndex, true);
|
||||
|
||||
Reference in New Issue
Block a user