Home
last modified time | relevance | path

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

/openthread-latest/src/core/thread/
Dnetwork_data_leader.cpp161 const PrefixTlv *prefixTlv; in FindNextMatchingPrefixTlv() local
164 while ((prefixTlv = tlvIterator.Iterate<PrefixTlv>()) != nullptr) in FindNextMatchingPrefixTlv()
166 if (aAddress.MatchesPrefix(prefixTlv->GetPrefix(), prefixTlv->GetPrefixLength())) in FindNextMatchingPrefixTlv()
172 return prefixTlv; in FindNextMatchingPrefixTlv()
177 const PrefixTlv *prefixTlv = nullptr; in GetContext() local
187 while ((prefixTlv = FindNextMatchingPrefixTlv(aAddress, prefixTlv)) != nullptr) in GetContext()
189 contextTlv = prefixTlv->FindSubTlv<ContextTlv>(); in GetContext()
196 if (prefixTlv->GetPrefixLength() > aContext.mPrefix.GetLength()) in GetContext()
198 prefixTlv->CopyPrefixTo(aContext.mPrefix); in GetContext()
211 const PrefixTlv *prefixTlv; in FindPrefixTlvForContextId() 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.cpp200 const PrefixTlv *prefixTlv = As<PrefixTlv>(cur); in Iterate() local
222 … aConfig.mOnMeshPrefix->SetFrom(*prefixTlv, *borderRouter, *borderRouterEntry); in Iterate()
249 … aConfig.mExternalRoute->SetFrom(GetInstance(), *prefixTlv, *hasRoute, *hasRouteEntry); in Iterate()
272 aConfig.mLowpanContext->SetFrom(*prefixTlv, *contextTlv); in Iterate()
411 const PrefixTlv *prefixTlv; in FindPrefix() local
413 while ((prefixTlv = tlvIterator.Iterate<PrefixTlv>()) != nullptr) in FindPrefix()
415 if (prefixTlv->IsEqual(aPrefix, aPrefixLength)) in FindPrefix()
421 return prefixTlv; in FindPrefix()
600 const PrefixTlv *prefixTlv = FindPrefix(aPrefix); in FindDomainIdFor() local
602 VerifyOrExit(prefixTlv != nullptr, error = kErrorNotFound); in FindDomainIdFor()
[all …]
Dnetwork_data_publisher.cpp952 const PrefixTlv *prefixTlv; in CountOnMeshPrefixEntries() local
957 prefixTlv = Get<Leader>().FindPrefix(mPrefix); in CountOnMeshPrefixEntries()
958 VerifyOrExit(prefixTlv != nullptr); in CountOnMeshPrefixEntries()
960 brSubTlv = prefixTlv->FindSubTlv<BorderRouterTlv>(/* aStable */ true); in CountOnMeshPrefixEntries()
999 const PrefixTlv *prefixTlv; in CountExternalRouteEntries() local
1004 prefixTlv = Get<Leader>().FindPrefix(mPrefix); in CountExternalRouteEntries()
1005 VerifyOrExit(prefixTlv != nullptr); in CountExternalRouteEntries()
1007 hrSubTlv = prefixTlv->FindSubTlv<HasRouteTlv>(/* aStable */ true); in CountExternalRouteEntries()
Dnetwork_data_leader_ftd.cpp217 const PrefixTlv *prefixTlv; in LookupRouteForAgentAloc() local
220 prefixTlv = FindPrefixTlvForContextId(aContextId, contextTlv); in LookupRouteForAgentAloc()
221 VerifyOrExit(prefixTlv != nullptr); in LookupRouteForAgentAloc()
223 error = LookupRouteIn(*prefixTlv, aEntryChecker, aRloc16); in LookupRouteForAgentAloc()