/openthread-3.4.0/src/core/net/ |
D | dns_client.hpp | 811 void ReadFrom(const Query &aQuery) { IgnoreError(aQuery.Read(0, *this)); } in ReadFrom() 830 … AllocateQuery(const QueryInfo &aInfo, const char *aLabel, const char *aName, Query *&aQuery); 831 void FreeQuery(Query &aQuery); 832 void UpdateQuery(Query &aQuery, const QueryInfo &aInfo) { aQuery.Write(0, aInfo); } in UpdateQuery() argument 833 Query &FindMainQuery(Query &aQuery); 834 Error SendQuery(Query &aQuery, QueryInfo &aInfo, bool aUpdateTimer); 835 void FinalizeQuery(Query &aQuery, Error aError); 837 …static void GetQueryTypeAndCallback(const Query &aQuery, QueryType &aType, Callback &aCallback, vo… 838 Error AppendNameFromQuery(const Query &aQuery, Message &aMessage); 842 … Error ParseResponse(const Message &aResponseMessage, Query *&aQuery, Error &aResponseError); [all …]
|
D | dns_client.cpp | 1028 …lient::AllocateQuery(const QueryInfo &aInfo, const char *aLabel, const char *aName, Query *&aQuery) in AllocateQuery() argument 1032 aQuery = nullptr; in AllocateQuery() 1036 aQuery = Get<MessagePool>().Allocate(Message::kTypeOther); in AllocateQuery() 1037 VerifyOrExit(aQuery != nullptr, error = kErrorNoBufs); in AllocateQuery() 1039 SuccessOrExit(error = aQuery->Append(aInfo)); in AllocateQuery() 1043 SuccessOrExit(error = Name::AppendLabel(aLabel, *aQuery)); in AllocateQuery() 1046 SuccessOrExit(error = Name::AppendName(aName, *aQuery)); in AllocateQuery() 1049 FreeAndNullMessageOnError(aQuery, error); in AllocateQuery() 1053 Client::Query &Client::FindMainQuery(Query &aQuery) in FindMainQuery() argument 1057 info.ReadFrom(aQuery); in FindMainQuery() [all …]
|
D | dnssd_server.cpp | 994 bool Server::CanAnswerQuery(const QueryTransaction &aQuery, in CanAnswerQuery() argument 1002 sdType = GetQueryTypeAndName(aQuery.GetResponseHeader(), aQuery.GetResponseMessage(), name); in CanAnswerQuery() 1019 bool Server::CanAnswerQuery(const Server::QueryTransaction &aQuery, const char *aHostFullName) in CanAnswerQuery() argument 1024 sdType = GetQueryTypeAndName(aQuery.GetResponseHeader(), aQuery.GetResponseMessage(), name); in CanAnswerQuery() 1028 void Server::AnswerQuery(QueryTransaction &aQuery, in AnswerQuery() argument 1032 Header &responseHeader = aQuery.GetResponseHeader(); in AnswerQuery() 1033 Message &responseMessage = aQuery.GetResponseMessage(); in AnswerQuery() 1035 NameCompressInfo &compressInfo = aQuery.GetNameCompressInfo(); in AnswerQuery() 1037 if (HasQuestion(aQuery.GetResponseHeader(), aQuery.GetResponseMessage(), aServiceFullName, in AnswerQuery() 1052 … if (HasQuestion(aQuery.GetResponseHeader(), aQuery.GetResponseMessage(), aInstanceInfo.mFullName, in AnswerQuery() [all …]
|
D | dnssd_server.hpp | 244 const otDnssdQuery *GetNextQuery(const otDnssdQuery *aQuery) const; 255 …static DnsQueryType GetQueryTypeAndName(const otDnssdQuery *aQuery, char (&aName)[Name::kMaxNameSi… 517 static bool CanAnswerQuery(const QueryTransaction &aQuery, 520 void AnswerQuery(QueryTransaction &aQuery, 523 …static bool CanAnswerQuery(const Server::QueryTransaction &aQuery, const char *aHostFullName… 524 …void AnswerQuery(QueryTransaction &aQuery, const char *aHostFullName, const otDnssdHostInfo &aHost… 525 void FinalizeQuery(QueryTransaction &aQuery, Header::Response aResponseCode);
|
D | sntp_client.cpp | 127 Error Client::Query(const otSntpQuery *aQuery, otSntpResponseHandler aHandler, void *aContext) in Query() argument 136 VerifyOrExit(aQuery->mMessageInfo != nullptr, error = kErrorInvalidArgs); in Query() 143 messageInfo = AsCoreTypePtr(aQuery->mMessageInfo); in Query() 259 void Client::FinalizeSntpTransaction(Message &aQuery, in FinalizeSntpTransaction() argument 264 DequeueMessage(aQuery); in FinalizeSntpTransaction()
|
D | sntp_client.hpp | 510 Error Query(const otSntpQuery *aQuery, otSntpResponseHandler aHandler, void *aContext); 525 …void FinalizeSntpTransaction(Message &aQuery, const QueryMetadata &aQueryMetadata, uint64_t aTime,…
|
/openthread-3.4.0/src/core/api/ |
D | dns_server_api.cpp | 71 const otDnssdQuery *otDnssdGetNextQuery(otInstance *aInstance, const otDnssdQuery *aQuery) in otDnssdGetNextQuery() argument 73 return AsCoreType(aInstance).Get<Dns::ServiceDiscovery::Server>().GetNextQuery(aQuery); in otDnssdGetNextQuery() 76 otDnssdQueryType otDnssdGetQueryTypeAndName(const otDnssdQuery *aQuery, char (*aNameOutput)[OT_DNS_… in otDnssdGetQueryTypeAndName() argument 78 AssertPointerIsNotNull(aQuery); in otDnssdGetQueryTypeAndName() 81 return MapEnum(Dns::ServiceDiscovery::Server::GetQueryTypeAndName(aQuery, *aNameOutput)); in otDnssdGetQueryTypeAndName()
|
D | sntp_api.cpp | 46 const otSntpQuery *aQuery, in otSntpClientQuery() argument 50 return AsCoreType(aInstance).Get<Sntp::Client>().Query(aQuery, aHandler, aContext); in otSntpClientQuery()
|
/openthread-3.4.0/src/posix/platform/ |
D | resolver.cpp | 114 void Resolver::Query(otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery) in Query() argument 118 uint16_t length = otMessageGetLength(aQuery); in Query() 124 …VerifyOrExit(otMessageRead(aQuery, 0, &packet, sizeof(packet)) == length, error = OT_ERROR_NO_BUFS… in Query() 295 …DnsStartUpstreamQuery(otInstance *aInstance, otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery) in otPlatDnsStartUpstreamQuery() argument 299 gResolver.Query(aTxn, aQuery); in otPlatDnsStartUpstreamQuery()
|
D | resolver.hpp | 62 void Query(otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery);
|
/openthread-3.4.0/include/openthread/ |
D | dnssd_server.h | 225 const otDnssdQuery *otDnssdGetNextQuery(otInstance *aInstance, const otDnssdQuery *aQuery); 236 otDnssdQueryType otDnssdGetQueryTypeAndName(const otDnssdQuery *aQuery, char (*aNameOutput)[OT_DNS_…
|
D | sntp.h | 97 const otSntpQuery *aQuery,
|
/openthread-3.4.0/include/openthread/platform/ |
D | dns.h | 76 …nsStartUpstreamQuery(otInstance *aInstance, otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery);
|
/openthread-3.4.0/tests/unit/ |
D | test_platform.cpp | 613 …DnsStartUpstreamQuery(otInstance *aInstance, otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery) in otPlatDnsStartUpstreamQuery() argument 617 OT_UNUSED_VARIABLE(aQuery); in otPlatDnsStartUpstreamQuery()
|