mirror of
https://github.com/espressif/openthread.git
synced 2026-07-30 15:47:46 +00:00
[routing-manager] fix typo in method and constant names (#12149)
Fixes the typo `Inital -> Initial`.
This commit is contained in:
@@ -417,7 +417,7 @@ bool RoutingManager::IsInitialPolicyEvaluationDone(void) const
|
||||
// the emitted Router Advert message on infrastructure side
|
||||
// and published in the Thread Network Data.
|
||||
|
||||
return mIsRunning && mOmrPrefixManager.IsInitalEvaluationDone() && mOnLinkPrefixManager.IsInitalEvaluationDone();
|
||||
return mIsRunning && mOmrPrefixManager.IsInitialEvaluationDone() && mOnLinkPrefixManager.IsInitialEvaluationDone();
|
||||
}
|
||||
|
||||
void RoutingManager::ScheduleRoutingPolicyEvaluation(ScheduleMode aMode)
|
||||
@@ -436,9 +436,9 @@ void RoutingManager::ScheduleRoutingPolicyEvaluation(ScheduleMode aMode)
|
||||
break;
|
||||
|
||||
case kForNextRa:
|
||||
if (mTxRaInfo.mTxCount <= kInitalRaTxCount)
|
||||
if (mTxRaInfo.mTxCount <= kInitialRaTxCount)
|
||||
{
|
||||
interval = kInitalRaInterval;
|
||||
interval = kInitialRaInterval;
|
||||
jitter = kInitialRaJitter;
|
||||
}
|
||||
else
|
||||
@@ -750,7 +750,7 @@ void RoutingManager::OmrPrefixManager::Stop(void)
|
||||
ClearFavoredPrefix();
|
||||
}
|
||||
|
||||
bool RoutingManager::OmrPrefixManager::IsInitalEvaluationDone(void) const
|
||||
bool RoutingManager::OmrPrefixManager::IsInitialEvaluationDone(void) const
|
||||
{
|
||||
// This method indicates whether or not we are done with the
|
||||
// initial policy evaluation of the OMR prefix, i.e., either
|
||||
@@ -1344,7 +1344,7 @@ exit:
|
||||
return;
|
||||
}
|
||||
|
||||
bool RoutingManager::OnLinkPrefixManager::IsInitalEvaluationDone(void) const
|
||||
bool RoutingManager::OnLinkPrefixManager::IsInitialEvaluationDone(void) const
|
||||
{
|
||||
// This method indicates whether or not we are done with the
|
||||
// initial policy evaluation of the on-link prefixes, i.e., either
|
||||
|
||||
@@ -581,8 +581,8 @@ private:
|
||||
// randomly selected within the range [interval - jitter,
|
||||
// interval + jitter].
|
||||
|
||||
static constexpr uint32_t kInitalRaTxCount = 3;
|
||||
static constexpr uint32_t kInitalRaInterval = Time::kOneSecondInMsec * 16;
|
||||
static constexpr uint32_t kInitialRaTxCount = 3;
|
||||
static constexpr uint32_t kInitialRaInterval = Time::kOneSecondInMsec * 16;
|
||||
static constexpr uint16_t kInitialRaJitter = Time::kOneSecondInMsec * 2;
|
||||
static constexpr uint32_t kRaBeaconInterval = Time::kOneSecondInMsec * 180; // 3 minutes
|
||||
static constexpr uint16_t kRaBeaconJitter = Time::kOneSecondInMsec * 15;
|
||||
@@ -623,7 +623,7 @@ private:
|
||||
void Init(const Ip6::Prefix &aBrUlaPrefix);
|
||||
void Start(void);
|
||||
void Stop(void);
|
||||
bool IsInitalEvaluationDone(void) const;
|
||||
bool IsInitialEvaluationDone(void) const;
|
||||
OmrConfig GetConfig(Ip6::Prefix *aPrefix, RoutePreference *aPreference) const;
|
||||
Error SetConfig(OmrConfig aConfig, const Ip6::Prefix *aPrefix, RoutePreference aPreference);
|
||||
void Evaluate(void);
|
||||
@@ -678,7 +678,7 @@ private:
|
||||
const Ip6::Prefix &GetLocalPrefix(void) const { return mLocalPrefix; }
|
||||
const Ip6::Prefix &GetFavoredPrefix(void) const { return mFavoredPrefix; }
|
||||
bool AddressMatchesLocalPrefix(const Ip6::Address &aAddress) const;
|
||||
bool IsInitalEvaluationDone(void) const;
|
||||
bool IsInitialEvaluationDone(void) const;
|
||||
void HandleRxRaTrackerChanged(void);
|
||||
bool ShouldPublishUlaRoute(void) const;
|
||||
Error AppendAsPiosTo(RouterAdvert::TxMessage &aRaMessage);
|
||||
|
||||
Reference in New Issue
Block a user