Lines Matching refs:aAddress

92 bool Netif::IsMulticastSubscribed(const Address &aAddress) const  in IsMulticastSubscribed()
94 return mMulticastAddresses.ContainsMatching(aAddress); in IsMulticastSubscribed()
240 void Netif::SignalMulticastAddressChange(AddressEvent aEvent, const MulticastAddress &aAddress, Add… in SignalMulticastAddressChange() argument
245 Get<Utils::HistoryTracker>().RecordAddressEvent(aEvent, aAddress, aOrigin); in SignalMulticastAddressChange()
252 info.mAddress = &aAddress.GetAddress(); in SignalMulticastAddressChange()
254 info.mScope = aAddress.GetAddress().GetScope(); in SignalMulticastAddressChange()
274 bool Netif::IsMulticastAddressExternal(const MulticastAddress &aAddress) const in IsMulticastAddressExternal()
276 …turn mExtMulticastAddressPool.IsPoolEntry(static_cast<const ExternalMulticastAddress &>(aAddress)); in IsMulticastAddressExternal()
279 void Netif::SubscribeMulticast(MulticastAddress &aAddress) in SubscribeMulticast() argument
281 SuccessOrExit(mMulticastAddresses.Add(aAddress)); in SubscribeMulticast()
282 SignalMulticastAddressChange(kAddressAdded, aAddress, kOriginThread); in SubscribeMulticast()
288 void Netif::UnsubscribeMulticast(const MulticastAddress &aAddress) in UnsubscribeMulticast() argument
290 SuccessOrExit(mMulticastAddresses.Remove(aAddress)); in UnsubscribeMulticast()
291 SignalMulticastAddressChange(kAddressRemoved, aAddress, kOriginThread); in UnsubscribeMulticast()
297 Error Netif::SubscribeExternalMulticast(const Address &aAddress) in SubscribeExternalMulticast() argument
303 VerifyOrExit(aAddress.IsMulticast(), error = kErrorInvalidArgs); in SubscribeExternalMulticast()
304 VerifyOrExit(!IsMulticastSubscribed(aAddress), error = kErrorAlready); in SubscribeExternalMulticast()
312 VerifyOrExit(cur->GetAddress() != aAddress, error = kErrorRejected); in SubscribeExternalMulticast()
318 entry->mAddress = aAddress; in SubscribeExternalMulticast()
330 Error Netif::UnsubscribeExternalMulticast(const Address &aAddress) in UnsubscribeExternalMulticast() argument
336 entry = mMulticastAddresses.FindMatching(aAddress, prev); in UnsubscribeExternalMulticast()
366 void Netif::AddUnicastAddress(UnicastAddress &aAddress) in AddUnicastAddress() argument
368 SuccessOrExit(mUnicastAddresses.Add(aAddress)); in AddUnicastAddress()
369 SignalUnicastAddressChange(kAddressAdded, aAddress); in AddUnicastAddress()
375 void Netif::RemoveUnicastAddress(const UnicastAddress &aAddress) in RemoveUnicastAddress() argument
377 SuccessOrExit(mUnicastAddresses.Remove(aAddress)); in RemoveUnicastAddress()
378 SignalUnicastAddressChange(kAddressRemoved, aAddress); in RemoveUnicastAddress()
384 void Netif::SignalUnicastAddressChange(AddressEvent aEvent, const UnicastAddress &aAddress) in SignalUnicastAddressChange() argument
388 if (aAddress.mRloc) in SignalUnicastAddressChange()
400 Get<Utils::HistoryTracker>().RecordAddressEvent(aEvent, aAddress); in SignalUnicastAddressChange()
403 if (!IsUnicastAddressExternal(aAddress) && mAddressCallback.IsSet()) in SignalUnicastAddressChange()
407 info.mAddress = &aAddress.mAddress; in SignalUnicastAddressChange()
408 info.mPrefixLength = aAddress.mPrefixLength; in SignalUnicastAddressChange()
409 info.mScope = aAddress.GetScope(); in SignalUnicastAddressChange()
410 info.mPreferred = aAddress.mPreferred; in SignalUnicastAddressChange()
416 Error Netif::AddExternalUnicastAddress(const UnicastAddress &aAddress) in AddExternalUnicastAddress() argument
421 VerifyOrExit(!aAddress.GetAddress().IsMulticast(), error = kErrorInvalidArgs); in AddExternalUnicastAddress()
423 entry = mUnicastAddresses.FindMatching(aAddress.GetAddress()); in AddExternalUnicastAddress()
429 entry->mPrefixLength = aAddress.mPrefixLength; in AddExternalUnicastAddress()
430 entry->mAddressOrigin = aAddress.mAddressOrigin; in AddExternalUnicastAddress()
431 entry->mPreferred = aAddress.mPreferred; in AddExternalUnicastAddress()
432 entry->mValid = aAddress.mValid; in AddExternalUnicastAddress()
436 VerifyOrExit(!aAddress.GetAddress().IsLinkLocal(), error = kErrorInvalidArgs); in AddExternalUnicastAddress()
441 *entry = aAddress; in AddExternalUnicastAddress()
450 Error Netif::RemoveExternalUnicastAddress(const Address &aAddress) in RemoveExternalUnicastAddress() argument
456 entry = mUnicastAddresses.FindMatching(aAddress, prev); in RemoveExternalUnicastAddress()
486 …l Netif::HasUnicastAddress(const Address &aAddress) const { return mUnicastAddresses.ContainsMatch… in HasUnicastAddress()
488 bool Netif::IsUnicastAddressExternal(const UnicastAddress &aAddress) const in IsUnicastAddressExternal()
490 return mExtUnicastAddressPool.IsPoolEntry(aAddress); in IsUnicastAddressExternal()