/openthread-2.7.6/src/core/net/ |
D | dnssd_server.hpp | 148 …static DnsQueryType GetQueryTypeAndName(const otDnssdQuery *aQuery, char (&aName)[Name::kMaxNameSi… 188 uint16_t GetInstanceNameOffset(const Message &aMessage, const char *aName) const in GetInstanceNameOffset() 190 return MatchCompressedName(aMessage, mInstanceNameOffset, aName) ? mInstanceNameOffset in GetInstanceNameOffset() 202 uint16_t GetHostNameOffset(const Message &aMessage, const char *aName) const in GetHostNameOffset() 204 return MatchCompressedName(aMessage, mHostNameOffset, aName) ? mHostNameOffset in GetHostNameOffset() 217 … static bool MatchCompressedName(const Message &aMessage, uint16_t aOffset, const char *aName) in MatchCompressedName() argument 219 … return aOffset != kUnknownOffset && Name::CompareName(aMessage, aOffset, aName) == kErrorNone; in MatchCompressedName() 308 static Error AppendQuestion(const char * aName, 336 …static Error AppendServiceName(Message &aMessage, const char *aName, NameCompressInfo &… 337 …static Error AppendInstanceName(Message &aMessage, const char *aName, NameCompressInfo … [all …]
|
D | dnssd_server.cpp | 266 Error Server::AppendQuestion(const char * aName, in AppendQuestion() argument 276 SuccessOrExit(error = AppendServiceName(aMessage, aName, aCompressInfo)); in AppendQuestion() 280 SuccessOrExit(error = AppendInstanceName(aMessage, aName, aCompressInfo)); in AppendQuestion() 283 SuccessOrExit(error = AppendHostName(aMessage, aName, aCompressInfo)); in AppendQuestion() 375 Error Server::AppendServiceName(Message &aMessage, const char *aName, NameCompressInfo &aCompressIn… in AppendServiceName() argument 378 uint16_t serviceCompressOffset = aCompressInfo.GetServiceNameOffset(aMessage, aName); in AppendServiceName() 382 serviceName = StringFind(aName, kDnssdSubTypeLabel); in AppendServiceName() 386 …uint8_t subTypeLabelLength = static_cast<uint8_t>(serviceName - aName) + sizeof(kDnssdSubTypeLabel… in AppendServiceName() 388 SuccessOrExit(error = Name::AppendMultipleLabels(aName, subTypeLabelLength, aMessage)); in AppendServiceName() 395 serviceName = aName; in AppendServiceName() [all …]
|
D | dns_types.cpp | 259 Error Name::AppendName(const char *aName, Message &aMessage) in AppendName() argument 263 SuccessOrExit(error = AppendMultipleLabels(aName, aMessage)); in AppendName() 378 Error Name::CompareName(const Message &aMessage, uint16_t &aOffset, const char *aName) in CompareName() argument 384 if (*aName == kLabelSeperatorChar) in CompareName() 386 aName++; in CompareName() 387 VerifyOrExit(*aName == kNullChar, error = kErrorInvalidArgs); in CompareName() 397 if (matches && !iterator.CompareLabel(aName, /* aIsSingleLabel */ false)) in CompareName() 412 if (matches && (*aName == kNullChar)) in CompareName() 477 Error Name::CompareName(const Message &aMessage, uint16_t &aOffset, const Name &aName) in CompareName() argument 479 return aName.IsFromCString() in CompareName() [all …]
|
D | srp_client.hpp | 154 void SetName(const char *aName) { mName = aName; } in SetName() argument 477 Error SetHostName(const char *aName); 624 Error SetDomainName(const char *aName);
|
D | dns_types.hpp | 798 static Error AppendName(const char *aName, Message &aMessage); 918 static Error CompareName(const Message &aMessage, uint16_t &aOffset, const char *aName); 970 static Error CompareName(const Message &aMessage, uint16_t &aOffset, const Name &aName); 983 static bool IsSubDomainOf(const char *aName, const char *aDomain); 1017 bool CompareLabel(const char *&aName, bool aIsSingleLabel) const; 1336 …r FindRecord(const Message &aMessage, uint16_t &aOffset, uint16_t &aNumRecords, const Name &aName); 1375 const Name & aName, in FindRecord() argument 1378 return FindRecord(aMessage, aOffset, aNumRecords, aIndex, aName, RecordType::kType, aRecord, in FindRecord() 1437 const Name & aName,
|
D | dns_client.hpp | 268 Error FindServiceInfo(Section aSection, const Name &aName, ServiceInfo &aServiceInfo) const; 704 const char * aName, 706 …Error AllocateQuery(const QueryInfo &aInfo, const char *aLabel, const char *aName, Query *&a…
|
D | dns_client.cpp | 219 Error Client::Response::FindServiceInfo(Section aSection, const Name &aName, ServiceInfo &aServiceI… in FindServiceInfo() argument 240 …ror = ResourceRecord::FindRecord(*mMessage, offset, numRecords, /* aIndex */ 0, aName, srvRecord)); in FindServiceInfo() 281 …error = ResourceRecord::FindRecord(*mMessage, offset, numRecords, /* aIndex */ 0, aName, txtRecord… in FindServiceInfo() 689 const char * aName, in StartQuery() argument 717 SuccessOrExit(error = AllocateQuery(aInfo, aLabel, aName, query)); in StartQuery() 726 Error Client::AllocateQuery(const QueryInfo &aInfo, const char *aLabel, const char *aName, Query *&… in AllocateQuery() argument 740 SuccessOrExit(error = Name::AppendName(aName, *aQuery)); in AllocateQuery()
|
D | srp_client.cpp | 382 Error Client::SetDomainName(const char *aName) in SetDomainName() argument 388 mDomainName = (aName != nullptr) ? aName : kDefaultDomainName; in SetDomainName() 396 Error Client::SetHostName(const char *aName) in SetHostName() argument 400 VerifyOrExit(aName != nullptr, error = kErrorInvalidArgs); in SetHostName() 404 otLogInfoSrp("[client] Host name \"%s\"", aName); in SetHostName() 405 mHostInfo.SetName(aName); in SetHostName()
|
/openthread-2.7.6/src/core/utils/ |
D | lookup_table.hpp | 63 constexpr explicit Entry(const char *aName) in Entry() 64 : mName(aName) in Entry() 115 static const EntryType *Find(const char *aName, const EntryType (&aTable)[kLength]) in Find() argument 118 Find(aName, &aTable[0], kLength, sizeof(aTable[0]), GetName<EntryType>)); in Find() 142 static const void *Find(const char *aName,
|
D | lookup_table.cpp | 43 const void *LookupTable::Find(const char *aName, in Find() argument 69 compare = strcmp(aName, aNameGetter(entry)); in Find()
|
/openthread-2.7.6/tests/unit/ |
D | test_heap_string.cpp | 41 void PrintString(const char *aName, const HeapString &aString) in PrintString() argument 45 printf("%s = (null)\n", aName); in PrintString() 49 printf("%s = [%zu] \"%s\"\n", aName, strlen(aString.AsCString()), aString.AsCString()); in PrintString() 53 void VerifyString(const char *aName, const HeapString &aString, const char *aExpectedString) in VerifyString() argument 55 PrintString(aName, aString); in VerifyString()
|
D | test_lookup_table.cpp | 54 constexpr TableEntry(const char *aName, uint8_t aValue) in TableEntry() 56 , Entry(aName) in TableEntry()
|
D | test_array.cpp | 182 Entry(const char *aName, uint16_t aYear) in TestArrayCopyAndFindMatching() 183 : mName(aName) in TestArrayCopyAndFindMatching() 189 bool Matches(const char *aName) const { return strcmp(aName, mName) == 0; } in TestArrayCopyAndFindMatching()
|
D | test_linked_list.cpp | 50 Entry(const char *aName, uint16_t aId) in Entry() 51 : mName(aName) in Entry() 58 bool Matches(const char *aName) const { return strcmp(mName, aName) == 0; } in Matches()
|
D | test_string.cpp | 44 template <uint16_t kSize> void PrintString(const char *aName, const String<kSize> aString) in PrintString() argument 46 printf("\t%s = [%zu] \"%s\"\n", aName, strlen(aString.AsCString()), aString.AsCString()); in PrintString()
|
/openthread-2.7.6/src/lib/url/ |
D | url.cpp | 74 const char *Url::GetValue(const char *aName, const char *aLastValue) const in GetValue() argument 77 const size_t len = strlen(aName); in GetValue() 94 if (!strncmp(aName, start, len)) in GetValue()
|
D | url.hpp | 86 const char *GetValue(const char *aName, const char *aLastValue = nullptr) const;
|
/openthread-2.7.6/include/openthread/ |
D | srp_client.h | 401 otError otSrpClientSetHostName(otInstance *aInstance, const char *aName); 585 otError otSrpClientSetDomainName(otInstance *aInstance, const char *aName);
|
/openthread-2.7.6/src/core/api/ |
D | srp_client_api.cpp | 139 otError otSrpClientSetHostName(otInstance *aInstance, const char *aName) in otSrpClientSetHostName() argument 143 return instance.Get<Srp::Client>().SetHostName(aName); in otSrpClientSetHostName()
|
/openthread-2.7.6/src/posix/platform/ |
D | platform-posix.h | 217 void platformLoggingInit(const char *aName);
|