Lines Matching refs:newAddress
308 SlaacAddress *newAddress = nullptr; in AddAddressFor() local
320 newAddress = &slaacAddr; in AddAddressFor()
326 … if ((newAddress == nullptr) || slaacAddr.GetExpirationTime() < newAddress->GetExpirationTime()) in AddAddressFor()
328 newAddress = &slaacAddr; in AddAddressFor()
333 if (newAddress == nullptr) in AddAddressFor()
339 if (newAddress->IsInUse()) in AddAddressFor()
341 RemoveAddress(*newAddress); in AddAddressFor()
344 newAddress->MarkAsNotDeprecating(); in AddAddressFor()
345 …newAddress->InitAsSlaacOrigin(aConfig.mOnMesh ? aConfig.GetPrefix().mLength : 128, aConfig.mPrefer… in AddAddressFor()
346 newAddress->GetAddress().SetPrefix(aConfig.GetPrefix()); in AddAddressFor()
349 newAddress->SetDomainId(domainId); in AddAddressFor()
351 IgnoreError(GenerateIid(*newAddress, dadCounter)); in AddAddressFor()
353 newAddress->SetContextId(SlaacAddress::kInvalidContextId); in AddAddressFor()
354 UpdateContextIdFor(*newAddress); in AddAddressFor()
356 LogAddress(kAdding, *newAddress); in AddAddressFor()
358 Get<ThreadNetif>().AddUnicastAddress(*newAddress); in AddAddressFor()