Home
last modified time | relevance | path

Searched refs:prefixTlv (Results 1 – 5 of 5) sorted by relevance

/openthread-3.4.0/src/core/thread/
Dnetwork_data_leader.cpp124 const PrefixTlv *prefixTlv; in FindNextMatchingPrefixTlv() local
127 while ((prefixTlv = tlvIterator.Iterate<PrefixTlv>()) != nullptr) in FindNextMatchingPrefixTlv()
129 if (aAddress.MatchesPrefix(prefixTlv->GetPrefix(), prefixTlv->GetPrefixLength())) in FindNextMatchingPrefixTlv()
135 return prefixTlv; in FindNextMatchingPrefixTlv()
140 const PrefixTlv *prefixTlv = nullptr; in GetContext() local
150 while ((prefixTlv = FindNextMatchingPrefixTlv(aAddress, prefixTlv)) != nullptr) in GetContext()
152 contextTlv = prefixTlv->FindSubTlv<ContextTlv>(); in GetContext()
159 if (prefixTlv->GetPrefixLength() > aContext.mPrefix.GetLength()) in GetContext()
161 prefixTlv->CopyPrefixTo(aContext.mPrefix); in GetContext()
175 const PrefixTlv *prefixTlv; in GetContext() local
[all …]
Dnetwork_data_local.cpp97 PrefixTlv *prefixTlv; in AddPrefix() local
105 prefixTlv = As<PrefixTlv>(AppendTlv(sizeof(PrefixTlv) + aPrefix.GetBytesSize() + subTlvLength)); in AddPrefix()
106 VerifyOrExit(prefixTlv != nullptr, error = kErrorNoBufs); in AddPrefix()
108 prefixTlv->Init(0, aPrefix); in AddPrefix()
109 prefixTlv->SetSubTlvsLength(subTlvLength); in AddPrefix()
113 BorderRouterTlv *brTlv = As<BorderRouterTlv>(prefixTlv->GetSubTlvs()); in AddPrefix()
121 HasRouteTlv *hasRouteTlv = As<HasRouteTlv>(prefixTlv->GetSubTlvs()); in AddPrefix()
130 prefixTlv->SetStable(); in AddPrefix()
131 prefixTlv->GetSubTlvs()->SetStable(); in AddPrefix()
Dnetwork_data_publisher.cpp970 const PrefixTlv *prefixTlv; in CountOnMeshPrefixEntries() local
975 prefixTlv = Get<Leader>().FindPrefix(mPrefix); in CountOnMeshPrefixEntries()
976 VerifyOrExit(prefixTlv != nullptr); in CountOnMeshPrefixEntries()
978 brSubTlv = prefixTlv->FindSubTlv<BorderRouterTlv>(/* aStable */ true); in CountOnMeshPrefixEntries()
1017 const PrefixTlv *prefixTlv; in CountExternalRouteEntries() local
1022 prefixTlv = Get<Leader>().FindPrefix(mPrefix); in CountExternalRouteEntries()
1023 VerifyOrExit(prefixTlv != nullptr); in CountExternalRouteEntries()
1025 hrSubTlv = prefixTlv->FindSubTlv<HasRouteTlv>(/* aStable */ true); in CountExternalRouteEntries()
Dnetwork_data.cpp197 const PrefixTlv *prefixTlv = As<PrefixTlv>(cur); in Iterate() local
219 … aConfig.mOnMeshPrefix->SetFrom(*prefixTlv, *borderRouter, *borderRouterEntry); in Iterate()
246 … aConfig.mExternalRoute->SetFrom(GetInstance(), *prefixTlv, *hasRoute, *hasRouteEntry); in Iterate()
269 aConfig.mLowpanContext->SetFrom(*prefixTlv, *contextTlv); in Iterate()
555 const PrefixTlv *prefixTlv; in FindPrefix() local
557 while ((prefixTlv = tlvIterator.Iterate<PrefixTlv>()) != nullptr) in FindPrefix()
559 if (prefixTlv->IsEqual(aPrefix, aPrefixLength)) in FindPrefix()
565 return prefixTlv; in FindPrefix()
Dnetwork_data_leader_ftd.cpp1280 PrefixTlv *prefixTlv; in ContainsOmrPrefix() local
1285 prefixTlv = FindPrefix(aPrefix); in ContainsOmrPrefix()
1286 VerifyOrExit(prefixTlv != nullptr); in ContainsOmrPrefix()
1290 …const BorderRouterTlv *borderRouter = prefixTlv->FindSubTlv<BorderRouterTlv>(/* aStable */ (i == 0… in ContainsOmrPrefix()
1302 config.SetFrom(*prefixTlv, *borderRouter, *entry); in ContainsOmrPrefix()