/openthread-latest/src/core/utils/ |
D | flash.cpp | 47 RecordHeader record; in Init() local 71 …for (mSwapUsed = kSwapMarkerSize; mSwapUsed <= mSwapSize - sizeof(record); mSwapUsed += record.Get… in Init() 73 otPlatFlashRead(&GetInstance(), mSwapIndex, mSwapUsed, &record, sizeof(record)); in Init() 74 if (!record.IsAddBeginSet()) in Init() 79 if (!record.IsAddCompleteSet()) in Init() 123 RecordHeader record; in Get() local 125 for (offset = kSwapMarkerSize; offset < mSwapUsed; offset += record.GetSize()) in Get() 127 otPlatFlashRead(&GetInstance(), mSwapIndex, offset, &record, sizeof(record)); in Get() 129 if ((record.GetKey() != aKey) || !record.IsValid()) in Get() 134 if (record.IsFirst()) in Get() [all …]
|
/openthread-latest/tests/scripts/thread-cert/border_router/ |
D | test_dnssd_instance_name_with_space.py | 161 def _assert_have_answer(self, dig_result, record, additional=False): argument 166 record = list(record) 172 if record[2] == 'AAAA': 173 record[3] = ipaddress.IPv6Address(record[3]) 175 if self._match_record(dig_answer, record): 178 print('not match: ', dig_answer, record, 179 list(a == b or (callable(b) and b(a)) for a, b in zip(dig_answer, record))) 181 self.fail((record, dig_result)) 183 def _match_record(self, record, match): argument 184 assert not any(callable(elem) for elem in record), record [all …]
|
D | test_dnssd_server.py | 289 def _assert_have_answer(self, dig_result, record, additional=False): argument 294 record = list(record) 300 if record[2] == 'AAAA': 301 record[3] = ipaddress.IPv6Address(record[3]) 303 if self._match_record(dig_answer, record): 306 print('not match: ', dig_answer, record, 307 list(a == b or (callable(b) and b(a)) for a, b in zip(dig_answer, record))) 309 self.fail((record, dig_result)) 311 def _match_record(self, record, match): argument 312 assert not any(callable(elem) for elem in record), record [all …]
|
D | test_dnssd_server_multi_border_routers.py | 369 def _assert_have_answer(self, dig_result, record, additional=False): argument 374 record = list(record) 380 if record[2] == 'AAAA': 381 record[3] = ipaddress.IPv6Address(record[3]) 383 if self._match_record(dig_answer, record): 386 print('not match: ', dig_answer, record, 387 list(a == b or (callable(b) and b(a)) for a, b in zip(dig_answer, record))) 389 self.fail((record, dig_result)) 391 def _match_record(self, record, match): argument 392 assert not any(callable(elem) for elem in record), record [all …]
|
/openthread-latest/tests/scripts/thread-cert/ |
D | find_border_agents.py | 74 for record in cache.get(ba.alias.lower(), []): 75 if isinstance(record, DNSService): 76 ba.server_name = record.server 77 ba.port = record.port 78 elif isinstance(record, DNSText): 79 text = bytearray(record.text) 85 for record in cache.get(ba.server_name.lower(), []): 86 if isinstance(record, DNSAddress): 87 addr = ipaddress.ip_address(record.address)
|
D | Cert_8_1_06_Commissioning.py | 189 } == set(p.dtls.record.content_type) 201 } == set(p.dtls.record.content_type) 210 [CONTENT_APPLICATION_DATA] == p.dtls.record.content_type 221 [CONTENT_APPLICATION_DATA] == p.dtls.record.content_type 234 [CONTENT_ALERT] == p.dtls.record.content_type
|
D | Cert_8_1_01_Commissioning.py | 221 } == set(p.dtls.record.content_type) 233 } == set(p.dtls.record.content_type) 242 [CONTENT_APPLICATION_DATA] == p.dtls.record.content_type 251 [CONTENT_APPLICATION_DATA] == p.dtls.record.content_type 266 [CONTENT_ALERT] == p.dtls.record.content_type
|
D | Cert_8_1_02_Commissioning.py | 108 p.dtls.record.content_type) == {CONTENT_CHANGE_CIPHER_SPEC, CONTENT_HANDSHAKE}) 112 …lambda p: p.dtls.record.content_type == [CONTENT_ALERT] and p.dtls.alert_message.desc == 20).must_…
|
D | dtls.py | 624 record = Record.from_bytes(data) 626 if record.version.major != 0xfe or record.version.minor != 0xFD: 630 …type(self).last_msg_is_change_cipher_spec = (record.content_type == ContentType.CHANGE_CIPHER_SPEC) 637 fragment_data = io.BytesIO(record.fragment) 641 content_class = content_map[record.content_type]
|
D | node.py | 356 record = list(line.split()) 359 if record[2] in ('SRV', 'TXT'): 360 record[0] = self.__unescape_dns_instance_name(record[0]) 362 record[1] = int(record[1]) 363 if record[3] == 'SRV': 364 record[0] = self.__unescape_dns_instance_name(record[0]) 365 … record[4], record[5], record[6] = map(int, [record[4], record[5], record[6]]) 366 elif record[3] == 'TXT': 367 record[0] = self.__unescape_dns_instance_name(record[0]) 368 record[4:] = [self.__parse_dns_dig_txt(line)] [all …]
|
/openthread-latest/third_party/mbedtls/repo/docs/architecture/psa-migration/ |
D | outcome-analysis.sh | 33 record() { function 56 record "before-default" 61 record "before-full" 67 record "after-default" 72 record "after-full"
|
/openthread-latest/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_ssl_decrypt.function | 128 * Test record decryption for CBC without EtM, focused on the verification 189 /* Prepare a buffer for record data */ 197 /* Prepare a dummy record header */ 206 /* Prepare dummy record content */ 218 * Prepare a pre-encryption record (with MAC and padding), and save it. 226 /* Save correct pre-encryption record */ 232 * Encrypt and decrypt the correct record, expecting success 243 * Modify each byte of the pre-encryption record before encrypting and 249 /* Restore correct pre-encryption record */ 278 * (Start the loop with correct padding, just to double-check that record [all …]
|
D | test_suite_ssl.function | 1183 /* Read previous record numbers */ 1229 * Test several record encryptions and decryptions 1231 * within the record buffer. 1269 * The record header affects the transformation in two ways: 1271 * 2) The record counter sometimes determines the IV. 1276 * version matches the record version, or that the 1300 /* Encrypt record */ 1312 * record. Double-check this. */ 1326 /* Decrypt record with t_dec */ 1361 * amount of space in the record buffer - in more detail: [all …]
|
/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/ |
D | logging_util.py | 30 def filter(self, record: logging.LogRecord) -> bool: 31 return record.levelno <= self.max_level
|
/openthread-latest/src/core/net/ |
D | srp_server.cpp | 917 Dns::ResourceRecord record; in ProcessHostDescriptionInstruction() local 921 SuccessOrExit(error = aMessage.Read(offset, record)); in ProcessHostDescriptionInstruction() 923 if (record.GetClass() == Dns::ResourceRecord::kClassAny) in ProcessHostDescriptionInstruction() 926 VerifyOrExit(IsValidDeleteAllRecord(record), error = kErrorFailed); in ProcessHostDescriptionInstruction() 938 else if (record.GetType() == Dns::ResourceRecord::kTypeAaaa) in ProcessHostDescriptionInstruction() 942 VerifyOrExit(record.GetClass() == aMetadata.mDnsZone.GetClass(), error = kErrorFailed); in ProcessHostDescriptionInstruction() 944 SuccessOrExit(error = aHost.ProcessTtl(record.GetTtl())); in ProcessHostDescriptionInstruction() 954 else if (record.GetType() == Dns::ResourceRecord::kTypeKey) in ProcessHostDescriptionInstruction() 959 VerifyOrExit(record.GetClass() == aMetadata.mDnsZone.GetClass(), error = kErrorFailed); in ProcessHostDescriptionInstruction() 961 SuccessOrExit(error = aHost.ProcessTtl(record.GetTtl())); in ProcessHostDescriptionInstruction() [all …]
|
D | dns_types.cpp | 813 ResourceRecord record; in ParseRecords() local 816 SuccessOrExit(error = record.ReadFrom(aMessage, aOffset)); in ParseRecords() 817 aOffset += static_cast<uint16_t>(record.GetSize()); in ParseRecords() 832 ResourceRecord record; in FindRecord() local 847 SuccessOrExit(error = record.ReadFrom(aMessage, aOffset)); in FindRecord() 850 aOffset += static_cast<uint16_t>(record.GetSize()); in FindRecord() 931 ResourceRecord record; in ReadRecord() local 933 SuccessOrExit(error = record.ReadFrom(aMessage, aOffset)); in ReadRecord() 935 … if (((aType == kTypeAny) || (record.GetType() == aType)) && (record.GetSize() >= aMinRecordSize)) in ReadRecord() 943 aOffset += static_cast<uint16_t>(record.GetSize()); in ReadRecord()
|
D | mdns.cpp | 1101 RecordInfo &record = aRecords[index].mRecord; in AnswerNonProbe() local 1103 if (!record.CanAnswer()) in AnswerNonProbe() 1114 record.ScheduleAnswer(aInfo); in AnswerNonProbe() 1141 RecordInfo &record = aRecords[index].mRecord; in AnswerProbe() local 1144 if (!record.CanAnswer()) in AnswerProbe() 1159 if (record.GetDurationSinceLastMulticast(now) >= kMinIntervalProbeResponse) in AnswerProbe() 1163 else if (record.GetLastMulticastTime(lastMulticastTime) == kErrorNone) in AnswerProbe() 1268 ResourceRecord record; in AppendKeyRecordTo() local 1281 record.Init(ResourceRecord::kTypeKey); in AppendKeyRecordTo() 1282 record.SetLength(mKeyData.GetLength()); in AppendKeyRecordTo() [all …]
|
/openthread-latest/tests/scripts/thread-cert/border_router/nat64/ |
D | test_upstream_dns.py | 130 for record in resolved_names: 131 self.assertIn(ipaddress.IPv6Address(record[0]).compressed, TEST_DOMAIN_IP6_ADDRESSES)
|
/openthread-latest/tests/unit/ |
D | test_mdns.cpp | 268 ResourceRecord record; in ParseFrom() local 272 SuccessOrQuit(aMessage.Read(aOffset, record)); in ParseFrom() 276 mType = record.GetType(); in ParseFrom() 277 mClass = record.GetClass() & kClassMask; in ParseFrom() 278 mCacheFlush = record.GetClass() & kClassCacheFlushFlag; in ParseFrom() 279 mTtl = record.GetTtl(); in ParseFrom() 289 VerifyOrQuit(record.GetLength() == sizeof(Ip6::Address)); in ParseFrom() 296 VerifyOrQuit(record.GetLength() > 0); in ParseFrom() 297 VerifyOrQuit(record.GetLength() < kMaxDataSize); in ParseFrom() 298 mData.mData.SetLength(record.GetLength()); in ParseFrom() [all …]
|
D | test_dns.cpp | 1167 Dns::ResourceRecord record; in TestHeaderAndResourceRecords() local 1451 SuccessOrQuit(Dns::ResourceRecord::ReadRecord(*message, offset, record)); in TestHeaderAndResourceRecords() 1452 VerifyOrQuit(record.GetType() == Dns::ResourceRecord::kTypeAaaa); in TestHeaderAndResourceRecords() 1453 offset += record.GetLength(); in TestHeaderAndResourceRecords() 1517 …t(Dns::ResourceRecord::FindRecord(*message, offset, kAdditionalCount, index, Dns::Name(), record)); in TestHeaderAndResourceRecords() 1521 …(Dns::ResourceRecord::FindRecord(*message, offset, kAdditionalCount, index, Dns::Name(), record) == in TestHeaderAndResourceRecords()
|
/openthread-latest/third_party/mbedtls/repo/tests/src/test_helpers/ |
D | ssl_helpers.c | 1613 int mbedtls_test_ssl_prepare_record_mac(mbedtls_record *record, in mbedtls_test_ssl_prepare_record_mac() argument 1622 memcpy(add_data, record->ctr, 8); in mbedtls_test_ssl_prepare_record_mac() 1623 add_data[8] = record->type; in mbedtls_test_ssl_prepare_record_mac() 1624 add_data[9] = record->ver[0]; in mbedtls_test_ssl_prepare_record_mac() 1625 add_data[10] = record->ver[1]; in mbedtls_test_ssl_prepare_record_mac() 1626 add_data[11] = (record->data_len >> 8) & 0xff; in mbedtls_test_ssl_prepare_record_mac() 1627 add_data[12] = (record->data_len >> 0) & 0xff; in mbedtls_test_ssl_prepare_record_mac() 1637 record->buf + record->data_offset, in mbedtls_test_ssl_prepare_record_mac() 1638 record->data_len)); in mbedtls_test_ssl_prepare_record_mac() 1649 record->buf + record->data_offset, in mbedtls_test_ssl_prepare_record_mac() [all …]
|
/openthread-latest/src/cli/ |
D | README_SRP_CLIENT.md | 381 Enable/Disable "service key record inclusion" mode in SRP client. This command requires `OPENTHREAD… 383 KEY record is optional in Service Description Instruction (it is required and always included in th… 385 Get the current "service key record inclusion" mode. 393 Set the "service key record inclusion" mode.
|
/openthread-latest/tools/harness-automation/doc/ |
D | quickstart.rst | 46 This will record the results in result.json, so that you can continue running cases once broken. Yo…
|
/openthread-latest/third_party/mbedtls/repo/ |
D | dco.txt | 34 are public and that a record of the contribution (including all
|
/openthread-latest/src/posix/platform/ |
D | netif.cpp | 1941 MLDv2Record *record = reinterpret_cast<MLDv2Record *>(&buffer[offset]); local 1946 ReadIp6AddressFrom(&record->mMulticastAddress, address); 1948 inet_ntop(AF_INET6, &record->mMulticastAddress, addressString, sizeof(addressString)); 1950 if (record->mRecordType == kICMPv6MLDv2RecordChangeToIncludeType) 1955 else if (record->mRecordType == kICMPv6MLDv2RecordChangeToExcludeType) 1961 offset += sizeof(MLDv2Record) + sizeof(in6_addr) * ntohs(record->mNumSources);
|