Home
last modified time | relevance | path

Searched refs:aName (Results 1 – 20 of 20) sorted by relevance

/openthread-2.7.6/src/core/net/
Ddnssd_server.hpp148 …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 …]
Ddnssd_server.cpp266 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 …]
Ddns_types.cpp259 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 …]
Dsrp_client.hpp154 void SetName(const char *aName) { mName = aName; } in SetName() argument
477 Error SetHostName(const char *aName);
624 Error SetDomainName(const char *aName);
Ddns_types.hpp798 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,
Ddns_client.hpp268 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…
Ddns_client.cpp219 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()
Dsrp_client.cpp382 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/
Dlookup_table.hpp63 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,
Dlookup_table.cpp43 const void *LookupTable::Find(const char *aName, in Find() argument
69 compare = strcmp(aName, aNameGetter(entry)); in Find()
/openthread-2.7.6/tests/unit/
Dtest_heap_string.cpp41 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()
Dtest_lookup_table.cpp54 constexpr TableEntry(const char *aName, uint8_t aValue) in TableEntry()
56 , Entry(aName) in TableEntry()
Dtest_array.cpp182 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()
Dtest_linked_list.cpp50 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()
Dtest_string.cpp44 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/
Durl.cpp74 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()
Durl.hpp86 const char *GetValue(const char *aName, const char *aLastValue = nullptr) const;
/openthread-2.7.6/include/openthread/
Dsrp_client.h401 otError otSrpClientSetHostName(otInstance *aInstance, const char *aName);
585 otError otSrpClientSetDomainName(otInstance *aInstance, const char *aName);
/openthread-2.7.6/src/core/api/
Dsrp_client_api.cpp139 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/
Dplatform-posix.h217 void platformLoggingInit(const char *aName);