Home
last modified time | relevance | path

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

/openthread-3.4.0/src/core/thread/
Dnetwork_data_leader_ftd.cpp722 PrefixTlv *dstPrefix = FindPrefix(aPrefix.GetPrefix(), aPrefix.GetPrefixLength()); in AddPrefix() local
724 if (dstPrefix == nullptr) in AddPrefix()
726 dstPrefix = As<PrefixTlv>(AppendTlv(PrefixTlv::CalculateSize(aPrefix.GetPrefixLength()))); in AddPrefix()
727 VerifyOrExit(dstPrefix != nullptr, error = kErrorNoBufs); in AddPrefix()
729 dstPrefix->Init(aPrefix.GetDomainId(), aPrefix.GetPrefixLength(), aPrefix.GetPrefix()); in AddPrefix()
737 SuccessOrExit(error = AddHasRoute(*As<HasRouteTlv>(subCur), *dstPrefix, aChangedFlags)); in AddPrefix()
741 … SuccessOrExit(error = AddBorderRouter(*As<BorderRouterTlv>(subCur), *dstPrefix, aChangedFlags)); in AddPrefix()
750 if (dstPrefix != nullptr) in AddPrefix()
758 IgnoreReturnValue(UpdatePrefix(*dstPrefix)); in AddPrefix()