Home
last modified time | relevance | path

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

12

/openthread-latest/src/core/utils/
Dflash.cpp44 RecordHeader record; in Init() local
68 …for (mSwapUsed = kSwapMarkerSize; mSwapUsed <= mSwapSize - sizeof(record); mSwapUsed += record.Get… in Init()
70 otPlatFlashRead(&GetInstance(), mSwapIndex, mSwapUsed, &record, sizeof(record)); in Init()
71 if (!record.IsAddBeginSet()) in Init()
76 if (!record.IsAddCompleteSet()) in Init()
120 RecordHeader record; in Get() local
122 for (offset = kSwapMarkerSize; offset < mSwapUsed; offset += record.GetSize()) in Get()
124 otPlatFlashRead(&GetInstance(), mSwapIndex, offset, &record, sizeof(record)); in Get()
126 if ((record.GetKey() != aKey) || !record.IsValid()) in Get()
131 if (record.IsFirst()) in Get()
[all …]
/openthread-latest/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-latest/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.py356 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])
365record[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/
Doutcome-analysis.sh33 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/
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-latest/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-latest/src/core/net/
Dsrp_server.cpp906 Dns::ResourceRecord record; in ProcessHostDescriptionInstruction() local
910 SuccessOrExit(error = aMessage.Read(offset, record)); in ProcessHostDescriptionInstruction()
912 if (record.GetClass() == Dns::ResourceRecord::kClassAny) in ProcessHostDescriptionInstruction()
915 VerifyOrExit(IsValidDeleteAllRecord(record), error = kErrorFailed); in ProcessHostDescriptionInstruction()
927 else if (record.GetType() == Dns::ResourceRecord::kTypeAaaa) in ProcessHostDescriptionInstruction()
931 VerifyOrExit(record.GetClass() == aMetadata.mDnsZone.GetClass(), error = kErrorFailed); in ProcessHostDescriptionInstruction()
933 SuccessOrExit(error = aHost.ProcessTtl(record.GetTtl())); in ProcessHostDescriptionInstruction()
943 else if (record.GetType() == Dns::ResourceRecord::kTypeKey) in ProcessHostDescriptionInstruction()
948 VerifyOrExit(record.GetClass() == aMetadata.mDnsZone.GetClass(), error = kErrorFailed); in ProcessHostDescriptionInstruction()
950 SuccessOrExit(error = aHost.ProcessTtl(record.GetTtl())); in ProcessHostDescriptionInstruction()
[all …]
Ddns_types.cpp807 ResourceRecord record; in ParseRecords() local
810 SuccessOrExit(error = record.ReadFrom(aMessage, aOffset)); in ParseRecords()
811 aOffset += static_cast<uint16_t>(record.GetSize()); in ParseRecords()
826 ResourceRecord record; in FindRecord() local
841 SuccessOrExit(error = record.ReadFrom(aMessage, aOffset)); in FindRecord()
844 aOffset += static_cast<uint16_t>(record.GetSize()); in FindRecord()
925 ResourceRecord record; in ReadRecord() local
927 SuccessOrExit(error = record.ReadFrom(aMessage, aOffset)); in ReadRecord()
929 … if (((aType == kTypeAny) || (record.GetType() == aType)) && (record.GetSize() >= aMinRecordSize)) in ReadRecord()
937 aOffset += static_cast<uint16_t>(record.GetSize()); in ReadRecord()
Dmdns.cpp1204 RecordInfo &record = aRecords[index].mRecord; in AnswerNonProbe() local
1206 if (!record.CanAnswer()) in AnswerNonProbe()
1217 record.ScheduleAnswer(aInfo); in AnswerNonProbe()
1244 RecordInfo &record = aRecords[index].mRecord; in AnswerProbe() local
1247 if (!record.CanAnswer()) in AnswerProbe()
1262 if (record.GetDurationSinceLastMulticast(now) >= kMinIntervalProbeResponse) in AnswerProbe()
1266 else if (record.GetLastMulticastTime(lastMulticastTime) == kErrorNone) in AnswerProbe()
1383 ResourceRecord record; in AppendKeyRecordTo() local
1396 record.Init(ResourceRecord::kTypeKey); in AppendKeyRecordTo()
1397 record.SetLength(mKeyData.GetLength()); in AppendKeyRecordTo()
[all …]
/openthread-latest/tests/unit/
Dtest_mdns.cpp268 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 …]
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-latest/tests/scripts/thread-cert/border_router/internet/
Dtest_upstream_dns.py129 for record in resolved_names:
130 self.assertIn(ipaddress.IPv6Address(record[0]).compressed, TEST_DOMAIN_IP6_ADDRESSES)
/openthread-latest/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-latest/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-latest/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-latest/third_party/mbedtls/repo/
Ddco.txt34 are public and that a record of the contribution (including all
/openthread-latest/src/posix/platform/
Dnetif.cpp1939 MLDv2Record *record = reinterpret_cast<MLDv2Record *>(&buffer[offset]); local
1944 ReadIp6AddressFrom(&record->mMulticastAddress, address);
1946 inet_ntop(AF_INET6, &record->mMulticastAddress, addressString, sizeof(addressString));
1948 if (record->mRecordType == kICMPv6MLDv2RecordChangeToIncludeType)
1953 else if (record->mRecordType == kICMPv6MLDv2RecordChangeToExcludeType)
1959 offset += sizeof(MLDv2Record) + sizeof(in6_addr) * ntohs(record->mNumSources);

12