Home
last modified time | relevance | path

Searched refs:Prefix (Results 1 – 25 of 53) sorted by relevance

123

/openthread-latest/src/core/border_router/
Drouting_manager.hpp303 Error GetOmrPrefix(Ip6::Prefix &aPrefix) const;
319 Error GetFavoredOmrPrefix(Ip6::Prefix &aPrefix, RoutePreference &aPreference) const;
333 Error GetOnLinkPrefix(Ip6::Prefix &aPrefix) const;
345 Error GetFavoredOnLinkPrefix(Ip6::Prefix &aPrefix) const;
375 Error GetNat64Prefix(Ip6::Prefix &aPrefix);
388 Error GetFavoredNat64Prefix(Ip6::Prefix &aPrefix, RoutePreference &aRoutePreference);
396 …void HandleDiscoverNat64PrefixDone(const Ip6::Prefix &aPrefix) { mNat64PrefixManager.HandleDiscove… in HandleDiscoverNat64PrefixDone()
433 static bool IsValidOmrPrefix(const Ip6::Prefix &aPrefix);
587 … void SetOnLinkPrefix(const Ip6::Prefix &aPrefix) { mOnLinkPrefixManager.SetLocalPrefix(aPrefix); } in SetOnLinkPrefix()
695 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix()
[all …]
Drouting_manager.cpp145 Error RoutingManager::GetOmrPrefix(Ip6::Prefix &aPrefix) const in GetOmrPrefix()
180 Error RoutingManager::GetFavoredOmrPrefix(Ip6::Prefix &aPrefix, RoutePreference &aPreference) const in GetFavoredOmrPrefix()
192 Error RoutingManager::GetOnLinkPrefix(Ip6::Prefix &aPrefix) const in GetOnLinkPrefix()
203 Error RoutingManager::GetFavoredOnLinkPrefix(Ip6::Prefix &aPrefix) const in GetFavoredOnLinkPrefix()
226 Error RoutingManager::GetNat64Prefix(Ip6::Prefix &aPrefix) in GetNat64Prefix()
237 Error RoutingManager::GetFavoredNat64Prefix(Ip6::Prefix &aPrefix, RoutePreference &aRoutePreference) in GetFavoredNat64Prefix()
658 bool RoutingManager::IsValidBrUlaPrefix(const Ip6::Prefix &aBrUlaPrefix) in IsValidBrUlaPrefix()
669 bool RoutingManager::IsValidOmrPrefix(const Ip6::Prefix &aPrefix) in IsValidOmrPrefix()
677 Ip6::Prefix prefix; in IsValidOnLinkPrefix()
685 bool RoutingManager::IsValidOnLinkPrefix(const Ip6::Prefix &aOnLinkPrefix) in IsValidOnLinkPrefix()
[all …]
Dinfra_if.hpp177 void DiscoverNat64PrefixDone(uint32_t aIfIndex, const Ip6::Prefix &aPrefix);
/openthread-latest/src/core/net/
Dip6_address.cpp54 void Prefix::Set(const uint8_t *aPrefix, uint8_t aLength) in Set()
60 bool Prefix::IsLinkLocal(void) const in IsLinkLocal()
66 bool Prefix::IsMulticast(void) const { return (mLength >= 8) && (mPrefix.mFields.m8[0] == 0xff); } in IsMulticast()
68 bool Prefix::IsUniqueLocal(void) const { return (mLength >= 7) && ((mPrefix.mFields.m8[0] & 0xfe) =… in IsUniqueLocal()
70 bool Prefix::IsEqual(const uint8_t *aPrefixBytes, uint8_t aPrefixLength) const in IsEqual()
75 bool Prefix::ContainsPrefix(const Prefix &aSubPrefix) const in ContainsPrefix()
81 bool Prefix::ContainsPrefix(const NetworkPrefix &aSubPrefix) const in ContainsPrefix()
87 void Prefix::Tidy(void) in Tidy()
103 bool Prefix::operator==(const Prefix &aOther) const in operator ==()
108 bool Prefix::operator<(const Prefix &aOther) const in operator <()
[all …]
Dip6_address.hpp90 class Prefix : public otIp6Prefix, public Clearable<Prefix>, public Unequatable<Prefix> class
216 bool ContainsPrefix(const Prefix &aSubPrefix) const;
236 bool operator==(const Prefix &aOther) const;
251 bool operator<(const Prefix &aOther) const;
502 void ApplyPrefix(const Prefix &aPrefix);
523 friend class Prefix;
777 void GetPrefix(uint8_t aLength, Prefix &aPrefix) const { aPrefix.Set(mFields.m8, aLength); } in GetPrefix()
787 bool MatchesPrefix(const Prefix &aPrefix) const;
826 void SetPrefix(const Prefix &aPrefix);
851 void SetMulticastNetworkPrefix(const Prefix &aPrefix) in SetMulticastNetworkPrefix()
[all …]
Dnd6.cpp93 void PrefixInfoOption::SetPrefix(const Prefix &aPrefix) in SetPrefix()
99 void PrefixInfoOption::GetPrefix(Prefix &aPrefix) const { aPrefix.Set(mPrefix.GetBytes(), mPrefixLe… in GetPrefix()
103 return (GetSize() >= sizeof(*this)) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid()
127 void RouteInfoOption::SetPrefix(const Prefix &aPrefix) in SetPrefix()
134 void RouteInfoOption::GetPrefix(Prefix &aPrefix) const { aPrefix.Set(GetPrefixBytes(), mPrefixLengt… in GetPrefix()
138 return (GetSize() >= kMinSize) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid()
277 Error RouterAdvert::TxMessage::AppendPrefixInfoOption(const Prefix &aPrefix, in AppendPrefixInfoOption()
298 Error RouterAdvert::TxMessage::AppendRouteInfoOption(const Prefix &aPrefix, in AppendRouteInfoOption()
Ddhcp6_server.hpp126 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix()
133 Ip6::Prefix &GetPrefix(void) { return mPrefix; } in GetPrefix()
152 …void Set(const Ip6::Prefix &aPrefix, const Ip6::NetworkPrefix &aMeshLocalPrefix, uint8_t aContextI… in Set()
163 Ip6::Prefix mPrefix;
171 void AddPrefixAgent(const Ip6::Prefix &aIp6Prefix, const Lowpan::Context &aContext);
Dnd6.hpp265 void SetPrefix(const Prefix &aPrefix);
272 void GetPrefix(Prefix &aPrefix) const;
376 void SetPrefix(const Prefix &aPrefix);
383 void GetPrefix(Prefix &aPrefix) const;
800 …Error AppendPrefixInfoOption(const Prefix &aPrefix, uint32_t aValidLifetime, uint32_t aPreferredLi…
812 …Error AppendRouteInfoOption(const Prefix &aPrefix, uint32_t aRouteLifetime, RoutePreference aPrefe…
Dnat64_translator.hpp250 void SetNat64Prefix(const Ip6::Prefix &aNat64Prefix);
320 Error GetIp6Prefix(Ip6::Prefix &aPrefix);
376 Ip6::Prefix mNat64Prefix;
Dip4_types.cpp106 OT_ASSERT(Ip6::Prefix::IsValidNat64PrefixLength(aPrefixLength)); in ExtractFromIp6Address()
194 … (Ip6::Prefix::MatchLength(GetBytes(), aOther.GetBytes(), Ip4::Address::kSize) >= mLength); in operator ==()
/openthread-latest/src/core/thread/
Dnetwork_data_local.hpp97 Error RemoveOnMeshPrefix(const Ip6::Prefix &aPrefix) { return RemovePrefix(aPrefix); } in RemoveOnMeshPrefix()
107 bool ContainsOnMeshPrefix(const Ip6::Prefix &aPrefix) const;
128 Error RemoveHasRoutePrefix(const Ip6::Prefix &aPrefix) { return RemovePrefix(aPrefix); } in RemoveHasRoutePrefix()
164 …Error AddPrefix(const Ip6::Prefix &aPrefix, NetworkDataTlv::Type aSubTlvType, uint16_t aFlags, boo…
165 Error RemovePrefix(const Ip6::Prefix &aPrefix);
Dnetwork_data_types.hpp198 const Ip6::Prefix &GetPrefix(void) const { return AsCoreType(&mPrefix); } in GetPrefix()
205 Ip6::Prefix &GetPrefix(void) { return AsCoreType(&mPrefix); } in GetPrefix()
253 const Ip6::Prefix &GetPrefix(void) const { return AsCoreType(&mPrefix); } in GetPrefix()
260 Ip6::Prefix &GetPrefix(void) { return AsCoreType(&mPrefix); } in GetPrefix()
267 void SetPrefix(const Ip6::Prefix &aPrefix) { mPrefix = aPrefix; } in SetPrefix()
305 const Ip6::Prefix &GetPrefix(void) const { return AsCoreType(&mPrefix); } in GetPrefix()
308 Ip6::Prefix &GetPrefix(void) { return AsCoreType(&mPrefix); } in GetPrefix()
Dnetwork_data_publisher.hpp293 Error ReplacePublishedExternalRoute(const Ip6::Prefix &aPrefix,
306 bool IsPrefixAdded(const Ip6::Prefix &aPrefix) const;
316 Error UnpublishPrefix(const Ip6::Prefix &aPrefix);
463 bool Matches(const Ip6::Prefix &aPrefix) const { return mPrefix == aPrefix; } in Matches()
484 …void Publish(const Ip6::Prefix &aPrefix, uint16_t aNewFlags, Type aNewType, Requester aRequester);
495 Ip6::Prefix mPrefix;
505 PrefixEntry *FindOrAllocatePrefixEntry(const Ip6::Prefix &aPrefix, Requester aRequester);
506 PrefixEntry *FindMatchingPrefixEntry(const Ip6::Prefix &aPrefix);
507 const PrefixEntry *FindMatchingPrefixEntry(const Ip6::Prefix &aPrefix) const;
509 void NotifyPrefixEntryChange(Event aEvent, const Ip6::Prefix &aPrefix) const;
Dnetwork_data_tlvs.hpp594 memcpy(GetPrefix(), aPrefix, Ip6::Prefix::SizeForLength(aPrefixLength)); in Init()
604 void Init(uint8_t aDomainId, const Ip6::Prefix aPrefix) in Init()
618 …(GetLength() >= Ip6::Prefix::SizeForLength(mPrefixLength) + sizeof(*this) - sizeof(NetworkDataTlv)… in IsValid()
619 (Ip6::Prefix::SizeForLength(mPrefixLength) <= sizeof(Ip6::Address))); in IsValid()
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()
710 …return GetLength() - (sizeof(*this) - sizeof(NetworkDataTlv) + Ip6::Prefix::SizeForLength(mPrefixL… in GetSubTlvsLength()
[all …]
Dnetwork_data_publisher.cpp93 Error Publisher::ReplacePublishedExternalRoute(const Ip6::Prefix &aPrefix, in ReplacePublishedExternalRoute()
112 bool Publisher::IsPrefixAdded(const Ip6::Prefix &aPrefix) const in IsPrefixAdded()
126 Error Publisher::UnpublishPrefix(const Ip6::Prefix &aPrefix) in UnpublishPrefix()
140 Publisher::PrefixEntry *Publisher::FindOrAllocatePrefixEntry(const Ip6::Prefix &aPrefix, Requester … in FindOrAllocatePrefixEntry()
186 Publisher::PrefixEntry *Publisher::FindMatchingPrefixEntry(const Ip6::Prefix &aPrefix) in FindMatchingPrefixEntry()
191 const Publisher::PrefixEntry *Publisher::FindMatchingPrefixEntry(const Ip6::Prefix &aPrefix) const in FindMatchingPrefixEntry()
212 void Publisher::NotifyPrefixEntryChange(Event aEvent, const Ip6::Prefix &aPrefix) const in NotifyPrefixEntryChange()
799 void Publisher::PrefixEntry::Publish(const Ip6::Prefix &aPrefix, in Publish()
Dnetwork_data_local.cpp60 bool Local::ContainsOnMeshPrefix(const Ip6::Prefix &aPrefix) const in ContainsOnMeshPrefix()
86 Error Local::AddPrefix(const Ip6::Prefix &aPrefix, NetworkDataTlv::Type aSubTlvType, uint16_t aFlag… in AddPrefix()
140 Error Local::RemovePrefix(const Ip6::Prefix &aPrefix) in RemovePrefix()
Dnetwork_data.hpp315 Error FindDomainIdFor(const Ip6::Prefix &aPrefix, uint8_t &aDomainId) const;
416 const PrefixTlv *FindPrefix(const Ip6::Prefix &aPrefix) const in FindPrefix()
649 …PrefixTlv *FindPrefix(const Ip6::Prefix &aPrefix) { return FindPrefix(aPrefix.GetBytes(), aPrefix.… in FindPrefix()
/openthread-latest/tests/unit/
Dtest_routing_manager.cpp142 DeprecatingPrefix(const Ip6::Prefix &aPrefix, uint32_t aLifetime) in DeprecatingPrefix()
148 bool Matches(const Ip6::Prefix &aPrefix) const { return mPrefix == aPrefix; } in Matches()
150 Ip6::Prefix mPrefix; // Old on-link prefix being deprecated.
192 explicit RioPrefix(const Ip6::Prefix &aPrefix) in RioPrefix()
201 Ip6::Prefix mPrefix; // The RIO prefix.
209 void Add(const Ip6::Prefix &aPrefix) { SuccessOrQuit(PushBack(RioPrefix(aPrefix))); } in Add()
240 void DiscoverNat64Prefix(const Ip6::Prefix &aPrefix);
436 Array<Ip6::Prefix, kMaxPrefixes> pioPrefixes; in ValidateRouterAdvert()
437 Array<Ip6::Prefix, kMaxPrefixes> rioPrefixes; in ValidateRouterAdvert()
479 Ip6::Prefix prefix; in ValidateRouterAdvert()
[all …]
Dtest_ip_address.cpp178 Ip6::Prefix prefix; in TestIp6AddressFromString()
201 Ip6::Prefix prefix; in TestIp6PrefixFromString()
396 Ip6::Prefix ip6Prefix; in TestIp6AddressSetPrefix()
439 Ip6::Prefix PrefixFrom(const char *aAddressString, uint8_t aPrefixLength) in PrefixFrom()
441 Ip6::Prefix prefix; in PrefixFrom()
458 Ip6::Prefix prefix; in TestIp6Prefix()
467 for (uint8_t prefixLength = 1; prefixLength <= Ip6::Prefix::kMaxLength; prefixLength++) in TestIp6Prefix()
485 Ip6::Prefix subPrefix; in TestIp6Prefix()
507 Ip6::Prefix prefix2; in TestIp6Prefix()
531 Ip6::Prefix mPrefixA; in TestIp6Prefix()
[all …]
/openthread-latest/src/core/common/
Dsettings.hpp536 typedef Ip6::Prefix ValueType; ///< The associated value type.
563 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix()
570 void SetPrefix(const Ip6::Prefix &aPrefix) { mPrefix = aPrefix; } in SetPrefix()
589 Ip6::Prefix mPrefix;
731 static void LogPrefix(Action aAction, Key aKey, const Ip6::Prefix &aPrefix);
1077 Error RemoveBrOnLinkPrefix(const Ip6::Prefix &aPrefix);
/openthread-latest/src/core/backbone_router/
Dbbr_leader.hpp156 const Ip6::Prefix *GetDomainPrefix(void) const in GetDomainPrefix()
191 Ip6::Prefix mDomainPrefix; ///< Domain Prefix in the Thread network.
/openthread-latest/src/cli/
DREADME_DATASET.md25 - Mesh-Local Prefix
53 Mesh Local Prefix: fdf1:f1ad:d079:7dc0::/64
113 Mesh Local Prefix: fdf1:f1ad:d079:7dc0::/64
165 Mesh Local Prefix: fd7d:da74:df5e:80c::/64
190 Mesh Local Prefix: fd7d:da74:df5e:80c::/64
224 Mesh Local Prefix: fd7d:da74:df5e:80c::/64
250 Mesh Local Prefix: fd7d:da74:df5e:80c::/64
269 Mesh Local Prefix: fd7d:da74:df5e:80c::/64
360 Mesh Local Prefix: fdf1:f1ad:d079:7dc0::/64
635 Mesh Local Prefix: fd46:c1b9:e159:5574::/64
[all …]
DREADME_COMMISSIONING.md23 Mesh Local Prefix: fd3d:b50b:f96d:722d::/64
109 Mesh Local Prefix: fd3d:b50b:f96d:722d::/64
/openthread-latest/tests/scripts/thread-cert/
Dtest_network_data.py406 prefix = network_data.Prefix(
424 prefix = network_data.Prefix(
442 prefix_obj = network_data.Prefix(
460 prefix_obj = network_data.Prefix(
478 prefix_obj = network_data.Prefix(
530 self.assertTrue(isinstance(actual_prefix, network_data.Prefix))
/openthread-latest/third_party/mbedtls/repo/pkgconfig/
DCMakeLists.txt7 # Prefix with something that won't clash with newer versions of CMAKE.

123