Home
last modified time | relevance | path

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

/openthread-latest/src/core/thread/
Drouter_table.cpp143 for (uint8_t routerId = mMinRouterId; routerId <= mMaxRouterId; routerId++) in Allocate() local
145 for (uint8_t routerId = 0; routerId <= Mle::kMaxRouterId; routerId++) in Allocate()
148 if (mRouterIdMap.CanAllocate(routerId)) in Allocate()
159 selectedRouterId = routerId; in Allocate()
317 uint8_t routerId; in GetRouterInfo() local
321 routerId = static_cast<uint8_t>(aRouterId); in GetRouterInfo()
326 routerId = Mle::RouterIdFromRloc16(aRouterId); in GetRouterInfo()
327 VerifyOrExit(routerId <= Mle::kMaxRouterId, error = kErrorInvalidArgs); in GetRouterInfo()
330 router = FindRouterById(routerId); in GetRouterInfo()
521 for (uint8_t routerId = 0; routerId <= Mle::kMaxRouterId; routerId++) in UpdateRouterIdSet() local
[all …]
Dmle_router.cpp887 uint8_t routerId; in HandleLinkAccept() local
901 routerId = RouterIdFromRloc16(sourceAddress); in HandleLinkAccept()
902 router = mRouterTable.FindRouterById(routerId); in HandleLinkAccept()
963 router = mRouterTable.FindRouterById(routerId); in HandleLinkAccept()
1006 VerifyOrExit(routeTlv.IsRouterIdSet(routerId), error = kErrorParse); in HandleLinkAccept()
1011 router = mRouterTable.FindRouterById(routerId); in HandleLinkAccept()
1024 if (routerId != mRouterId && !IsRouterIdValid(router->GetNextHop())) in HandleLinkAccept()
1051 mRouterTable.UpdateRoutes(routeTlv, routerId); in HandleLinkAccept()
1192 uint8_t routerId; in HandleAdvertisement() local
1258 routerId = RouterIdFromRloc16(aSourceAddress); in HandleAdvertisement()
[all …]
/openthread-latest/src/core/utils/
Dhistory_tracker.cpp291 for (uint8_t routerId = 0; routerId <= Mle::kMaxRouterId; routerId++) in RecordRouterTableChange() local
294 RouterEntry &oldEntry = mRouterEntries[routerId]; in RecordRouterTableChange()
296 entry.mRouterId = routerId; in RecordRouterTableChange()
298 if (Get<RouterTable>().IsAllocated(routerId)) in RecordRouterTableChange()
303 …Get<RouterTable>().GetNextHopAndPathCost(Mle::Rloc16FromRouterId(routerId), nextHopRloc, pathCost); in RecordRouterTableChange()
Dmesh_diag.cpp92 for (uint8_t routerId = 0; routerId <= Mle::kMaxRouterId; routerId++) in DiscoverTopology() local
96 if (!mDiscover.mExpectedRouterIdSet.Contains(routerId)) in DiscoverTopology()
101 …ation.SetToRoutingLocator(Get<Mle::Mle>().GetMeshLocalPrefix(), Mle::Rloc16FromRouterId(routerId)); in DiscoverTopology()
/openthread-latest/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()
/openthread-latest/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.py1428 routerId = self.__convertRlocToRouterId(xRouterId)
1430 if routerId is None:
1433 cmd = 'releaserouterid %s' % routerId
/openthread-latest/src/cli/
Dcli.cpp4913 for (uint8_t routerId = 0; routerId <= OT_NETWORK_MAX_ROUTER_ID; routerId++) in Process() local
4915 if (!otThreadIsRouterIdAllocated(GetInstancePtr(), routerId)) in Process()
4920 destRloc16 = routerId; in Process()
4925 OutputFormat("| %4u | ", routerId); in Process()
6153 uint16_t routerId; in Process() local
6266 SuccessOrExit(error = aArgs[0].ParseAsUint16(routerId)); in Process()
6267 SuccessOrExit(error = otThreadGetRouterInfo(GetInstancePtr(), routerId, &routerInfo)); in Process()