Searched refs:dstPrefix (Results 1 – 1 of 1) sorted by relevance
722 PrefixTlv *dstPrefix = FindPrefix(aPrefix.GetPrefix(), aPrefix.GetPrefixLength()); in AddPrefix() local724 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()