Home
last modified time | relevance | path

Searched refs:record (Results 1 – 25 of 39) sorted by relevance

12

/openthread-3.7.0/src/core/utils/
Dflash.cpp47 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-3.7.0/tests/scripts/thread-cert/border_router/
Dtest_dnssd_instance_name_with_space.py161 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 …]
Dtest_dnssd_server.py289 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 …]
Dtest_dnssd_server_multi_border_routers.py369 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-3.7.0/tests/scripts/thread-cert/
Dfind_border_agents.py74 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)
DCert_8_1_06_Commissioning.py189 } == 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
DCert_8_1_01_Commissioning.py221 } == 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
DCert_8_1_02_Commissioning.py108 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_…
Ddtls.py624 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]
Dnode.py350 record = list(line.split())
353 if record[2] in ('SRV', 'TXT'):
354 record[0] = self.__unescape_dns_instance_name(record[0])
356 record[1] = int(record[1])
357 if record[3] == 'SRV':
358 record[0] = self.__unescape_dns_instance_name(record[0])
359record[4], record[5], record[6] = map(int, [record[4], record[5], record[6]])
360 elif record[3] == 'TXT':
361 record[0] = self.__unescape_dns_instance_name(record[0])
362 record[4:] = [self.__parse_dns_dig_txt(line)]
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/docs/architecture/psa-migration/
Doutcome-analysis.sh33 record() { function
56 record "before-default"
61 record "before-full"
67 record "after-default"
72 record "after-full"
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_ssl_decrypt.function128 * 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 …]
Dtest_suite_ssl.function1183 /* 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-3.7.0/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dlogging_util.py30 def filter(self, record: logging.LogRecord) -> bool:
31 return record.levelno <= self.max_level
/openthread-3.7.0/src/core/net/
Dsrp_server.cpp917 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 …]
Ddns_types.cpp813 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()
Dmdns.cpp1092 RecordInfo &record = aRecords[index].mRecord; in AnswerNonProbe() local
1094 if (!record.CanAnswer()) in AnswerNonProbe()
1105 record.ScheduleAnswer(aInfo); in AnswerNonProbe()
1132 RecordInfo &record = aRecords[index].mRecord; in AnswerProbe() local
1135 if (!record.CanAnswer()) in AnswerProbe()
1150 if (record.GetDurationSinceLastMulticast(now) >= kMinIntervalProbeResponse) in AnswerProbe()
1154 else if (record.GetLastMulticastTime(lastMulticastTime) == kErrorNone) in AnswerProbe()
1260 ResourceRecord record; in AppendKeyRecordTo() local
1272 record.Init(ResourceRecord::kTypeKey); in AppendKeyRecordTo()
1273 record.SetTtl(mKeyRecord.GetTtl()); in AppendKeyRecordTo()
[all …]
/openthread-3.7.0/tests/unit/
Dtest_mdns.cpp264 ResourceRecord record; in ParseFrom() local
268 SuccessOrQuit(aMessage.Read(aOffset, record)); in ParseFrom()
272 mType = record.GetType(); in ParseFrom()
273 mClass = record.GetClass() & kClassMask; in ParseFrom()
274 mCacheFlush = record.GetClass() & kClassCacheFlushFlag; in ParseFrom()
275 mTtl = record.GetTtl(); in ParseFrom()
285 VerifyOrQuit(record.GetLength() == sizeof(Ip6::Address)); in ParseFrom()
292 VerifyOrQuit(record.GetLength() > 0); in ParseFrom()
293 VerifyOrQuit(record.GetLength() < kMaxDataSize); in ParseFrom()
294 mData.mData.SetLength(record.GetLength()); in ParseFrom()
[all …]
Dtest_dns.cpp1167 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-3.7.0/tests/scripts/thread-cert/border_router/nat64/
Dtest_upstream_dns.py130 for record in resolved_names:
131 self.assertIn(ipaddress.IPv6Address(record[0]).compressed, TEST_DOMAIN_IP6_ADDRESSES)
/openthread-3.7.0/third_party/mbedtls/repo/tests/src/test_helpers/
Dssl_helpers.c1613 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-3.7.0/src/cli/
DREADME_SRP_CLIENT.md381 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-3.7.0/tools/harness-automation/doc/
Dquickstart.rst46 This will record the results in result.json, so that you can continue running cases once broken. Yo…
/openthread-3.7.0/third_party/mbedtls/repo/
Ddco.txt34 are public and that a record of the contribution (including all
/openthread-3.7.0/src/posix/platform/
Dnetif.cpp1924 MLDv2Record *record = reinterpret_cast<MLDv2Record *>(&buffer[offset]); local
1929 ReadIp6AddressFrom(&record->mMulticastAddress, address);
1931 inet_ntop(AF_INET6, &record->mMulticastAddress, addressString, sizeof(addressString));
1933 if (record->mRecordType == kICMPv6MLDv2RecordChangeToIncludeType)
1938 else if (record->mRecordType == kICMPv6MLDv2RecordChangeToExcludeType)
1944 offset += sizeof(MLDv2Record) + sizeof(in6_addr) * ntohs(record->mNumSources);

12