Lines Matching refs:Core

54 …AsCoreType(aInstance).Get<Core>().HandleMessage(AsCoreType(aMessage), aIsUnicast, AsCoreType(aAddr…  in otPlatMdnsHandleReceive()
60 const char Core::kLocalDomain[] = "local.";
61 const char Core::kUdpServiceLabel[] = "_udp";
62 const char Core::kTcpServiceLabel[] = "_tcp";
63 const char Core::kSubServiceLabel[] = "_sub";
64 const char Core::kServicesDnssdLabels[] = "_services._dns-sd._udp";
66 Core::Core(Instance &aInstance) in Core() function in ot::Dns::Multicast::Core
84 Error Core::SetEnabled(bool aEnable, uint32_t aInfraIfIndex) in SetEnabled()
127 void Core::HandleInfraIfStateChanged(void) in HandleInfraIfStateChanged()
134 Error Core::Register(const ItemInfo &aItemInfo, RequestId aRequestId, RegisterCallback aCallback) in Register()
156 template <typename EntryType, typename ItemInfo> Error Core::Unregister(const ItemInfo &aItemInfo) in Unregister()
174 Error Core::RegisterHost(const Host &aHost, RequestId aRequestId, RegisterCallback aCallback) in RegisterHost()
179 Error Core::UnregisterHost(const Host &aHost) { return Unregister<HostEntry>(aHost); } in UnregisterHost()
181 Error Core::RegisterService(const Service &aService, RequestId aRequestId, RegisterCallback aCallba… in RegisterService()
186 Error Core::UnregisterService(const Service &aService) { return Unregister<ServiceEntry>(aService);… in UnregisterService()
188 Error Core::RegisterKey(const Key &aKey, RequestId aRequestId, RegisterCallback aCallback) in RegisterKey()
194 Error Core::UnregisterKey(const Key &aKey) in UnregisterKey()
201 Core::Iterator *Core::AllocateIterator(void) { return EntryIterator::Allocate(GetInstance()); } in AllocateIterator()
203 void Core::FreeIterator(Iterator &aIterator) { static_cast<EntryIterator &>(aIterator).Free(); } in FreeIterator()
205 Error Core::GetNextHost(Iterator &aIterator, Host &aHost, EntryState &aState) const in GetNextHost()
210 Error Core::GetNextService(Iterator &aIterator, Service &aService, EntryState &aState) const in GetNextService()
215 Error Core::GetNextKey(Iterator &aIterator, Key &aKey, EntryState &aState) const in GetNextKey()
220 Error Core::GetNextBrowser(Iterator &aIterator, Browser &aBrowser, CacheInfo &aInfo) const in GetNextBrowser()
225 Error Core::GetNextSrvResolver(Iterator &aIterator, SrvResolver &aResolver, CacheInfo &aInfo) const in GetNextSrvResolver()
230 Error Core::GetNextTxtResolver(Iterator &aIterator, TxtResolver &aResolver, CacheInfo &aInfo) const in GetNextTxtResolver()
235 Error Core::GetNextIp6AddressResolver(Iterator &aIterator, AddressResolver &aResolver, CacheInfo &a… in GetNextIp6AddressResolver()
240 Error Core::GetNextIp4AddressResolver(Iterator &aIterator, AddressResolver &aResolver, CacheInfo &a… in GetNextIp4AddressResolver()
247 void Core::InvokeConflictCallback(const char *aName, const char *aServiceType) in InvokeConflictCallback()
254 void Core::HandleMessage(Message &aMessage, bool aIsUnicast, const AddressInfo &aSenderAddress) in HandleMessage()
303 void Core::HandleEntryTimer(void) in HandleEntryTimer()
360 void Core::RemoveEmptyEntries(void) in RemoveEmptyEntries()
366 void Core::HandleEntryTask(void) in HandleEntryTask()
394 uint32_t Core::DetermineTtl(uint32_t aTtl, uint32_t aDefaultTtl) in DetermineTtl()
399 bool Core::NameMatch(const Heap::String &aHeapString, const char *aName) in NameMatch()
407 bool Core::NameMatch(const Heap::String &aFirst, const Heap::String &aSecond) in NameMatch()
414 void Core::UpdateCacheFlushFlagIn(ResourceRecord &aResourceRecord, Section aSection, bool aIsLegacy… in UpdateCacheFlushFlagIn()
426 void Core::UpdateRecordLengthInMessage(ResourceRecord &aRecord, Message &aMessage, uint16_t aOffset) in UpdateRecordLengthInMessage()
437 void Core::UpdateCompressOffset(uint16_t &aOffset, uint16_t aNewOffset) in UpdateCompressOffset()
445 bool Core::QuestionMatches(uint16_t aQuestionRrType, uint16_t aRrType) in QuestionMatches()
450 bool Core::RrClassIsInternetOrAny(uint16_t aRrClass) in RrClassIsInternetOrAny()
460 Core::Callback::Callback(RequestId aRequestId, RegisterCallback aCallback) in Callback()
466 void Core::Callback::InvokeAndClear(Instance &aInstance, Error aError) in InvokeAndClear()
482 void Core::RecordCounts::ReadFrom(const Header &aHeader) in ReadFrom()
490 void Core::RecordCounts::WriteTo(Header &aHeader) const in WriteTo()
498 bool Core::RecordCounts::IsEmpty(void) const in IsEmpty()
519 bool Core::AddressArray::Matches(const Ip6::Address *aAddresses, uint16_t aNumAddresses) const in Matches()
536 void Core::AddressArray::SetFrom(const Ip6::Address *aAddresses, uint16_t aNumAddresses) in SetFrom()
550 template <typename UintType> void Core::RecordInfo::UpdateProperty(UintType &aProperty, UintType aV… in UpdateProperty()
573 void Core::RecordInfo::UpdateProperty(Heap::String &aStringProperty, const char *aString) in UpdateProperty()
583 void Core::RecordInfo::UpdateProperty(Heap::Data &aDataProperty, const uint8_t *aData, uint16_t aLe… in UpdateProperty()
593 void Core::RecordInfo::UpdateProperty(AddressArray &aAddrProperty, const Ip6::Address *aAddrs, uint… in UpdateProperty()
603 uint32_t Core::RecordInfo::GetTtl(bool aIsLegacyUnicast) const in GetTtl()
608 void Core::RecordInfo::UpdateTtl(uint32_t aTtl) { return UpdateProperty(mTtl, aTtl); } in UpdateTtl()
610 void Core::RecordInfo::StartAnnouncing(void) in StartAnnouncing()
619 bool Core::RecordInfo::CanAnswer(void) const { return (mIsPresent && (mTtl > 0)); } in CanAnswer()
621 void Core::RecordInfo::ScheduleAnswer(const AnswerInfo &aInfo) in ScheduleAnswer()
669 bool Core::RecordInfo::ShouldAppendTo(EntryContext &aContext) in ShouldAppendTo()
714 Error Core::RecordInfo::ExtendAnswerDelay(EntryContext &aContext) in ExtendAnswerDelay()
744 void Core::RecordInfo::UpdateStateAfterAnswer(const TxMessage &aResponse) in UpdateStateAfterAnswer()
793 void Core::RecordInfo::UpdateFireTimeOn(FireTime &aFireTime) in UpdateFireTimeOn()
832 void Core::RecordInfo::DetermineNextAggrTxTime(NextFireTime &aNextAggrTxTime) const in DetermineNextAggrTxTime()
850 void Core::RecordInfo::MarkAsAppended(TxMessage &aTxMessage, Section aSection) in MarkAsAppended()
879 void Core::RecordInfo::MarkToAppendInAdditionalData(void) in MarkToAppendInAdditionalData()
887 bool Core::RecordInfo::IsAppended(void) const in IsAppended()
905 bool Core::RecordInfo::CanAppend(void) const { return mIsPresent && !IsAppended(); } in CanAppend()
907 Error Core::RecordInfo::GetLastMulticastTime(TimeMilli &aLastMulticastTime) const in GetLastMulticastTime()
918 uint32_t Core::RecordInfo::GetDurationSinceLastMulticast(TimeMilli aTime) const in GetDurationSinceLastMulticast()
933 void Core::FireTime::SetFireTime(TimeMilli aFireTime) in SetFireTime()
947 void Core::FireTime::ScheduleFireTimeOn(TimerMilli &aTimer) in ScheduleFireTimeOn()
955 void Core::FireTime::UpdateNextFireTimeOn(NextFireTime &aNextFireTime) const in UpdateNextFireTimeOn()
966 Core::Entry::Entry(void) in Entry()
976 void Core::Entry::Init(Instance &aInstance) in Init()
985 void Core::Entry::SetState(State aState) in SetState()
991 void Core::Entry::Register(const Key &aKey, const Callback &aCallback) in Register()
1005 void Core::Entry::Unregister(const Key &aKey) in Unregister()
1032 void Core::Entry::ClearKey(void) in ClearKey()
1038 void Core::Entry::SetCallback(const Callback &aCallback) in SetCallback()
1044 void Core::Entry::MarkToInvokeCallbackUnconditionally(void) in MarkToInvokeCallbackUnconditionally()
1047 Get<Core>().mEntryTask.Post(); in MarkToInvokeCallbackUnconditionally()
1050 void Core::Entry::ScheduleCallbackTask(void) in ScheduleCallbackTask()
1057 Get<Core>().mEntryTask.Post(); in ScheduleCallbackTask()
1069 void Core::Entry::InvokeCallbacks(void) in InvokeCallbacks()
1100 void Core::Entry::StartProbing(void) in StartProbing()
1104 SetFireTime(Get<Core>().RandomizeFirstProbeTxTime()); in StartProbing()
1108 void Core::Entry::SetStateToConflict(void) in SetStateToConflict()
1122 void Core::Entry::SetStateToRemoving(void) in SetStateToRemoving()
1131 void Core::Entry::ClearAppendState(void) in ClearAppendState()
1137 void Core::Entry::UpdateRecordsState(const TxMessage &aResponse) in UpdateRecordsState()
1157 void Core::Entry::ScheduleNsecAnswer(const AnswerInfo &aInfo) in ScheduleNsecAnswer()
1189 bool Core::Entry::ShouldAnswerNsec(TimeMilli aNow) const in ShouldAnswerNsec()
1194 void Core::Entry::AnswerNonProbe(const AnswerInfo &aInfo, RecordAndType *aRecords, uint16_t aRecord… in AnswerNonProbe()
1231 void Core::Entry::AnswerProbe(const AnswerInfo &aInfo, RecordAndType *aRecords, uint16_t aRecordsLe… in AnswerProbe()
1299 void Core::Entry::DetermineNextFireTime(void) in DetermineNextFireTime()
1309 void Core::Entry::DetermineNextAggrTxTime(NextFireTime &aNextAggrTxTime) const in DetermineNextAggrTxTime()
1319 void Core::Entry::ScheduleTimer(void) { ScheduleFireTimeOn(Get<Core>().mEntryTimer); } in ScheduleTimer()
1321 template <typename EntryType> void Core::Entry::HandleTimer(EntryContext &aContext) in HandleTimer()
1362 void Core::Entry::AppendQuestionTo(TxMessage &aTxMessage) const in AppendQuestionTo()
1368 if ((mProbeCount == 1) && Get<Core>().IsQuestionUnicastAllowed()) in AppendQuestionTo()
1380 void Core::Entry::AppendKeyRecordTo(TxMessage &aTxMessage, Section aSection, NameAppender aNameAppe… in AppendKeyRecordTo()
1410 void Core::Entry::AppendNsecRecordTo(TxMessage &aTxMessage, in AppendNsecRecordTo()
1448 Error Core::Entry::CopyKeyInfoTo(Key &aKey, EntryState &aState) const in CopyKeyInfoTo()
1458 aKey.mInfraIfIndex = Get<Core>().mInfraIfIndex; in CopyKeyInfoTo()
1468 Core::HostEntry::HostEntry(void) in HostEntry()
1474 Error Core::HostEntry::Init(Instance &aInstance, const char *aName) in Init()
1481 bool Core::HostEntry::Matches(const Name &aName) const in Matches()
1486 bool Core::HostEntry::Matches(const Host &aHost) const { return NameMatch(mName, aHost.mHostName); } in Matches()
1488 bool Core::HostEntry::Matches(const Key &aKey) const { return !IsKeyForService(aKey) && NameMatch(m… in Matches()
1490 bool Core::HostEntry::Matches(const Heap::String &aName) const { return NameMatch(mName, aName); } in Matches()
1492 bool Core::HostEntry::IsEmpty(void) const { return !mAddrRecord.IsPresent() && !mKeyRecord.IsPresen… in IsEmpty()
1494 void Core::HostEntry::Register(const Host &aHost, const Callback &aCallback) in Register()
1531 void Core::HostEntry::Register(const Key &aKey, const Callback &aCallback) in Register()
1539 void Core::HostEntry::Unregister(const Host &aHost) in Unregister()
1569 void Core::HostEntry::Unregister(const Key &aKey) in Unregister()
1579 void Core::HostEntry::ClearHost(void) in ClearHost()
1585 void Core::HostEntry::ScheduleToRemoveIfEmpty(void) in ScheduleToRemoveIfEmpty()
1590 Get<Core>().mEntryTask.Post(); in ScheduleToRemoveIfEmpty()
1594 void Core::HostEntry::HandleConflict(void) in HandleConflict()
1600 Get<Core>().InvokeConflictCallback(mName.AsCString(), nullptr); in HandleConflict()
1606 void Core::HostEntry::AnswerQuestion(const AnswerInfo &aInfo) in AnswerQuestion()
1631 void Core::HostEntry::HandleTimer(EntryContext &aContext) { Entry::HandleTimer<HostEntry>(aContext)… in HandleTimer()
1633 void Core::HostEntry::ClearAppendState(void) in ClearAppendState()
1645 void Core::HostEntry::PrepareProbe(TxMessage &aProbe) in PrepareProbe()
1664 void Core::HostEntry::StartAnnouncing(void) in StartAnnouncing()
1670 void Core::HostEntry::PrepareResponse(EntryContext &aContext) in PrepareResponse()
1686 void Core::HostEntry::PrepareResponseRecords(EntryContext &aContext) in PrepareResponseRecords()
1709 void Core::HostEntry::UpdateRecordsState(const TxMessage &aResponse) in UpdateRecordsState()
1722 void Core::HostEntry::DetermineNextFireTime(void) in DetermineNextFireTime()
1733 void Core::HostEntry::DetermineNextAggrTxTime(NextFireTime &aNextAggrTxTime) const in DetermineNextAggrTxTime()
1744 void Core::HostEntry::AppendAddressRecordsTo(TxMessage &aTxMessage, Section aSection) in AppendAddressRecordsTo()
1773 void Core::HostEntry::AppendKeyRecordTo(TxMessage &aTxMessage, Section aSection) in AppendKeyRecordTo()
1778 void Core::HostEntry::AppendNsecRecordTo(TxMessage &aTxMessage, Section aSection) in AppendNsecRecordTo()
1798 void Core::HostEntry::AppendEntryName(Entry &aEntry, TxMessage &aTxMessage, Section aSection) in AppendEntryName()
1803 void Core::HostEntry::AppendNameTo(TxMessage &aTxMessage, Section aSection) in AppendNameTo()
1818 Error Core::HostEntry::CopyInfoTo(Host &aHost, EntryState &aState) const in CopyInfoTo()
1828 aHost.mInfraIfIndex = Get<Core>().mInfraIfIndex; in CopyInfoTo()
1835 Error Core::HostEntry::CopyInfoTo(Key &aKey, EntryState &aState) const in CopyInfoTo()
1853 const uint8_t Core::ServiceEntry::kEmptyTxtData[] = {0};
1855 Core::ServiceEntry::ServiceEntry(void) in ServiceEntry()
1868 Error Core::ServiceEntry::Init(Instance &aInstance, const char *aServiceInstance, const char *aServ… in Init()
1881 Error Core::ServiceEntry::Init(Instance &aInstance, const Service &aService) in Init()
1886 Error Core::ServiceEntry::Init(Instance &aInstance, const Key &aKey) in Init()
1891 bool Core::ServiceEntry::Matches(const Name &aFullName) const in Matches()
1896 bool Core::ServiceEntry::MatchesServiceType(const Name &aServiceType) const in MatchesServiceType()
1904 bool Core::ServiceEntry::Matches(const Service &aService) const in Matches()
1909 bool Core::ServiceEntry::Matches(const Key &aKey) const in Matches()
1915 bool Core::ServiceEntry::IsEmpty(void) const { return !mPtrRecord.IsPresent() && !mKeyRecord.IsPres… in IsEmpty()
1917 bool Core::ServiceEntry::CanAnswerSubType(const char *aSubLabel) const in CanAnswerSubType()
1933 void Core::ServiceEntry::Register(const Service &aService, const Callback &aCallback) in Register()
2005 void Core::ServiceEntry::Register(const Key &aKey, const Callback &aCallback) in Register()
2013 void Core::ServiceEntry::Unregister(const Service &aService) in Unregister()
2052 void Core::ServiceEntry::Unregister(const Key &aKey) in Unregister()
2062 void Core::ServiceEntry::ClearService(void) in ClearService()
2072 void Core::ServiceEntry::ScheduleToRemoveIfEmpty(void) in ScheduleToRemoveIfEmpty()
2079 Get<Core>().mEntryTask.Post(); in ScheduleToRemoveIfEmpty()
2083 void Core::ServiceEntry::HandleConflict(void) in HandleConflict()
2091 Get<Core>().InvokeConflictCallback(mServiceInstance.AsCString(), mServiceType.AsCString()); in HandleConflict()
2097 void Core::ServiceEntry::AnswerServiceNameQuestion(const AnswerInfo &aInfo) in AnswerServiceNameQuestion()
2123 void Core::ServiceEntry::AnswerServiceTypeQuestion(const AnswerInfo &aInfo, const char *aSubLabel) in AnswerServiceTypeQuestion()
2146 bool Core::ServiceEntry::ShouldSuppressKnownAnswer(uint32_t aTtl, const char *aSubLabel) const in ShouldSuppressKnownAnswer()
2173 void Core::ServiceEntry::HandleTimer(EntryContext &aContext) { Entry::HandleTimer<ServiceEntry>(aCo… in HandleTimer()
2175 void Core::ServiceEntry::ClearAppendState(void) in ClearAppendState()
2198 void Core::ServiceEntry::PrepareProbe(TxMessage &aProbe) in PrepareProbe()
2224 void Core::ServiceEntry::StartAnnouncing(void) in StartAnnouncing()
2239 void Core::ServiceEntry::PrepareResponse(EntryContext &aContext) in PrepareResponse()
2255 void Core::ServiceEntry::PrepareResponseRecords(EntryContext &aContext) in PrepareResponseRecords()
2359 void Core::ServiceEntry::UpdateRecordsState(const TxMessage &aResponse) in UpdateRecordsState()
2380 void Core::ServiceEntry::DetermineNextFireTime(void) in DetermineNextFireTime()
2399 void Core::ServiceEntry::DetermineNextAggrTxTime(NextFireTime &aNextAggrTxTime) const in DetermineNextAggrTxTime()
2418 void Core::ServiceEntry::DiscoverOffsetsAndHost(HostEntry *&aHostEntry) in DiscoverOffsetsAndHost()
2424 aHostEntry = Get<Core>().mHostEntries.FindMatching(mHostName); in DiscoverOffsetsAndHost()
2436 for (ServiceEntry &other : Get<Core>().mServiceEntries) in DiscoverOffsetsAndHost()
2488 void Core::ServiceEntry::UpdateServiceTypes(void) in UpdateServiceTypes()
2505 serviceType = Get<Core>().mServiceTypes.FindMatching(mServiceType); in UpdateServiceTypes()
2511 Get<Core>().mServiceTypes.Push(*serviceType); in UpdateServiceTypes()
2533 Get<Core>().mServiceTypes.RemoveMatching(*serviceType); in UpdateServiceTypes()
2541 void Core::ServiceEntry::AppendSrvRecordTo(TxMessage &aTxMessage, Section aSection) in AppendSrvRecordTo()
2576 void Core::ServiceEntry::AppendTxtRecordTo(TxMessage &aTxMessage, Section aSection) in AppendTxtRecordTo()
2602 void Core::ServiceEntry::AppendPtrRecordTo(TxMessage &aTxMessage, Section aSection, SubType *aSubTy… in AppendPtrRecordTo()
2641 void Core::ServiceEntry::AppendKeyRecordTo(TxMessage &aTxMessage, Section aSection) in AppendKeyRecordTo()
2646 void Core::ServiceEntry::AppendNsecRecordTo(TxMessage &aTxMessage, Section aSection) in AppendNsecRecordTo()
2671 void Core::ServiceEntry::AppendEntryName(Entry &aEntry, TxMessage &aTxMessage, Section aSection) in AppendEntryName()
2676 void Core::ServiceEntry::AppendServiceNameTo(TxMessage &aTxMessage, Section aSection, bool aPerform… in AppendServiceNameTo()
2699 void Core::ServiceEntry::AppendServiceTypeTo(TxMessage &aTxMessage, Section aSection) in AppendServiceTypeTo()
2704 void Core::ServiceEntry::AppendSubServiceTypeTo(TxMessage &aTxMessage, Section aSection) in AppendSubServiceTypeTo()
2717 void Core::ServiceEntry::AppendSubServiceNameTo(TxMessage &aTxMessage, Section aSection, SubType &a… in AppendSubServiceNameTo()
2730 void Core::ServiceEntry::AppendHostNameTo(TxMessage &aTxMessage, Section aSection) in AppendHostNameTo()
2745 Error Core::ServiceEntry::CopyInfoTo(Service &aService, EntryState &aState, EntryIterator &aIterato… in CopyInfoTo()
2769 aService.mInfraIfIndex = Get<Core>().mInfraIfIndex; in CopyInfoTo()
2776 Error Core::ServiceEntry::CopyInfoTo(Key &aKey, EntryState &aState) const in CopyInfoTo()
2794 Error Core::ServiceEntry::SubType::Init(const char *aLabel) in Init()
2801 bool Core::ServiceEntry::SubType::Matches(const EmptyChecker &aChecker) const in Matches()
2808 bool Core::ServiceEntry::SubType::IsContainedIn(const Service &aService) const in IsContainedIn()
2827 Error Core::ServiceType::Init(Instance &aInstance, const char *aServiceType) in Init()
2841 ScheduleFireTimeOn(Get<Core>().mEntryTimer); in Init()
2847 bool Core::ServiceType::Matches(const Name &aServiceTypeName) const in Matches()
2852 bool Core::ServiceType::Matches(const Heap::String &aServiceType) const in Matches()
2857 void Core::ServiceType::ClearAppendState(void) { mServicesPtr.MarkAsNotAppended(); } in ClearAppendState()
2859 void Core::ServiceType::AnswerQuestion(const AnswerInfo &aInfo) in AnswerQuestion()
2864 ScheduleFireTimeOn(Get<Core>().mEntryTimer); in AnswerQuestion()
2870 bool Core::ServiceType::ShouldSuppressKnownAnswer(uint32_t aTtl) const in ShouldSuppressKnownAnswer()
2879 void Core::ServiceType::HandleTimer(EntryContext &aContext) in HandleTimer()
2895 void Core::ServiceType::PrepareResponse(EntryContext &aContext) in PrepareResponse()
2911 void Core::ServiceType::PrepareResponseRecords(EntryContext &aContext) in PrepareResponseRecords()
2920 for (const ServiceEntry &serviceEntry : Get<Core>().mServiceEntries) in PrepareResponseRecords()
2944 void Core::ServiceType::AppendPtrRecordTo(TxMessage &aResponse, uint16_t aServiceTypeOffset) in AppendPtrRecordTo()
2958 ptr.SetTtl(Min(Core::RecordInfo::kMaxLegacyUnicastTtl, mServicesPtr.GetTtl())); in AppendPtrRecordTo()
2977 void Core::ServiceType::DetermineNextAggrTxTime(NextFireTime &aNextAggrTxTime) const in DetermineNextAggrTxTime()
2985 Core::TxMessage::TxMessage(Instance &aInstance, Type aType, uint16_t aQueryId) in TxMessage()
2991 Core::TxMessage::TxMessage(Instance &aInstance, Type aType, const AddressInfo &aUnicastDest, uint16… in TxMessage()
2997 void Core::TxMessage::Init(Type aType, uint16_t aMessageId) in Init()
3039 Message &Core::TxMessage::SelectMessageFor(Section aSection) in SelectMessageFor()
3085 Core::AppendOutcome Core::TxMessage::AppendLabel(Section aSection, const char *aLabel, uint16_t &aC… in AppendLabel()
3090 Core::AppendOutcome Core::TxMessage::AppendMultipleLabels(Section aSection, in AppendMultipleLabels()
3097 Core::AppendOutcome Core::TxMessage::AppendLabels(Section aSection, in AppendLabels()
3140 void Core::TxMessage::AppendServiceType(Section aSection, const char *aServiceType, uint16_t &aComp… in AppendServiceType()
3182 void Core::TxMessage::AppendDomainName(Section aSection) in AppendDomainName()
3199 void Core::TxMessage::AppendServicesDnssdName(Section aSection) in AppendServicesDnssdName()
3217 void Core::TxMessage::AddQuestionFrom(const Message &aMessage) in AddQuestionFrom()
3227 void Core::TxMessage::SaveOffset(uint16_t &aCompressOffset, const Message &aMessage, Section aSecti… in SaveOffset()
3254 bool Core::TxMessage::IsOverSizeLimit(void) const in IsOverSizeLimit()
3263 return (size > Get<Core>().mMaxMessageSize); in IsOverSizeLimit()
3266 void Core::TxMessage::SaveCurrentState(void) in SaveCurrentState()
3273 void Core::TxMessage::RestoreToSavedState(void) in RestoreToSavedState()
3285 void Core::TxMessage::CheckSizeLimitToPrepareAgain(bool &aPrepareAgain) in CheckSizeLimitToPrepareAgain()
3322 void Core::TxMessage::Send(void) in Send()
3339 Get<Core>().mTxMessageHistory.Add(*mMsgPtr); in Send()
3348 otPlatMdnsSendMulticast(&GetInstance(), mMsgPtr.Release(), Get<Core>().mInfraIfIndex); in Send()
3361 void Core::TxMessage::Reinit(void) in Reinit()
3374 for (HostEntry &entry : Get<Core>().mHostEntries) in Reinit()
3382 for (ServiceEntry &entry : Get<Core>().mServiceEntries) in Reinit()
3390 for (ServiceType &serviceType : Get<Core>().mServiceTypes) in Reinit()
3402 for (BrowseCache &browseCache : Get<Core>().mBrowseCacheList) in Reinit()
3407 for (SrvCache &srvCache : Get<Core>().mSrvCacheList) in Reinit()
3412 for (TxtCache &txtCache : Get<Core>().mTxtCacheList) in Reinit()
3427 bool Core::TxMessage::ShouldClearAppendStateOnReinit(const Entry &aEntry) const in ShouldClearAppendStateOnReinit()
3458 Core::EntryContext::EntryContext(Instance &aInstance, TxMessage::Type aResponseType) in EntryContext()
3465 Core::EntryContext::EntryContext(Instance &aInstance, in EntryContext()
3478 Error Core::RxMessage::Init(Instance &aInstance, in Init()
3597 mIsSelfOriginating = Get<Core>().mTxMessageHistory.Contains(*aMessagePtr); in Init()
3611 void Core::RxMessage::ClearProcessState(void) in ClearProcessState()
3619 Core::RxMessage::ProcessOutcome Core::RxMessage::ProcessQuery(bool aShouldProcessTruncated) in ProcessQuery()
3686 void Core::RxMessage::ProcessQuestion(Question &aQuestion) in ProcessQuestion()
3697 VerifyOrExit(!Get<Core>().mServiceTypes.IsEmpty()); in ProcessQuestion()
3707 aQuestion.mEntry = Get<Core>().mHostEntries.FindMatching(name); in ProcessQuestion()
3711 aQuestion.mEntry = Get<Core>().mServiceEntries.FindMatching(name); in ProcessQuestion()
3760 for (ServiceEntry &serviceEntry : Get<Core>().mServiceEntries) in ProcessQuestion()
3784 void Core::RxMessage::AnswerQuestion(const Question &aQuestion, uint16_t aDelay) in AnswerQuestion()
3831 void Core::RxMessage::AnswerServiceTypeQuestion(const Question &aQuestion, in AnswerServiceTypeQuestion()
3883 bool Core::RxMessage::ShouldSuppressKnownAnswer(const Name &aServiceType, in ShouldSuppressKnownAnswer()
3926 bool Core::RxMessage::ParseQuestionNameAsSubType(const Question &aQuestion, in ParseQuestionNameAsSubType()
3943 void Core::RxMessage::AnswerAllServicesQuestion(const Question &aQuestion, const AnswerInfo &aInfo) in AnswerAllServicesQuestion()
3945 for (ServiceType &serviceType : Get<Core>().mServiceTypes) in AnswerAllServicesQuestion()
3968 bool Core::RxMessage::ShouldSuppressKnownAnswer(const Question &aQuestion, const ServiceType &aServ… in ShouldSuppressKnownAnswer()
4013 void Core::RxMessage::SendUnicastResponse(void) in SendUnicastResponse()
4025 for (HostEntry &entry : Get<Core>().mHostEntries) in SendUnicastResponse()
4031 for (ServiceEntry &entry : Get<Core>().mServiceEntries) in SendUnicastResponse()
4037 for (ServiceType &serviceType : Get<Core>().mServiceTypes) in SendUnicastResponse()
4046 void Core::RxMessage::ProcessResponse(void) in ProcessResponse()
4060 if (!Get<Core>().mBrowseCacheList.IsEmpty()) in ProcessResponse()
4065 if (!Get<Core>().mSrvCacheList.IsEmpty()) in ProcessResponse()
4070 if (!Get<Core>().mTxtCacheList.IsEmpty()) in ProcessResponse()
4075 if (!Get<Core>().mIp6AddrCacheList.IsEmpty()) in ProcessResponse()
4079 for (Ip6AddrCache &addrCache : Get<Core>().mIp6AddrCacheList) in ProcessResponse()
4085 if (!Get<Core>().mIp4AddrCacheList.IsEmpty()) in ProcessResponse()
4089 for (Ip4AddrCache &addrCache : Get<Core>().mIp4AddrCacheList) in ProcessResponse()
4096 void Core::RxMessage::IterateOnAllRecordsInResponse(RecordProcessor aRecordProcessor) in IterateOnAllRecordsInResponse()
4127 void Core::RxMessage::ProcessRecordForConflict(const Name &aName, const ResourceRecord &aRecord, ui… in ProcessRecordForConflict()
4134 hostEntry = Get<Core>().mHostEntries.FindMatching(aName); in ProcessRecordForConflict()
4141 serviceEntry = Get<Core>().mServiceEntries.FindMatching(aName); in ProcessRecordForConflict()
4152 void Core::RxMessage::ProcessPtrRecord(const Name &aName, const ResourceRecord &aRecord, uint16_t a… in ProcessPtrRecord()
4158 browseCache = Get<Core>().mBrowseCacheList.FindMatching(aName); in ProcessPtrRecord()
4167 void Core::RxMessage::ProcessSrvRecord(const Name &aName, const ResourceRecord &aRecord, uint16_t a… in ProcessSrvRecord()
4173 srvCache = Get<Core>().mSrvCacheList.FindMatching(aName); in ProcessSrvRecord()
4182 void Core::RxMessage::ProcessTxtRecord(const Name &aName, const ResourceRecord &aRecord, uint16_t a… in ProcessTxtRecord()
4188 txtCache = Get<Core>().mTxtCacheList.FindMatching(aName); in ProcessTxtRecord()
4197 void Core::RxMessage::ProcessAaaaRecord(const Name &aName, const ResourceRecord &aRecord, uint16_t … in ProcessAaaaRecord()
4203 ip6AddrCache = Get<Core>().mIp6AddrCacheList.FindMatching(aName); in ProcessAaaaRecord()
4212 void Core::RxMessage::ProcessARecord(const Name &aName, const ResourceRecord &aRecord, uint16_t aRe… in ProcessARecord()
4218 ip4AddrCache = Get<Core>().mIp4AddrCacheList.FindMatching(aName); in ProcessARecord()
4230 void Core::RxMessage::Question::ClearProcessState(void) in ClearProcessState()
4243 Core::MultiPacketRxMessages::MultiPacketRxMessages(Instance &aInstance) in MultiPacketRxMessages()
4249 void Core::MultiPacketRxMessages::AddToExisting(OwnedPtr<RxMessage> &aRxMessagePtr) in AddToExisting()
4260 void Core::MultiPacketRxMessages::AddNew(OwnedPtr<RxMessage> &aRxMessagePtr) in AddNew()
4274 void Core::MultiPacketRxMessages::HandleTimer(void) in HandleTimer()
4294 void Core::MultiPacketRxMessages::Clear(void) in Clear()
4303 Core::MultiPacketRxMessages::RxMsgEntry::RxMsgEntry(Instance &aInstance) in RxMsgEntry()
4309 bool Core::MultiPacketRxMessages::RxMsgEntry::Matches(const AddressInfo &aAddress) const in Matches()
4320 bool Core::MultiPacketRxMessages::RxMsgEntry::Matches(const ExpireChecker &aExpireChecker) const in Matches()
4325 void Core::MultiPacketRxMessages::RxMsgEntry::Add(OwnedPtr<RxMessage> &aRxMessagePtr) in Add()
4354 Get<Core>().mMultiPacketRxMessages.mTimer.FireAtIfEarlier(mProcessTime); in Add()
4363 Core::TxMessageHistory::TxMessageHistory(Instance &aInstance) in TxMessageHistory()
4369 void Core::TxMessageHistory::Clear(void) in Clear()
4375 void Core::TxMessageHistory::Add(const Message &aMessage) in Add()
4396 bool Core::TxMessageHistory::Contains(const Message &aMessage) const in Contains()
4404 void Core::TxMessageHistory::CalculateHash(const Message &aMessage, Hash &aHash) in CalculateHash()
4413 void Core::TxMessageHistory::HandleTimer(void) in HandleTimer()
4428 Error Core::Start(const BrowserResolverType &aBrowserOrResolver) in Start()
4453 Error Core::Stop(const BrowserResolverType &aBrowserOrResolver) in Stop()
4470 Error Core::StartBrowser(const Browser &aBrowser) { return Start<BrowseCache, Browser>(aBrowser); } in StartBrowser()
4472 Error Core::StopBrowser(const Browser &aBrowser) { return Stop<BrowseCache, Browser>(aBrowser); } in StopBrowser()
4474 Error Core::StartSrvResolver(const SrvResolver &aResolver) { return Start<SrvCache, SrvResolver>(aR… in StartSrvResolver()
4476 Error Core::StopSrvResolver(const SrvResolver &aResolver) { return Stop<SrvCache, SrvResolver>(aRes… in StopSrvResolver()
4478 Error Core::StartTxtResolver(const TxtResolver &aResolver) { return Start<TxtCache, TxtResolver>(aR… in StartTxtResolver()
4480 Error Core::StopTxtResolver(const TxtResolver &aResolver) { return Stop<TxtCache, TxtResolver>(aRes… in StopTxtResolver()
4482 Error Core::StartIp6AddressResolver(const AddressResolver &aResolver) in StartIp6AddressResolver()
4487 Error Core::StopIp6AddressResolver(const AddressResolver &aResolver) in StopIp6AddressResolver()
4492 Error Core::StartIp4AddressResolver(const AddressResolver &aResolver) in StartIp4AddressResolver()
4497 Error Core::StopIp4AddressResolver(const AddressResolver &aResolver) in StopIp4AddressResolver()
4502 void Core::AddPassiveSrvTxtCache(const char *aServiceInstance, const char *aServiceType) in AddPassiveSrvTxtCache()
4523 void Core::AddPassiveIp6AddrCache(const char *aHostName) in AddPassiveIp6AddrCache()
4534 void Core::HandleCacheTimer(void) in HandleCacheTimer()
4580 void Core::HandleCacheTask(void) in HandleCacheTask()
4612 TimeMilli Core::RandomizeFirstProbeTxTime(void) in RandomizeFirstProbeTxTime()
4632 TimeMilli Core::RandomizeInitialQueryTxTime(void) in RandomizeInitialQueryTxTime()
4647 void Core::ResultCallback::Invoke(Instance &aInstance, const BrowseResult &aResult) const in Invoke()
4655 void Core::ResultCallback::Invoke(Instance &aInstance, const SrvResult &aResult) const in Invoke()
4663 void Core::ResultCallback::Invoke(Instance &aInstance, const TxtResult &aResult) const in Invoke()
4671 void Core::ResultCallback::Invoke(Instance &aInstance, const AddressResult &aResult) const in Invoke()
4682 Core::CacheContext::CacheContext(Instance &aInstance) in CacheContext()
4690 Core::CacheRecordInfo::CacheRecordInfo(void) in CacheRecordInfo()
4696 bool Core::CacheRecordInfo::RefreshTtl(uint32_t aTtl) in RefreshTtl()
4711 bool Core::CacheRecordInfo::ShouldExpire(TimeMilli aNow) const { return IsPresent() && (GetExpireTi… in ShouldExpire()
4713 void Core::CacheRecordInfo::UpdateStateAfterQuery(TimeMilli aNow) in UpdateStateAfterQuery()
4732 void Core::CacheRecordInfo::UpdateQueryAndFireTimeOn(CacheEntry &aCacheEntry) in UpdateQueryAndFireTimeOn()
4762 bool Core::CacheRecordInfo::LessThanHalfTtlRemains(TimeMilli aNow) const in LessThanHalfTtlRemains()
4767 uint32_t Core::CacheRecordInfo::GetRemainingTtl(TimeMilli aNow) const in GetRemainingTtl()
4783 uint32_t Core::CacheRecordInfo::GetClampedTtl(void) const in GetClampedTtl()
4791 TimeMilli Core::CacheRecordInfo::GetExpireTime(void) const in GetExpireTime()
4796 TimeMilli Core::CacheRecordInfo::GetQueryTime(uint8_t aAttemptIndex) const in GetQueryTime()
4816 void Core::CacheEntry::Init(Instance &aInstance, Type aType) in Init()
4828 void Core::CacheEntry::SetIsActive(bool aIsActive) in SetIsActive()
4847 bool Core::CacheEntry::ShouldDelete(TimeMilli aNow) const { return !mIsActive && (mDeleteTime <= aN… in ShouldDelete()
4849 void Core::CacheEntry::StartInitialQueries(void) in StartInitialQueries()
4853 mLastQueryTime = Get<Core>().RandomizeInitialQueryTxTime(); in StartInitialQueries()
4858 bool Core::CacheEntry::ShouldQuery(TimeMilli aNow) { return mQueryPending && (mNextQueryTime <= aNo… in ShouldQuery()
4860 void Core::CacheEntry::ScheduleQuery(TimeMilli aQueryTime) in ScheduleQuery()
4882 Error Core::CacheEntry::Add(const ResultCallback &aCallback) in Add()
4958 void Core::CacheEntry::Remove(const ResultCallback &aCallback) in Remove()
4971 Get<Core>().mCacheTask.Post(); in Remove()
4977 void Core::CacheEntry::ClearEmptyCallbacks(void) in ClearEmptyCallbacks()
4989 void Core::CacheEntry::HandleTimer(CacheContext &aContext) in HandleTimer()
5048 Core::ResultCallback *Core::CacheEntry::FindCallbackMatching(const ResultCallback &aCallback) in FindCallbackMatching()
5072 void Core::CacheEntry::DetermineNextFireTime(void) in DetermineNextFireTime()
5108 void Core::CacheEntry::ScheduleTimer(void) { ScheduleFireTimeOn(Get<Core>().mCacheTimer); } in ScheduleTimer()
5110 void Core::CacheEntry::PrepareQuery(CacheContext &aContext) in PrepareQuery()
5170 template <typename ResultType> void Core::CacheEntry::InvokeCallbacks(const ResultType &aResult) in InvokeCallbacks()
5181 Error Core::BrowseCache::Init(Instance &aInstance, const char *aServiceType, const char *aSubTypeLa… in Init()
5196 Error Core::BrowseCache::Init(Instance &aInstance, const Browser &aBrowser) in Init()
5201 void Core::BrowseCache::ClearCompressOffsets(void) in ClearCompressOffsets()
5208 bool Core::BrowseCache::Matches(const Name &aFullName) const in Matches()
5231 bool Core::BrowseCache::Matches(const char *aServiceType, const char *aSubTypeLabel) const in Matches()
5250 bool Core::BrowseCache::Matches(const Browser &aBrowser) const in Matches()
5255 bool Core::BrowseCache::Matches(const ExpireChecker &aExpireChecker) const { return ShouldDelete(aE… in Matches()
5257 Error Core::BrowseCache::Add(const Browser &aBrowser) { return CacheEntry::Add(ResultCallback(aBrow… in Add()
5259 void Core::BrowseCache::Remove(const Browser &aBrowser) { CacheEntry::Remove(ResultCallback(aBrowse… in Remove()
5261 void Core::BrowseCache::ProcessResponseRecord(const Message &aMessage, uint16_t aRecordOffset) in ProcessResponseRecord()
5310 …Get<Core>().AddPassiveSrvTxtCache(ptrEntry->mServiceInstance.AsCString(), mServiceType.AsCString()… in ProcessResponseRecord()
5321 void Core::BrowseCache::PreparePtrQuestion(TxMessage &aQuery, TimeMilli aNow) in PreparePtrQuestion()
5346 void Core::BrowseCache::DiscoverCompressOffsets(void) in DiscoverCompressOffsets()
5348 for (const BrowseCache &browseCache : Get<Core>().mBrowseCacheList) in DiscoverCompressOffsets()
5365 for (const SrvCache &srvCache : Get<Core>().mSrvCacheList) in DiscoverCompressOffsets()
5374 for (const TxtCache &txtCache : Get<Core>().mTxtCacheList) in DiscoverCompressOffsets()
5387 void Core::BrowseCache::AppendServiceTypeOrSubTypeTo(TxMessage &aTxMessage, Section aSection) in AppendServiceTypeOrSubTypeTo()
5406 void Core::BrowseCache::AppendKnownAnswer(TxMessage &aTxMessage, const PtrEntry &aPtrEntry, TimeMil… in AppendKnownAnswer()
5428 void Core::BrowseCache::UpdateRecordStateAfterQuery(TimeMilli aNow) in UpdateRecordStateAfterQuery()
5436 void Core::BrowseCache::DetermineRecordFireTime(void) in DetermineRecordFireTime()
5444 void Core::BrowseCache::ProcessExpiredRecords(TimeMilli aNow) in ProcessExpiredRecords()
5461 void Core::BrowseCache::ReportResultsTo(ResultCallback &aCallback) const in ReportResultsTo()
5477 void Core::BrowseCache::CopyInfoTo(Browser &aBrowser, CacheInfo &aInfo) const in CopyInfoTo()
5481 aBrowser.mInfraIfIndex = Get<Core>().mInfraIfIndex; in CopyInfoTo()
5492 Error Core::BrowseCache::PtrEntry::Init(const char *aServiceInstance) in Init()
5499 bool Core::BrowseCache::PtrEntry::Matches(const ExpireChecker &aExpireChecker) const in Matches()
5504 void Core::BrowseCache::PtrEntry::ConvertTo(BrowseResult &aResult, const BrowseCache &aBrowseCache)… in ConvertTo()
5512 aResult.mInfraIfIndex = aBrowseCache.Get<Core>().mInfraIfIndex; in ConvertTo()
5518 Error Core::ServiceCache::Init(Instance &aInstance, Type aType, const char *aServiceInstance, const… in Init()
5531 void Core::ServiceCache::ClearCompressOffsets(void) in ClearCompressOffsets()
5537 bool Core::ServiceCache::Matches(const Name &aFullName) const in Matches()
5542 bool Core::ServiceCache::Matches(const char *aServiceInstance, const char *aServiceType) const in Matches()
5547 void Core::ServiceCache::PrepareQueryQuestion(TxMessage &aQuery, uint16_t aRrType) in PrepareQueryQuestion()
5561 void Core::ServiceCache::AppendServiceNameTo(TxMessage &aTxMessage, Section aSection) in AppendServiceNameTo()
5574 void Core::ServiceCache::UpdateRecordStateAfterQuery(TimeMilli aNow) { mRecord.UpdateStateAfterQuer… in UpdateRecordStateAfterQuery()
5576 void Core::ServiceCache::DetermineRecordFireTime(void) { mRecord.UpdateQueryAndFireTimeOn(*this); } in DetermineRecordFireTime()
5578 bool Core::ServiceCache::ShouldStartInitialQueries(void) const in ShouldStartInitialQueries()
5593 Error Core::SrvCache::Init(Instance &aInstance, const char *aServiceInstance, const char *aServiceT… in Init()
5603 Error Core::SrvCache::Init(Instance &aInstance, const ServiceName &aServiceName) in Init()
5608 Error Core::SrvCache::Init(Instance &aInstance, const SrvResolver &aResolver) in Init()
5613 bool Core::SrvCache::Matches(const Name &aFullName) const { return ServiceCache::Matches(aFullName)… in Matches()
5615 bool Core::SrvCache::Matches(const ServiceName &aServiceName) const in Matches()
5620 bool Core::SrvCache::Matches(const SrvResolver &aResolver) const in Matches()
5625 bool Core::SrvCache::Matches(const ExpireChecker &aExpireChecker) const { return ShouldDelete(aExpi… in Matches()
5627 Error Core::SrvCache::Add(const SrvResolver &aResolver) { return CacheEntry::Add(ResultCallback(aRe… in Add()
5629 void Core::SrvCache::Remove(const SrvResolver &aResolver) { CacheEntry::Remove(ResultCallback(aReso… in Remove()
5631 void Core::SrvCache::ProcessResponseRecord(const Message &aMessage, uint16_t aRecordOffset) in ProcessResponseRecord()
5700 Get<Core>().AddPassiveSrvTxtCache(mServiceInstance.AsCString(), mServiceType.AsCString()); in ProcessResponseRecord()
5701 Get<Core>().AddPassiveIp6AddrCache(mHostName.AsCString()); in ProcessResponseRecord()
5712 void Core::SrvCache::PrepareSrvQuestion(TxMessage &aQuery) in PrepareSrvQuestion()
5718 void Core::SrvCache::DiscoverCompressOffsets(void) in DiscoverCompressOffsets()
5720 for (const SrvCache &srvCache : Get<Core>().mSrvCacheList) in DiscoverCompressOffsets()
5739 void Core::SrvCache::ProcessExpiredRecords(TimeMilli aNow) in ProcessExpiredRecords()
5752 void Core::SrvCache::ReportResultTo(ResultCallback &aCallback) const in ReportResultTo()
5763 void Core::SrvCache::ConvertTo(SrvResult &aResult) const in ConvertTo()
5774 aResult.mInfraIfIndex = Get<Core>().mInfraIfIndex; in ConvertTo()
5779 void Core::SrvCache::CopyInfoTo(SrvResolver &aResolver, CacheInfo &aInfo) const in CopyInfoTo()
5783 aResolver.mInfraIfIndex = Get<Core>().mInfraIfIndex; in CopyInfoTo()
5794 Error Core::TxtCache::Init(Instance &aInstance, const char *aServiceInstance, const char *aServiceT… in Init()
5801 Error Core::TxtCache::Init(Instance &aInstance, const ServiceName &aServiceName) in Init()
5806 Error Core::TxtCache::Init(Instance &aInstance, const TxtResolver &aResolver) in Init()
5811 bool Core::TxtCache::Matches(const Name &aFullName) const { return ServiceCache::Matches(aFullName)… in Matches()
5813 bool Core::TxtCache::Matches(const ServiceName &aServiceName) const in Matches()
5818 bool Core::TxtCache::Matches(const TxtResolver &aResolver) const in Matches()
5823 bool Core::TxtCache::Matches(const ExpireChecker &aExpireChecker) const { return ShouldDelete(aExpi… in Matches()
5825 Error Core::TxtCache::Add(const TxtResolver &aResolver) { return CacheEntry::Add(ResultCallback(aRe… in Add()
5827 void Core::TxtCache::Remove(const TxtResolver &aResolver) { CacheEntry::Remove(ResultCallback(aReso… in Remove()
5829 void Core::TxtCache::ProcessResponseRecord(const Message &aMessage, uint16_t aRecordOffset) in ProcessResponseRecord()
5882 void Core::TxtCache::PrepareTxtQuestion(TxMessage &aQuery) in PrepareTxtQuestion()
5888 void Core::TxtCache::DiscoverCompressOffsets(void) in DiscoverCompressOffsets()
5890 for (const SrvCache &srvCache : Get<Core>().mSrvCacheList) in DiscoverCompressOffsets()
5907 for (const TxtCache &txtCache : Get<Core>().mTxtCacheList) in DiscoverCompressOffsets()
5926 void Core::TxtCache::ProcessExpiredRecords(TimeMilli aNow) in ProcessExpiredRecords()
5939 void Core::TxtCache::ReportResultTo(ResultCallback &aCallback) const in ReportResultTo()
5950 void Core::TxtCache::ConvertTo(TxtResult &aResult) const in ConvertTo()
5959 aResult.mInfraIfIndex = Get<Core>().mInfraIfIndex; in ConvertTo()
5964 void Core::TxtCache::CopyInfoTo(TxtResolver &aResolver, CacheInfo &aInfo) const in CopyInfoTo()
5968 aResolver.mInfraIfIndex = Get<Core>().mInfraIfIndex; in CopyInfoTo()
5979 Error Core::AddrCache::Init(Instance &aInstance, Type aType, const char *aHostName) in Init()
5989 Error Core::AddrCache::Init(Instance &aInstance, Type aType, const AddressResolver &aResolver) in Init()
5994 bool Core::AddrCache::Matches(const Name &aFullName) const in Matches()
5999 bool Core::AddrCache::Matches(const char *aName) const { return NameMatch(mName, aName); } in Matches()
6001 bool Core::AddrCache::Matches(const AddressResolver &aResolver) const { return Matches(aResolver.mH… in Matches()
6003 bool Core::AddrCache::Matches(const ExpireChecker &aExpireChecker) const { return ShouldDelete(aExp… in Matches()
6005 Error Core::AddrCache::Add(const AddressResolver &aResolver) in Add()
6010 void Core::AddrCache::Remove(const AddressResolver &aResolver) in Remove()
6015 void Core::AddrCache::PrepareQueryQuestion(TxMessage &aQuery, uint16_t aRrType) in PrepareQueryQuestion()
6028 void Core::AddrCache::AppendNameTo(TxMessage &aTxMessage, Section aSection) in AppendNameTo()
6043 void Core::AddrCache::UpdateRecordStateAfterQuery(TimeMilli aNow) in UpdateRecordStateAfterQuery()
6051 void Core::AddrCache::DetermineRecordFireTime(void) in DetermineRecordFireTime()
6059 void Core::AddrCache::ProcessExpiredRecords(TimeMilli aNow) in ProcessExpiredRecords()
6076 void Core::AddrCache::ReportResultsTo(ResultCallback &aCallback) const in ReportResultsTo()
6089 void Core::AddrCache::ConstructResult(AddressResult &aResult, Heap::Array<AddressAndTtl> &aAddrArra… in ConstructResult()
6135 aResult.mInfraIfIndex = Get<Core>().mInfraIfIndex; in ConstructResult()
6138 bool Core::AddrCache::ShouldStartInitialQueries(void) const in ShouldStartInitialQueries()
6169 void Core::AddrCache::AddNewResponseAddress(const Ip6::Address &aAddress, uint32_t aTtl, bool aCach… in AddNewResponseAddress()
6197 void Core::AddrCache::CommitNewResponseEntries(void) in CommitNewResponseEntries()
6304 void Core::AddrCache::CopyInfoTo(AddressResolver &aResolver, CacheInfo &aInfo) const in CopyInfoTo()
6307 aResolver.mInfraIfIndex = Get<Core>().mInfraIfIndex; in CopyInfoTo()
6318 Core::AddrCache::AddrEntry::AddrEntry(const Ip6::Address &aAddress) in AddrEntry()
6324 bool Core::AddrCache::AddrEntry::Matches(const ExpireChecker &aExpireChecker) const in Matches()
6329 bool Core::AddrCache::AddrEntry::Matches(EmptyChecker aChecker) const in Matches()
6339 Error Core::Ip6AddrCache::Init(Instance &aInstance, const char *aHostName) in Init()
6344 Error Core::Ip6AddrCache::Init(Instance &aInstance, const AddressResolver &aResolver) in Init()
6349 void Core::Ip6AddrCache::ProcessResponseRecord(const Message &aMessage, uint16_t aRecordOffset) in ProcessResponseRecord()
6364 void Core::Ip6AddrCache::PrepareAaaaQuestion(TxMessage &aQuery) in PrepareAaaaQuestion()
6372 Error Core::Ip4AddrCache::Init(Instance &aInstance, const char *aHostName) in Init()
6377 Error Core::Ip4AddrCache::Init(Instance &aInstance, const AddressResolver &aResolver) in Init()
6382 void Core::Ip4AddrCache::ProcessResponseRecord(const Message &aMessage, uint16_t aRecordOffset) in ProcessResponseRecord()
6400 void Core::Ip4AddrCache::PrepareAQuestion(TxMessage &aQuery) { PrepareQueryQuestion(aQuery, Resourc… in PrepareAQuestion()
6407 Core::EntryIterator::EntryIterator(Instance &aInstance) in EntryIterator()
6413 Error Core::EntryIterator::GetNextHost(Host &aHost, EntryState &aState) in GetNextHost()
6419 mHostEntry = Get<Core>().mHostEntries.GetHead(); in GetNextHost()
6438 Error Core::EntryIterator::GetNextService(Service &aService, EntryState &aState) in GetNextService()
6444 mServiceEntry = Get<Core>().mServiceEntries.GetHead(); in GetNextService()
6463 Error Core::EntryIterator::GetNextKey(Key &aKey, EntryState &aState) in GetNextKey()
6469 mHostEntry = Get<Core>().mHostEntries.GetHead(); in GetNextKey()
6481 mServiceEntry = Get<Core>().mServiceEntries.GetHead(); in GetNextKey()
6501 Error Core::EntryIterator::GetNextBrowser(Browser &aBrowser, CacheInfo &aInfo) in GetNextBrowser()
6507 mBrowseCache = Get<Core>().mBrowseCacheList.GetHead(); in GetNextBrowser()
6524 Error Core::EntryIterator::GetNextSrvResolver(SrvResolver &aResolver, CacheInfo &aInfo) in GetNextSrvResolver()
6530 mSrvCache = Get<Core>().mSrvCacheList.GetHead(); in GetNextSrvResolver()
6547 Error Core::EntryIterator::GetNextTxtResolver(TxtResolver &aResolver, CacheInfo &aInfo) in GetNextTxtResolver()
6553 mTxtCache = Get<Core>().mTxtCacheList.GetHead(); in GetNextTxtResolver()
6570 Error Core::EntryIterator::GetNextIp6AddressResolver(AddressResolver &aResolver, CacheInfo &aInfo) in GetNextIp6AddressResolver()
6576 mIp6AddrCache = Get<Core>().mIp6AddrCacheList.GetHead(); in GetNextIp6AddressResolver()
6593 Error Core::EntryIterator::GetNextIp4AddressResolver(AddressResolver &aResolver, CacheInfo &aInfo) in GetNextIp4AddressResolver()
6599 mIp4AddrCache = Get<Core>().mIp4AddrCacheList.GetHead(); in GetNextIp4AddressResolver()