[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:
Abtin Keshavarzian
2023-06-05 12:34:28 -07:00
committed by GitHub
parent 41d6fc861c
commit 161a7fddcf
12 changed files with 43 additions and 67 deletions
+4 -4
View File
@@ -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);