Home
last modified time | relevance | path

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

/external/openthread/tests/unit/
Dtest_routing_manager.cpp379 NetworkData::ExternalRouteConfig routeConfig; in TestRoutingManager() local
456 SuccessOrQuit(instance.Get<NetworkData::Leader>().GetNextExternalRoute(iterator, routeConfig)); in TestRoutingManager()
457 VerifyOrQuit(routeConfig.GetPrefix() == localOnLink); in TestRoutingManager()
458 VerifyOrQuit(routeConfig.mStable == true); in TestRoutingManager()
459 VerifyOrQuit(routeConfig.mPreference == NetworkData::kRoutePreferenceMedium); in TestRoutingManager()
461 …VerifyOrQuit(instance.Get<NetworkData::Leader>().GetNextExternalRoute(iterator, routeConfig) == kE… in TestRoutingManager()
539 …while (instance.Get<NetworkData::Leader>().GetNextExternalRoute(iterator, routeConfig) == kErrorNo… in TestRoutingManager()
541 …VerifyOrQuit((routeConfig.GetPrefix() == localOnLink) || (routeConfig.GetPrefix() == onLinkPrefix)… in TestRoutingManager()
542 (routeConfig.GetPrefix() == routePrefix)); in TestRoutingManager()
543 … VerifyOrQuit(static_cast<int8_t>(routeConfig.mPreference) == NetworkData::kRoutePreferenceMedium); in TestRoutingManager()
[all …]
/external/openthread/src/ncp/
Dncp_base_mtd.cpp2129 otExternalRouteConfig routeConfig; in HandlePropertyGet() local
2132 while (otNetDataGetNextRoute(mInstance, &iter, &routeConfig) == OT_ERROR_NONE) in HandlePropertyGet()
2136 SuccessOrExit(error = mEncoder.WriteIp6Address(routeConfig.mPrefix.mPrefix)); in HandlePropertyGet()
2137 SuccessOrExit(error = mEncoder.WriteUint8(routeConfig.mPrefix.mLength)); in HandlePropertyGet()
2138 SuccessOrExit(error = mEncoder.WriteBool(routeConfig.mStable)); in HandlePropertyGet()
2139 SuccessOrExit(error = mEncoder.WriteUint8(ExternalRouteConfigToFlagByte(routeConfig))); in HandlePropertyGet()
2141 SuccessOrExit(error = mEncoder.WriteBool(routeConfig.mNextHopIsThisDevice)); in HandlePropertyGet()
2142 SuccessOrExit(error = mEncoder.WriteUint16(routeConfig.mRloc16)); in HandlePropertyGet()
2151 while (otBorderRouterGetNextRoute(mInstance, &iter, &routeConfig) == OT_ERROR_NONE) in HandlePropertyGet()
2155 SuccessOrExit(error = mEncoder.WriteIp6Address(routeConfig.mPrefix.mPrefix)); in HandlePropertyGet()
[all …]
/external/openthread/src/core/border_router/
Drouting_manager.cpp474 NetworkData::ExternalRouteConfig routeConfig; in PublishExternalRoute() local
478 routeConfig.Clear(); in PublishExternalRoute()
479 routeConfig.SetPrefix(aPrefix); in PublishExternalRoute()
480 routeConfig.mStable = true; in PublishExternalRoute()
481 routeConfig.mNat64 = aNat64; in PublishExternalRoute()
482 routeConfig.mPreference = aRoutePreference; in PublishExternalRoute()
484 error = Get<NetworkData::Publisher>().PublishExternalRoute(routeConfig); in PublishExternalRoute()
/external/openthread/src/core/thread/
Dnetwork_data.cpp678 ExternalRouteConfig routeConfig; in GetNextServer() local
683 config.mExternalRoute = &routeConfig; in GetNextServer()