Lines Matching refs:host

365         for (const Host &host : mHosts)  in HasNameConflictsWith()  local
367 if (host.HasService(service.GetInstanceName()) && (aHost.mKey != host.mKey)) in HasNameConflictsWith()
794 Host *host = nullptr; in ProcessDnsUpdate() local
815 host = Host::Allocate(GetInstance(), aMetadata.mRxTime); in ProcessDnsUpdate()
816 VerifyOrExit(host != nullptr, error = kErrorNoBufs); in ProcessDnsUpdate()
817 SuccessOrExit(error = ProcessUpdateSection(*host, aMessage, aMetadata)); in ProcessDnsUpdate()
820 SuccessOrExit(error = ProcessAdditionalSection(host, aMessage, aMetadata)); in ProcessDnsUpdate()
825 UpdateAddrResolverCacheTable(*aMetadata.mMessageInfo, *host); in ProcessDnsUpdate()
829 HandleUpdate(*host, aMetadata); in ProcessDnsUpdate()
834 if (host != nullptr) in ProcessDnsUpdate()
836 host->Free(); in ProcessDnsUpdate()
1598 for (Host *host = mHosts.GetHead(); host != nullptr; host = nextHost) in HandleLeaseTimer() local
1600 nextHost = host->GetNext(); in HandleLeaseTimer()
1602 if (host->GetKeyExpireTime() <= nextExpireTime.GetNow()) in HandleLeaseTimer()
1604 LogInfo("KEY LEASE of host %s expired", host->GetFullName()); in HandleLeaseTimer()
1607 RemoveHost(host, kDeleteName); in HandleLeaseTimer()
1609 else if (host->IsDeleted()) in HandleLeaseTimer()
1615 nextExpireTime.UpdateIfEarlier(host->GetKeyExpireTime()); in HandleLeaseTimer()
1618 for (Service *service = host->mServices.GetHead(); service != nullptr; service = next) in HandleLeaseTimer()
1627 host->RemoveService(service, kDeleteName, kNotifyServiceHandler); in HandleLeaseTimer()
1635 else if (host->GetExpireTime() <= nextExpireTime.GetNow()) in HandleLeaseTimer()
1637 LogInfo("LEASE of host %s expired", host->GetFullName()); in HandleLeaseTimer()
1640 for (Service &service : host->mServices) in HandleLeaseTimer()
1643 host->RemoveService(&service, kRetainName, kDoNotNotifyServiceHandler); in HandleLeaseTimer()
1646 RemoveHost(host, kRetainName); in HandleLeaseTimer()
1648 nextExpireTime.UpdateIfEarlier(host->GetKeyExpireTime()); in HandleLeaseTimer()
1656 OT_ASSERT(!host->IsDeleted()); in HandleLeaseTimer()
1658 nextExpireTime.UpdateIfEarlier(host->GetExpireTime()); in HandleLeaseTimer()
1660 for (Service *service = host->mServices.GetHead(); service != nullptr; service = next) in HandleLeaseTimer()
1667 host->RemoveService(service, kDeleteName, kNotifyServiceHandler); in HandleLeaseTimer()
1679 host->RemoveService(service, kRetainName, kNotifyServiceHandler); in HandleLeaseTimer()