/openthread-3.6.0/src/core/thread/ |
D | network_data_types.cpp | 71 VerifyOrExit(IsRoutePreferenceValid(mPreference)); in IsValid() 127 …flags |= (static_cast<uint16_t>(RoutePreferenceToValue(mPreference)) << BorderRouterEntry::kPrefer… in ConvertToTlvFlags() 156 …mPreference = 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()
|
D | network_data_leader.cpp | 124 if ((error == kErrorNotFound) || (config.mPreference > aConfig.mPreference) || in GetPreferredNat64Prefix() 125 (config.mPreference == aConfig.mPreference && config.GetPrefix() < aConfig.GetPrefix())) in GetPreferredNat64Prefix()
|
D | radio_selector.cpp | 72 aInfo.mIeee802154Info.mPreference = GetRadioPreference(Mac::kRadioTypeIeee802154); in PopulateMultiRadioInfo() 80 aInfo.mTrelUdp6Info.mPreference = GetRadioPreference(Mac::kRadioTypeTrel); in PopulateMultiRadioInfo()
|
D | network_data_types.hpp | 194 …GetPreference(void) const { return RoutePreferenceFromValue(RoutePreferenceToValue(mPreference)); } in GetPreference()
|
/openthread-3.6.0/include/openthread/ |
D | netdata.h | 62 …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
|
D | multi_radio.h | 60 uint8_t mPreference; ///< Preference level of radio link member
|
/openthread-3.6.0/src/core/border_router/ |
D | routing_manager.cpp | 1937 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 …]
|
D | routing_manager.hpp | 880 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/ |
D | test_network_data.cpp | 54 …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()
|
D | test_routing_manager.cpp | 792 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/ |
D | cli_network_data.cpp | 120 OutputLine(" %s %04x", Interpreter::PreferenceToString(aConfig.mPreference), aConfig.mRloc16); in OutputPrefix() 158 OutputLine(" %s %04x", Interpreter::PreferenceToString(aConfig.mPreference), aConfig.mRloc16); in OutputRoute()
|
D | cli_history.cpp | 1344 … Interpreter::PreferenceToString(info->mPrefix.mPreference), info->mPrefix.mRloc16); in Process() 1433 Interpreter::PreferenceToString(info->mRoute.mPreference), info->mRoute.mRloc16); in Process()
|
D | cli.cpp | 4247 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/ |
D | ncp_base_mtd.cpp | 116 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()
|