Home
last modified time | relevance | path

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

/openthread-3.6.0/src/core/thread/
Dnetwork_data_types.cpp71 VerifyOrExit(IsRoutePreferenceValid(mPreference)); in IsValid()
127 …flags |= (static_cast<uint16_t>(RoutePreferenceToValue(mPreference)) << BorderRouterEntry::kPrefer… in ConvertToTlvFlags()
156mPreference = RoutePreferenceFromValue(static_cast<uint8_t>(aFlags >> BorderRouterEntry::kPrefer… in SetFromTlvFlags()
169 VerifyOrExit(IsRoutePreferenceValid(mPreference)); in IsValid()
192 flags |= (RoutePreferenceToValue(mPreference) << HasRouteEntry::kPreferenceOffset); in ConvertToTlvFlags()
217 mPreference = RoutePreferenceFromValue(aFlags >> HasRouteEntry::kPreferenceOffset); in SetFromTlvFlags()
Dnetwork_data_leader.cpp124 if ((error == kErrorNotFound) || (config.mPreference > aConfig.mPreference) || in GetPreferredNat64Prefix()
125 (config.mPreference == aConfig.mPreference && config.GetPrefix() < aConfig.GetPrefix())) in GetPreferredNat64Prefix()
Dradio_selector.cpp72 aInfo.mIeee802154Info.mPreference = GetRadioPreference(Mac::kRadioTypeIeee802154); in PopulateMultiRadioInfo()
80 aInfo.mTrelUdp6Info.mPreference = GetRadioPreference(Mac::kRadioTypeTrel); in PopulateMultiRadioInfo()
Dnetwork_data_types.hpp194 …GetPreference(void) const { return RoutePreferenceFromValue(RoutePreferenceToValue(mPreference)); } in GetPreference()
/openthread-3.6.0/include/openthread/
Dnetdata.h62 …signed int mPreference : 2; ///< A 2-bit signed int preference (`OT_ROUTE_PREFERENCE_*` values). member
94 …signed int mPreference : 2; ///< A 2-bit signed int preference (`OT_ROUTE_PREFERENCE_*` … member
Dmulti_radio.h60 uint8_t mPreference; ///< Preference level of radio link member
/openthread-3.6.0/src/core/border_router/
Drouting_manager.cpp1937 return !IsEmpty() && (mPreference >= NetworkData::kRoutePreferenceMedium); in IsInfrastructureDerived()
1943 mPreference = aOnMeshPrefixConfig.GetPreference(); in SetFrom()
1950 mPreference = aOmrPrefix.GetPreference(); in SetFrom()
1961 bool isFavored = (mPreference > aOmrPrefixConfig.GetPreference()); in IsFavoredOver()
1965 if (mPreference == aOmrPrefixConfig.GetPreference()) in IsFavoredOver()
2037 mLocalPrefix.mPreference = RoutePreference::kRoutePreferenceMedium; in Evaluate()
2048 mLocalPrefix.mPreference = RoutePreference::kRoutePreferenceLow; in Evaluate()
2154 config.mPreference = mLocalPrefix.GetPreference(); in AddOrUpdateLocalInNetData()
2772 , mPreference(NetworkData::kRoutePreferenceLow) in RioAdvertiser()
2812 VerifyOrExit(mPreference != aPreference); in UpdatePreference()
[all …]
Drouting_manager.hpp880 RoutePreference GetPreference(void) const { return mPreference; } in GetPreference()
885 RoutePreference mPreference; member in ot::BorderRouter::RoutingManager::OmrPrefix
1012 RoutePreference GetPreference(void) const { return mPreference; } in GetPreference()
1052 RoutePreference mPreference; member in ot::BorderRouter::RoutingManager::RioAdvertiser
1115 RoutePreference GetPreference(void) const { return mPreference; } in GetPreference()
1147 RoutePreference mPreference; member in ot::BorderRouter::RoutingManager::RoutePublisher
/openthread-3.6.0/tests/unit/
Dtest_network_data.cpp54 …aConfig.mRloc16, aConfig.mPreference, aConfig.mNat64, aConfig.mStable, aConfig.mNextHopIsThisDevic… in PrintExternalRouteConfig()
67 aConfig.mPreference, aConfig.mStable, aConfig.mDefaultRoute); in PrintOnMeshPrefixConfig()
76 (aConfig1.mPreference == aConfig2.mPreference) && (aConfig1.mStable == aConfig2.mStable); in CompareExternalRouteConfig()
85 … (aConfig1.mPreference == aConfig2.mPreference) && (aConfig1.mStable == aConfig2.mStable) && in CompareOnMeshPrefixConfig()
Dtest_routing_manager.cpp792 PreferenceToString(routeConfig.mPreference)); in VerifyNat64PrefixInNetData()
820 , mPreference(aPreference) in Rio()
826 RoutePreference mPreference; member
833 , mPreference(aPreference) in DefaultRoute()
838 RoutePreference mPreference; member
868 header.SetDefaultRouterPreference(aDefaultRoute.mPreference); in BuildRouterAdvert()
896 …cessOrQuit(raMsg.AppendRouteInfoOption(aRios->mPrefix, aRios->mValidLifetime, aRios->mPreference)); in BuildRouterAdvert()
1075 … VerifyOrQuit(static_cast<int8_t>(entry.mRoutePreference) == routePrefix.mPreference); in VerifyPrefixTable()
1410 prefixConfig.mPreference = NetworkData::kRoutePreferenceMedium; in TestOmrSelection()
1574 prefixConfig.mPreference = NetworkData::kRoutePreferenceMedium; in TestDefaultRoute()
[all …]
/openthread-3.6.0/src/cli/
Dcli_network_data.cpp120 OutputLine(" %s %04x", Interpreter::PreferenceToString(aConfig.mPreference), aConfig.mRloc16); in OutputPrefix()
158 OutputLine(" %s %04x", Interpreter::PreferenceToString(aConfig.mPreference), aConfig.mRloc16); in OutputRoute()
Dcli_history.cpp1344 … Interpreter::PreferenceToString(info->mPrefix.mPreference), info->mPrefix.mRloc16); in Process()
1433 Interpreter::PreferenceToString(info->mRoute.mPreference), info->mRoute.mRloc16); in Process()
Dcli.cpp4247 OutputFormat("15.4(%u)", aMultiRadioInfo.mIeee802154Info.mPreference); in OutputMultiRadioInfo()
4253 OutputFormat("%sTREL(%u)", isFirst ? "" : ", ", aMultiRadioInfo.mTrelUdp6Info.mPreference); in OutputMultiRadioInfo()
5676 aConfig.mPreference = preference; in ParsePrefix()
6103 aConfig.mPreference = preference; in ParseRoute()
/openthread-3.6.0/src/ncp/
Dncp_base_mtd.cpp116 flags |= (static_cast<uint8_t>(aConfig.mPreference) << SPINEL_NET_FLAG_PREFERENCE_OFFSET); in BorderRouterConfigToFlagByte()
142 switch (aConfig.mPreference) in ExternalRouteConfigToFlagByte()
1012 …borderRouterConfig.mPreference = ((flags & SPINEL_NET_FLAG_PREFERENCE_MASK) >> SPINEL_NET_FLAG_P… in HandlePropertyInsert()
2217 routeConfig.mPreference = FlagByteToExternalRoutePreference(flags); in HandlePropertyInsert()
3555 SuccessOrExit(error = mEncoder.WriteUint8(aInfo.mPreference)); in EncodeNeighborMultiRadioInfo()