/openthread-latest/src/core/thread/ |
D | network_data_types.cpp | 67 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()
|
D | network_data_types.hpp | 198 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
|
D | network_data_tlvs.hpp | 594 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()
|
D | network_data_leader.cpp | 104 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()
|
D | network_data_publisher.cpp | 79 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()
|
D | network_data_local.cpp | 54 …AddPrefix(aConfig.GetPrefix(), NetworkDataTlv::kTypeBorderRouter, aConfig.ConvertToTlvFlags(), aCo… in AddOnMeshPrefix() 80 …error = AddPrefix(aConfig.GetPrefix(), NetworkDataTlv::kTypeHasRoute, aConfig.ConvertToTlvFlags(),… in AddHasRoutePrefix()
|
D | network_data_leader_ftd.cpp | 381 …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/ |
D | routing_manager.cpp | 185 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 …]
|
D | routing_manager.hpp | 695 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/ |
D | bbr_local.cpp | 56 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()
|
D | bbr_leader.cpp | 247 else if (config.GetPrefix() == mDomainPrefix) in UpdateDomainPrefixConfig() 254 mDomainPrefix = config.GetPrefix(); in UpdateDomainPrefixConfig()
|
/openthread-latest/src/core/utils/ |
D | slaac_address.cpp | 121 …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/ |
D | dhcp6_server.hpp | 92 …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
|
D | nd6.cpp | 99 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
|
D | ip6_address.hpp | 766 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
|
D | nd6.hpp | 272 void GetPrefix(Prefix &aPrefix) const; 383 void GetPrefix(Prefix &aPrefix) const;
|
D | dhcp6_server.cpp | 113 AddPrefixAgent(config.GetPrefix(), lowpanContext); in UpdateService() 153 else if (prefixAgent.GetPrefix() == aIp6Prefix) in AddPrefixAgent()
|
D | dhcp6_client.cpp | 85 if (MatchNetifAddressWithPrefix(idAssociation.mNetifAddress, config.GetPrefix())) in UpdateAddresses() 124 else if (MatchNetifAddressWithPrefix(ia.mNetifAddress, config.GetPrefix())) in UpdateAddresses()
|
D | ip6.cpp | 1419 … 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/ |
D | settings.cpp | 339 if (brPrefix.GetPrefix() == aBrOnLinkPrefix.GetPrefix()) in AddOrUpdateBrOnLinkPrefix() 370 if (brPrefix.GetPrefix() == aPrefix) in RemoveBrOnLinkPrefix() 398 GetPrefix().ToString().AsCString(), ToUlong(GetLifetime())); in Log()
|
D | settings.hpp | 563 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix() function in ot::SettingsBase::BrOnLinkPrefix
|
/openthread-latest/src/core/api/ |
D | nat64_api.cpp | 159 …AsCoreType(aIp6Address).SynthesizeFromIp4Address(nat64Prefix.GetPrefix(), AsCoreType(aIp4Address)); in otNat64SynthesizeIp6Address()
|
D | ip6_api.cpp | 217 AsCoreType(aAddress).GetPrefix(aLength, AsCoreType(aPrefix)); in otIp6GetPrefix()
|
/openthread-latest/tests/unit/ |
D | test_routing_manager.cpp | 483 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/ |
D | multicast_routing.cpp | 314 …VerifyOrExit(aSrcAddr.GetPrefix() != AsCoreType(otThreadGetMeshLocalPrefix(gInstance)), error = OT… in AddMulticastForwardingCache()
|