Searched refs:txtRecord (Results 1 – 3 of 3) sorted by relevance
/openthread-3.6.0/tests/unit/ |
D | test_dns.cpp | 1088 Dns::TxtRecord txtRecord; in TestHeaderAndResourceRecords() local 1171 txtRecord.Init(); in TestHeaderAndResourceRecords() 1172 txtRecord.SetTtl(kTxtTtl); in TestHeaderAndResourceRecords() 1173 txtRecord.SetLength(sizeof(kTxtData)); in TestHeaderAndResourceRecords() 1174 SuccessOrQuit(message->Append(txtRecord)); in TestHeaderAndResourceRecords() 1312 SuccessOrQuit(Dns::ResourceRecord::ReadRecord(*message, offset, txtRecord)); in TestHeaderAndResourceRecords() 1313 VerifyOrQuit(txtRecord.GetTtl() == kTxtTtl); in TestHeaderAndResourceRecords() 1316 SuccessOrQuit(txtRecord.ReadTxtData(*message, offset, buffer, len)); in TestHeaderAndResourceRecords() 1319 … printf(" \"%s\" TXT %u %d \"%s\"\n", instanceName, txtRecord.GetTtl(), txtRecord.GetLength(), in TestHeaderAndResourceRecords() 1325 VerifyOrQuit(txtRecord.ReadTxtData(*message, savedOffset, buffer, len) == kErrorNoBufs); in TestHeaderAndResourceRecords() [all …]
|
/openthread-3.6.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()
|