Home
last modified time | relevance | path

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

/external/openthread/src/core/thread/
Drouter_table.cpp129 for (uint8_t routerId = 0; routerId <= Mle::kMaxRouterId; routerId++) in UpdateAllocation() local
131 if (IsAllocated(routerId) && mActiveRouterCount < Mle::kMaxRouters) in UpdateAllocation()
133 indexMap[routerId] = mActiveRouterCount++; in UpdateAllocation()
137 indexMap[routerId] = Mle::kInvalidRouterId; in UpdateAllocation()
144 uint8_t routerId = mRouters[index].GetRouterId(); in UpdateAllocation() local
147 if (routerId > Mle::kMaxRouterId || indexMap[routerId] == Mle::kInvalidRouterId) in UpdateAllocation()
152 newIndex = indexMap[routerId]; in UpdateAllocation()
163 uint8_t routerId = mRouters[index].GetRouterId(); in UpdateAllocation() local
166 if (routerId > Mle::kMaxRouterId || indexMap[routerId] == Mle::kInvalidRouterId) in UpdateAllocation()
171 newIndex = indexMap[routerId]; in UpdateAllocation()
[all …]
Dmle_router.cpp858 uint8_t routerId; in HandleLinkAccept() local
872 routerId = RouterIdFromRloc16(sourceAddress); in HandleLinkAccept()
873 router = mRouterTable.GetRouter(routerId); in HandleLinkAccept()
944 router = mRouterTable.GetRouter(routerId); in HandleLinkAccept()
988 UpdateRoutes(routeTlv, routerId); in HandleLinkAccept()
990 router = mRouterTable.GetRouter(routerId); in HandleLinkAccept()
1003 if (routerId != mRouterId && !IsRouterIdValid(router->GetNextHop())) in HandleLinkAccept()
1220 for (uint8_t routerId = 0; routerId <= kMaxRouterId; routerId++) in IsSingleton() local
1222 if (aRouteTlv.IsRouterIdSet(routerId) && (++count >= 2)) in IsSingleton()
1243 uint8_t routerId; in HandleAdvertisement() local
[all …]
Dmesh_forwarder_ftd.cpp474 uint8_t routerId; in AnycastRouteLookup() local
535 routerId = Mle::Mle::RouterIdFromRloc16(bestDest); in AnycastRouteLookup()
538 Mle::Mle::Rloc16FromRouterId(routerId) == Get<Mle::MleRouter>().GetRloc16())) in AnycastRouteLookup()
542 bestDest = Mle::Mle::Rloc16FromRouterId(routerId); in AnycastRouteLookup()
/external/ot-br-posix/tests/dbus/
Dtest_dbus_client.cpp305 uint8_t routerId; in main() local
324 TEST_ASSERT(api->GetRouterId(routerId) == OTBR_ERROR_NONE); in main()
325 TEST_ASSERT(routerId == leaderData.mLeaderRouterId); in main()
/external/openthread/src/ncp/
Dncp_base_ftd.cpp239 for (uint8_t routerId = 0; routerId <= maxRouterId; routerId++) in HandlePropertyGet() local
241 …if ((otThreadGetRouterInfo(mInstance, routerId, &routerInfo) != OT_ERROR_NONE) || !routerInfo.mAll… in HandlePropertyGet()
1146 uint8_t routerId; in HandlePropertyRemove() local
1148 SuccessOrExit(error = mDecoder.ReadUint8(routerId)); in HandlePropertyRemove()
1150 error = otThreadReleaseRouterId(mInstance, routerId); in HandlePropertyRemove()
/external/openthread/tools/harness-thci/
DOpenThread_WpanCtl.py1415 routerId = ''
1416 routerId = self.__convertRlocToRouterId(xRouterId)
1417 print(routerId)
1419 if routerId is None:
1424 cmd = 'releaserouterid %s' % routerId
DOpenThread.py1378 routerId = self.__convertRlocToRouterId(xRouterId)
1380 if routerId is None:
1383 cmd = 'releaserouterid %s' % routerId
/external/openthread/src/cli/
Dcli.cpp4036 uint16_t routerId; in Process() local
4090 SuccessOrExit(error = aArgs[0].ParseAsUint16(routerId)); in Process()
4091 SuccessOrExit(error = otThreadGetRouterInfo(GetInstancePtr(), routerId, &routerInfo)); in Process()