Home
last modified time | relevance | path

Searched refs:GetPrefix (Results 1 – 25 of 27) sorted by relevance

12

/openthread-latest/src/core/thread/
Dnetwork_data_types.cpp67 VerifyOrExit(GetPrefix().GetLength() == Ip6::NetworkPrefix::kLength); in IsValid()
71 VerifyOrExit(IsPrefixValid(aInstance, GetPrefix())); in IsValid()
72 VerifyOrExit(GetPrefix().GetLength() > 0); in IsValid()
139 aPrefixTlv.CopyPrefixTo(GetPrefix()); in SetFrom()
165 VerifyOrExit(GetPrefix().IsValidNat64()); in IsValid()
169 VerifyOrExit(IsPrefixValid(aInstance, GetPrefix())); in IsValid()
205 aPrefixTlv.CopyPrefixTo(GetPrefix()); in SetFrom()
261 aPrefixTlv.CopyPrefixTo(GetPrefix()); in SetFrom()
262 GetPrefix().SetLength(aContextTlv.GetContextLength()); in SetFrom()
Dnetwork_data_types.hpp198 const Ip6::Prefix &GetPrefix(void) const { return AsCoreType(&mPrefix); } in GetPrefix() function in ot::NetworkData::OnMeshPrefixConfig
205 Ip6::Prefix &GetPrefix(void) { return AsCoreType(&mPrefix); } in GetPrefix() function in ot::NetworkData::OnMeshPrefixConfig
253 const Ip6::Prefix &GetPrefix(void) const { return AsCoreType(&mPrefix); } in GetPrefix() function in ot::NetworkData::ExternalRouteConfig
260 Ip6::Prefix &GetPrefix(void) { return AsCoreType(&mPrefix); } in GetPrefix() function in ot::NetworkData::ExternalRouteConfig
305 const Ip6::Prefix &GetPrefix(void) const { return AsCoreType(&mPrefix); } in GetPrefix() function in ot::NetworkData::LowpanContextInfo
308 Ip6::Prefix &GetPrefix(void) { return AsCoreType(&mPrefix); } in GetPrefix() function in ot::NetworkData::LowpanContextInfo
Dnetwork_data_tlvs.hpp594 memcpy(GetPrefix(), aPrefix, Ip6::Prefix::SizeForLength(aPrefixLength)); in Init()
641 uint8_t *GetPrefix(void) { return reinterpret_cast<uint8_t *>(this) + sizeof(*this); } in GetPrefix() function in ot::NetworkData::PrefixTlv
648 …const uint8_t *GetPrefix(void) const { return reinterpret_cast<const uint8_t *>(this) + sizeof(*th… in GetPrefix() function in ot::NetworkData::PrefixTlv
655 void CopyPrefixTo(Ip6::Prefix &aPrefix) const { aPrefix.Set(GetPrefix(), GetPrefixLength()); } in CopyPrefixTo()
665 …bool IsEqual(Ip6::Prefix &aPrefix) const { return aPrefix.IsEqual(GetPrefix(), GetPrefixLength());… in IsEqual()
679 … (Ip6::Prefix::MatchLength(GetPrefix(), aPrefix, Ip6::Prefix::SizeForLength(aPrefixLength)) >= in IsEqual()
690 …return reinterpret_cast<NetworkDataTlv *>(GetPrefix() + Ip6::Prefix::SizeForLength(mPrefixLength)); in GetSubTlvs()
700 …return reinterpret_cast<const NetworkDataTlv *>(GetPrefix() + Ip6::Prefix::SizeForLength(mPrefixLe… in GetSubTlvs()
Dnetwork_data_leader.cpp104 if (!config.mNat64 || !config.GetPrefix().IsValidNat64()) in GetPreferredNat64Prefix()
110 (config.mPreference == aConfig.mPreference && config.GetPrefix() < aConfig.GetPrefix())) in GetPreferredNat64Prefix()
128 …if (config.mNat64 && config.GetPrefix().IsValidNat64() && aAddress.MatchesPrefix(config.GetPrefix(… in IsNat64()
151 if (aAddress.MatchesPrefix(prefixTlv->GetPrefix(), prefixTlv->GetPrefixLength())) in FindNextMatchingPrefixTlv()
Dnetwork_data_publisher.cpp79 entry = FindOrAllocatePrefixEntry(aConfig.GetPrefix(), aRequester); in PublishOnMeshPrefix()
90 return ReplacePublishedExternalRoute(aConfig.GetPrefix(), aConfig, aRequester); in PublishExternalRoute()
787 LogInfo("Publishing OnMeshPrefix %s", aConfig.GetPrefix().ToString().AsCString()); in Publish()
789 Publish(aConfig.GetPrefix(), aConfig.ConvertToTlvFlags(), kTypeOnMeshPrefix, aRequester); in Publish()
794 LogInfo("Publishing ExternalRoute %s", aConfig.GetPrefix().ToString().AsCString()); in Publish()
796 Publish(aConfig.GetPrefix(), aConfig.ConvertToTlvFlags(), kTypeExternalRoute, aRequester); in Publish()
Dnetwork_data_local.cpp54 …AddPrefix(aConfig.GetPrefix(), NetworkDataTlv::kTypeBorderRouter, aConfig.ConvertToTlvFlags(), aCo… in AddOnMeshPrefix()
80 …error = AddPrefix(aConfig.GetPrefix(), NetworkDataTlv::kTypeHasRoute, aConfig.ConvertToTlvFlags(),… in AddHasRoutePrefix()
Dnetwork_data_leader_ftd.cpp381 …VerifyOrExit(validatedSegment.FindPrefix(prefix->GetPrefix(), prefix->GetPrefixLength()) == nullpt… in Validate()
753 PrefixTlv *dstPrefix = FindPrefix(aPrefix.GetPrefix(), aPrefix.GetPrefixLength()); in AddPrefix()
760 dstPrefix->Init(aPrefix.GetDomainId(), aPrefix.GetPrefixLength(), aPrefix.GetPrefix()); in AddPrefix()
1045 aExcludeNetworkData.FindPrefix(prefix->GetPrefix(), prefix->GetPrefixLength()); in RemoveRloc()
/openthread-latest/src/core/border_router/
Drouting_manager.cpp185 aPrefix = mOmrPrefixManager.GetFavoredPrefix().GetPrefix(); in GetFavoredOmrPrefix()
665 return IsValidOmrPrefix(aOnMeshPrefixConfig.GetPrefix()) && aOnMeshPrefixConfig.mOnMesh && in IsValidOmrPrefix()
679 aPio.GetPrefix(prefix); in IsValidOnLinkPrefix()
799 … if (routeConfig.mStable && RoutePublisher::GetUlaPrefix().ContainsPrefix(routeConfig.GetPrefix())) in NetworkDataContainsUlaRoute()
827 if (IsValidOmrPrefix(prefixConfig) && prefixConfig.GetPrefix().IsUniqueLocal() && in CheckReachabilityToSendIcmpError()
828 aIp6Header.GetSource().MatchesPrefix(prefixConfig.GetPrefix())) in CheckReachabilityToSendIcmpError()
931 aPio.GetPrefix(mPrefix); in SetFrom()
987 aEntry.mPrefix = GetPrefix(); in CopyInfoTo()
1009 isFavored = GetPrefix() < aPrefix; in IsFavoredOver()
1020 aRio.GetPrefix(mPrefix); in SetFrom()
[all …]
Drouting_manager.hpp695 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix() function in ot::BorderRouter::RoutingManager::LifetimedPrefix
696 Ip6::Prefix &GetPrefix(void) { return mPrefix; } in GetPrefix() function in ot::BorderRouter::RoutingManager::LifetimedPrefix
1085 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix() function in ot::BorderRouter::RoutingManager::OmrPrefix
1473 bool HasPrefix(void) const { return IsValidOmrPrefix(mPrefix.GetPrefix()); } in HasPrefix()
1474 const Ip6::Prefix &GetPrefix(void) const { return mPrefix.GetPrefix(); } in GetPrefix() function in ot::BorderRouter::RoutingManager::PdPrefixManager
1490 bool IsEmpty(void) const { return (GetPrefix().GetLength() == 0); } in IsEmpty()
/openthread-latest/src/core/backbone_router/
Dbbr_local.cpp56 mDomainPrefixConfig.GetPrefix().SetLength(0); in Local()
311 VerifyOrExit(mDomainPrefixConfig.GetPrefix().GetLength() > 0, error = kErrorNotFound); in GetDomainPrefix()
324 VerifyOrExit(mDomainPrefixConfig.GetPrefix() == aPrefix, error = kErrorNotFound); in RemoveDomainPrefix()
331 mDomainPrefixConfig.GetPrefix().SetLength(0); in RemoveDomainPrefix()
406 error = Get<NetworkData::Local>().RemoveOnMeshPrefix(mDomainPrefixConfig.GetPrefix()); in RemoveDomainPrefixFromNetworkData()
434 if (mDomainPrefixConfig.GetPrefix().GetLength() > 0) in AddDomainPrefixToNetworkData()
465 …LogInfo("%s Domain Prefix: %s, %s", ActionToString(aAction), mDomainPrefixConfig.GetPrefix().ToStr… in LogDomainPrefix()
Dbbr_leader.cpp247 else if (config.GetPrefix() == mDomainPrefix) in UpdateDomainPrefixConfig()
254 mDomainPrefix = config.GetPrefix(); in UpdateDomainPrefixConfig()
/openthread-latest/src/core/utils/
Dslaac_address.cpp121 …return aConfig.mSlaac && !aConfig.mDp && (aConfig.GetPrefix().GetLength() == Ip6::NetworkPrefix::k… in IsSlaac()
126 return (mFilter != nullptr) ? mFilter(&GetInstance(), &aConfig.GetPrefix()) : false; in IsFiltered()
163 (aAddr.GetAddress().MatchesPrefix(aConfig.GetPrefix()))); in DoesConfigMatchNetifAddr()
345 …newAddress->InitAsSlaacOrigin(aConfig.mOnMesh ? aConfig.GetPrefix().mLength : 128, aConfig.mPrefer… in AddAddressFor()
346 newAddress->GetAddress().SetPrefix(aConfig.GetPrefix()); in AddAddressFor()
348 IgnoreError(Get<NetworkData::Leader>().FindDomainIdFor(aConfig.GetPrefix(), domainId)); in AddAddressFor()
/openthread-latest/src/core/net/
Ddhcp6_server.hpp92 …l IsPrefixMatch(const Ip6::Address &aAddress) const { return aAddress.MatchesPrefix(GetPrefix()); } in IsPrefixMatch()
126 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix() function in ot::Dhcp6::Server::PrefixAgent
133 Ip6::Prefix &GetPrefix(void) { return mPrefix; } in GetPrefix() function in ot::Dhcp6::Server::PrefixAgent
Dnd6.cpp99 void PrefixInfoOption::GetPrefix(Prefix &aPrefix) const { aPrefix.Set(mPrefix.GetBytes(), mPrefixLe… in GetPrefix() function in ot::Ip6::Nd::PrefixInfoOption
134 void RouteInfoOption::GetPrefix(Prefix &aPrefix) const { aPrefix.Set(GetPrefixBytes(), mPrefixLengt… in GetPrefix() function in ot::Ip6::Nd::RouteInfoOption
Dip6_address.hpp766 const NetworkPrefix &GetPrefix(void) const in GetPrefix() function in ot::Ip6::Address
777 void GetPrefix(uint8_t aLength, Prefix &aPrefix) const { aPrefix.Set(mFields.m8, aLength); } in GetPrefix() function in ot::Ip6::Address
Dnd6.hpp272 void GetPrefix(Prefix &aPrefix) const;
383 void GetPrefix(Prefix &aPrefix) const;
Ddhcp6_server.cpp113 AddPrefixAgent(config.GetPrefix(), lowpanContext); in UpdateService()
153 else if (prefixAgent.GetPrefix() == aIp6Prefix) in AddPrefixAgent()
Ddhcp6_client.cpp85 if (MatchNetifAddressWithPrefix(idAssociation.mNetifAddress, config.GetPrefix())) in UpdateAddresses()
124 else if (MatchNetifAddressWithPrefix(ia.mNetifAddress, config.GetPrefix())) in UpdateAddresses()
Dip6.cpp1419 … if (!aHeader.GetSource().MatchesPrefix(aHeader.GetDestination().GetPrefix().m8, kPrefixLength)) in UpdateBorderRoutingCounters()
1438 … if (!aHeader.GetSource().MatchesPrefix(aHeader.GetDestination().GetPrefix().m8, kPrefixLength)) in UpdateBorderRoutingCounters()
/openthread-latest/src/core/common/
Dsettings.cpp339 if (brPrefix.GetPrefix() == aBrOnLinkPrefix.GetPrefix()) in AddOrUpdateBrOnLinkPrefix()
370 if (brPrefix.GetPrefix() == aPrefix) in RemoveBrOnLinkPrefix()
398 GetPrefix().ToString().AsCString(), ToUlong(GetLifetime())); in Log()
Dsettings.hpp563 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix() function in ot::SettingsBase::BrOnLinkPrefix
/openthread-latest/src/core/api/
Dnat64_api.cpp159 …AsCoreType(aIp6Address).SynthesizeFromIp4Address(nat64Prefix.GetPrefix(), AsCoreType(aIp4Address)); in otNat64SynthesizeIp6Address()
Dip6_api.cpp217 AsCoreType(aAddress).GetPrefix(aLength, AsCoreType(aPrefix)); in otIp6GetPrefix()
/openthread-latest/tests/unit/
Dtest_routing_manager.cpp483 pio.GetPrefix(prefix); in ValidateRouterAdvert()
528 rio.GetPrefix(prefix); in ValidateRouterAdvert()
596 pio.GetPrefix(prefix); in LogRouterAdvert()
609 rio.GetPrefix(prefix); in LogRouterAdvert()
704 VerifyOrQuit(prefixConfig.GetPrefix() == aOmrPrefix); in VerifyOmrPrefixInNetData()
781 if (!routeConfig.mNat64 || !routeConfig.GetPrefix().IsValidNat64()) in VerifyNat64PrefixInNetData()
786 Log(" nat64 prefix:%s, prf:%s", routeConfig.GetPrefix().ToString().AsCString(), in VerifyNat64PrefixInNetData()
789 VerifyOrQuit(routeConfig.GetPrefix() == aNat64Prefix); in VerifyNat64PrefixInNetData()
/openthread-latest/src/posix/platform/
Dmulticast_routing.cpp314 …VerifyOrExit(aSrcAddr.GetPrefix() != AsCoreType(otThreadGetMeshLocalPrefix(gInstance)), error = OT… in AddMulticastForwardingCache()

12