mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 19:27:46 +00:00
[router-table] rename FindNextHopOf() to FindNextHopTowards() (#13008)
This commit renames the `RouterTable::FindNextHopOf()` method to `RouterTable::FindNextHopTowards()` to more accurately reflect its purpose: finding the next hop on the path towards a given destination router.
This commit is contained in:
@@ -1799,7 +1799,7 @@ void Mle::HandleTimeTick(void)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (IsLeader() && (mRouterTable.FindNextHopOf(router) == nullptr) &&
|
||||
if (IsLeader() && (mRouterTable.FindNextHopTowards(router) == nullptr) &&
|
||||
(mRouterTable.GetLinkCost(router) >= kMaxRouteCost) && (age >= kMaxLeaderToRouterTimeout))
|
||||
{
|
||||
LogInfo("Router 0x%04x ID timeout expired (no route)", router.GetRloc16());
|
||||
|
||||
Reference in New Issue
Block a user