Searched refs:txtRecord (Results 1 – 3 of 3) sorted by relevance
/openthread-3.7.0/tests/unit/ |
D | test_dns.cpp | 1165 Dns::TxtRecord txtRecord; in TestHeaderAndResourceRecords() local 1248 txtRecord.Init(); in TestHeaderAndResourceRecords() 1249 txtRecord.SetTtl(kTxtTtl); in TestHeaderAndResourceRecords() 1250 txtRecord.SetLength(sizeof(kTxtData)); in TestHeaderAndResourceRecords() 1251 SuccessOrQuit(message->Append(txtRecord)); in TestHeaderAndResourceRecords() 1389 SuccessOrQuit(Dns::ResourceRecord::ReadRecord(*message, offset, txtRecord)); in TestHeaderAndResourceRecords() 1390 VerifyOrQuit(txtRecord.GetTtl() == kTxtTtl); in TestHeaderAndResourceRecords() 1393 SuccessOrQuit(txtRecord.ReadTxtData(*message, offset, buffer, len)); in TestHeaderAndResourceRecords() 1396 … printf(" \"%s\" TXT %u %d \"%s\"\n", instanceName, txtRecord.GetTtl(), txtRecord.GetLength(), in TestHeaderAndResourceRecords() 1402 VerifyOrQuit(txtRecord.ReadTxtData(*message, savedOffset, buffer, len) == kErrorNoBufs); in TestHeaderAndResourceRecords() [all …]
|
/openthread-3.7.0/src/core/net/ |
D | dnssd_server.cpp | 621 TxtRecord txtRecord; in AppendTxtRecord() local 630 txtRecord.Init(); in AppendTxtRecord() 631 txtRecord.SetTtl(aTtl); in AppendTxtRecord() 632 txtRecord.SetLength(aTxtLength); in AppendTxtRecord() 635 SuccessOrExit(error = mMessage->Append(txtRecord)); in AppendTxtRecord()
|
D | dns_client.cpp | 342 TxtRecord txtRecord; in ReadTxtRecord() local 358 …ror = ResourceRecord::FindRecord(*mMessage, offset, numRecords, /* aIndex */ 0, aName, txtRecord)); in ReadTxtRecord() 360 …error = txtRecord.ReadTxtData(*mMessage, offset, aServiceInfo.mTxtData, aServiceInfo.mTxtDataSize); in ReadTxtRecord() 372 aServiceInfo.mTxtDataTtl = txtRecord.GetTtl(); in ReadTxtRecord()
|