[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:
Abtin Keshavarzian
2026-04-29 15:45:14 -07:00
committed by GitHub
parent d145aafeea
commit a97fa5bd32
3 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -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());