Searched refs:bestAddr (Results 1 – 1 of 1) sorted by relevance
1275 const Netif::UnicastAddress *bestAddr = nullptr; in SelectSourceAddress() local1305 bestAddr = &addr; in SelectSourceAddress()1309 if (bestAddr == nullptr) in SelectSourceAddress()1313 else if (addr.GetScope() < bestAddr->GetScope()) in SelectSourceAddress()1318 else if (addr.GetScope() > bestAddr->GetScope()) in SelectSourceAddress()1320 newAddrIsPreferred = (bestAddr->GetScope() < overrideScope); in SelectSourceAddress()1322 else if (addr.mPreferred != bestAddr->mPreferred) in SelectSourceAddress()1343 bestAddr = &addr; in SelectSourceAddress()1347 if (bestMatchLen >= bestAddr->mPrefixLength) in SelectSourceAddress()1349 destScope = bestAddr->GetScope(); in SelectSourceAddress()[all …]