Lines Matching refs:entry

262     for (const MulticastAddress *entry = aStart; entry != aEnd; entry = entry->GetNext())  in SignalMulticastAddressesChange()  local
264 SignalMulticastAddressChange(aEvent, *entry, kOriginThread); in SignalMulticastAddressesChange()
295 ExternalMulticastAddress *entry; in SubscribeExternalMulticast() local
309 entry = mExtMulticastAddressPool.Allocate(); in SubscribeExternalMulticast()
310 VerifyOrExit(entry != nullptr, error = kErrorNoBufs); in SubscribeExternalMulticast()
312 entry->mAddress = aAddress; in SubscribeExternalMulticast()
314 entry->mMlrState = kMlrStateToRegister; in SubscribeExternalMulticast()
316 mMulticastAddresses.Push(*entry); in SubscribeExternalMulticast()
318 SignalMulticastAddressChange(kAddressAdded, *entry, kOriginManual); in SubscribeExternalMulticast()
327 MulticastAddress *entry; in UnsubscribeExternalMulticast() local
330 entry = mMulticastAddresses.FindMatchingWithPrev(prev, aAddress); in UnsubscribeExternalMulticast()
331 VerifyOrExit(entry != nullptr, error = kErrorNotFound); in UnsubscribeExternalMulticast()
333 VerifyOrExit(IsMulticastAddressExternal(*entry), error = kErrorRejected); in UnsubscribeExternalMulticast()
337 SignalMulticastAddressChange(kAddressRemoved, *entry, kOriginManual); in UnsubscribeExternalMulticast()
339 mExtMulticastAddressPool.Free(static_cast<ExternalMulticastAddress &>(*entry)); in UnsubscribeExternalMulticast()
349 for (MulticastAddress *entry = mMulticastAddresses.GetHead(); entry != nullptr; entry = next) in UnsubscribeAllExternalMulticastAddresses() local
351 next = entry->GetNext(); in UnsubscribeAllExternalMulticastAddresses()
353 if (IsMulticastAddressExternal(*entry)) in UnsubscribeAllExternalMulticastAddresses()
355 IgnoreError(UnsubscribeExternalMulticast(entry->GetAddress())); in UnsubscribeAllExternalMulticastAddresses()
437 UnicastAddress *entry; in AddExternalUnicastAddress() local
441 entry = mUnicastAddresses.FindMatching(aAddress.GetAddress()); in AddExternalUnicastAddress()
443 if (entry != nullptr) in AddExternalUnicastAddress()
445 VerifyOrExit(IsUnicastAddressExternal(*entry), error = kErrorInvalidArgs); in AddExternalUnicastAddress()
447 entry->mPrefixLength = aAddress.mPrefixLength; in AddExternalUnicastAddress()
448 entry->mAddressOrigin = aAddress.mAddressOrigin; in AddExternalUnicastAddress()
449 entry->mPreferred = aAddress.mPreferred; in AddExternalUnicastAddress()
450 entry->mValid = aAddress.mValid; in AddExternalUnicastAddress()
456 entry = mExtUnicastAddressPool.Allocate(); in AddExternalUnicastAddress()
457 VerifyOrExit(entry != nullptr, error = kErrorNoBufs); in AddExternalUnicastAddress()
459 *entry = aAddress; in AddExternalUnicastAddress()
460 entry->mRloc = false; in AddExternalUnicastAddress()
461 entry->mMeshLocal = false; in AddExternalUnicastAddress()
462 entry->mSrpRegistered = false; in AddExternalUnicastAddress()
464 mUnicastAddresses.Push(*entry); in AddExternalUnicastAddress()
465 SignalUnicastAddressChange(kAddressAdded, *entry); in AddExternalUnicastAddress()
474 UnicastAddress *entry; in RemoveExternalUnicastAddress() local
477 entry = mUnicastAddresses.FindMatchingWithPrev(prev, aAddress); in RemoveExternalUnicastAddress()
478 VerifyOrExit(entry != nullptr, error = kErrorNotFound); in RemoveExternalUnicastAddress()
480 VerifyOrExit(IsUnicastAddressExternal(*entry), error = kErrorRejected); in RemoveExternalUnicastAddress()
484 SignalUnicastAddressChange(kAddressRemoved, *entry); in RemoveExternalUnicastAddress()
486 mExtUnicastAddressPool.Free(*entry); in RemoveExternalUnicastAddress()
496 for (UnicastAddress *entry = mUnicastAddresses.GetHead(); entry != nullptr; entry = next) in RemoveAllExternalUnicastAddresses() local
498 next = entry->GetNext(); in RemoveAllExternalUnicastAddresses()
500 if (IsUnicastAddressExternal(*entry)) in RemoveAllExternalUnicastAddresses()
502 IgnoreError(RemoveExternalUnicastAddress(entry->GetAddress())); in RemoveAllExternalUnicastAddresses()