Home
last modified time | relevance | path

Searched refs:hostReg (Results 1 – 3 of 3) sorted by relevance

/external/ot-br-posix/src/mdns/
Dmdns.cpp325 HostRegistration *hostReg = FindHostRegistration(aName); in HandleDuplicateHostRegistration() local
327 VerifyOrExit(hostReg != nullptr); in HandleDuplicateHostRegistration()
329 if (hostReg->IsOutdated(aName, aAddress)) in HandleDuplicateHostRegistration()
332 RemoveHostRegistration(hostReg->mName, OTBR_ERROR_ABORTED); in HandleDuplicateHostRegistration()
334 else if (hostReg->IsCompleted()) in HandleDuplicateHostRegistration()
344 hostReg->mCallback = std::bind( in HandleDuplicateHostRegistration()
350 std::make_shared<ResultCallback>(std::move(hostReg->mCallback)), in HandleDuplicateHostRegistration()
366 HostRegistrationPtr hostReg; in RemoveHostRegistration() local
374 hostReg = std::move(it->second); in RemoveHostRegistration()
376 hostReg->Complete(aError); in RemoveHostRegistration()
Dmdns_mdnssd.cpp420 auto &hostReg = static_cast<DnssdHostRegistration &>(*kv.second); in FindHostRegistration() local
422 if (hostReg.GetServiceRef() == aServiceRef && hostReg.GetRecordRef() == aRecordRef) in FindHostRegistration()
620 HostRegistration *hostReg = FindHostRegistration(aServiceRef, aRecordRef); in HandleRegisterHostResult() local
624 VerifyOrExit(hostReg != nullptr); in HandleRegisterHostResult()
626 hostName = MakeFullHostName(hostReg->mName); in HandleRegisterHostResult()
633 hostReg->Complete(OTBR_ERROR_NONE); in HandleRegisterHostResult()
638 RemoveHostRegistration(hostReg->mName, error); in HandleRegisterHostResult()
Dmdns_avahi.cpp526 HostRegistration * hostReg; in CallHostOrServiceCallback() local
539 else if ((hostReg = FindHostRegistration(aGroup)) != nullptr) in CallHostOrServiceCallback()
543 hostReg->Complete(aError); in CallHostOrServiceCallback()
547 RemoveHostRegistration(hostReg->mName, aError); in CallHostOrServiceCallback()
844 const auto &hostReg = static_cast<const AvahiHostRegistration &>(*kv.second); in FindHostRegistration() local
845 if (hostReg.GetEntryGroup() == aEntryGroup) in FindHostRegistration()