Home
last modified time | relevance | path

Searched refs:bestRouteEntry (Results 1 – 1 of 1) sorted by relevance

/openthread-2.7.6/src/core/thread/
Dnetwork_data_leader.cpp251 const HasRouteEntry *bestRouteEntry = nullptr; in ExternalRouteLookup() local
270 if ((bestRouteEntry != nullptr) && (prefixLength <= bestMatchLength)) in ExternalRouteLookup()
280 … if (bestRouteEntry == nullptr || entry->GetPreference() > bestRouteEntry->GetPreference() || in ExternalRouteLookup()
281 (entry->GetPreference() == bestRouteEntry->GetPreference() && in ExternalRouteLookup()
283 (bestRouteEntry->GetRloc() != Get<Mle::MleRouter>().GetRloc16() && in ExternalRouteLookup()
285 Get<Mle::MleRouter>().GetCost(bestRouteEntry->GetRloc()))))) in ExternalRouteLookup()
287 bestRouteEntry = entry; in ExternalRouteLookup()
294 if (bestRouteEntry != nullptr) in ExternalRouteLookup()
298 *aRloc16 = bestRouteEntry->GetRloc(); in ExternalRouteLookup()