Home
last modified time | relevance | path

Searched refs:cid (Results 1 – 18 of 18) sorted by relevance

/openthread-latest/tests/scripts/thread-cert/
Dlowpan.py47 def __init__(self, tf, nh, hlim, cid, sac, sam, m, dac, dam): argument
51 self._cid = cid
71 def cid(self): member in LowpanIPHC
108 cid = (data_byte >> 7) & 0x01
115 return cls(tf, nh, hlim, cid, sac, sam, m, dac, dam)
122 self.cid,
522 if iphc.cid == self.IPHC_CID_SET:
523 cid = ord(data.read(1))
525 sci = (cid >> 4) & 0x0F
526 dci = cid & 0x0F
[all …]
Dnetwork_data.py328 def __init__(self, c, cid, context_length, stable): argument
331 self._cid = cid
339 def cid(self): member in LowpanId
349 …return (self.c == other.c and self.cid == other.cid and self.context_length == other.context_lengt…
352 …return "LowpanId(stable={}, c={}, cid={}, context_length={})".format(self.stable, self.c, self.cid,
361 cid = data_byte & 0x0F
366 return LowpanId(c, cid, context_length, message_info.stable)
Dtest_mle.py1382 cid = any_cid()
1384 addr_reg_compressed_obj = mle.AddressCompressed(cid, any_iid())
1387 actual_cid = addr_reg_compressed_obj.cid
1390 self.assertEqual(cid, actual_cid)
1409 cid = any_cid()
1414 data = bytearray([(1 << 7) | cid]) + iid
1421 self.assertEqual(cid, actual_addr_reg_compressed.cid)
1444 cid = any_cid()
1448 addresses = [mle.AddressCompressed(cid, iid), mle.AddressFull(ipv6_address)]
1452 data = bytearray([(1 << 7) | cid]) + iid + bytearray([0]) + ipv6_address
[all …]
Dtest_network_data.py71 return bytearray([lowpan_id.cid | (lowpan_id.c << 4), lowpan_id.context_length])
826 cid = any_cid()
828 lowpan_id = network_data.LowpanId(any_c(), cid, any_context_length(), any_stable())
831 actual_cid = lowpan_id.cid
834 self.assertEqual(cid, actual_cid)
866 cid = any_cid()
872 data = convert_lowpan_id_to_bytearray(network_data.LowpanId(c, cid, context_length, stable))
883 self.assertEqual(cid, actual_lowpan_id.cid)
Dsniffer.py135 def set_lowpan_context(self, cid, prefix): argument
136 self._message_factory.set_lowpan_context(cid, prefix)
Dcommand.py520 for cid in CIDs:
524 if cid == address.cid:
527 assert found, "AddressRegistration TLV doesn't have CID {} ".format(cid)
554 def check_compressed_address_registration_tlv(command_msg, cid, iid, cid_present_once=False): argument
572 if cid == item.cid:
577 assert found, 'Error: Expected (cid, iid):({},{}) Not Found'.format(cid, iid)
Dsimulator.py66 def set_lowpan_context(self, cid, prefix): argument
99 def set_lowpan_context(self, cid, prefix): argument
100 self._sniffer.set_lowpan_context(cid, prefix)
211 def set_lowpan_context(self, cid, prefix): argument
213 self._message_factory.set_lowpan_context(cid, prefix)
Dmle.py809 def __init__(self, cid, iid): argument
810 self._cid = cid
814 def cid(self): member in AddressCompressed
824 return self.cid == other.cid and self.iid == other.iid
827 return "AddressCompressed(cid={}, iid={}')".format(self.cid, hexlify(self.iid))
833 cid = ord(data.read(1)) & 0x0F
835 return AddressCompressed(cid, iid)
Dmessage.py576 def set_lowpan_context(self, cid, prefix): argument
577 self._lowpan_parser.set_lowpan_context(cid, prefix)
Dtest_lowpan.py235 cid = any_cid()
243 byte1 = (cid << 7) | (sac << 6) | (sam << 4) | (m << 3) | (dac << 2) | dam
254 self.assertEqual(cid, actual.cid)
/openthread-latest/third_party/mbedtls/repo/programs/ssl/
Dssl_client2.c793 unsigned char cid[MBEDTLS_SSL_CID_IN_LEN_MAX]; in main() local
1542 if (mbedtls_test_unhexify(cid, sizeof(cid), in main()
2117 cid, cid_len)) != 0) { in main()
Dssl_server2.c1575 unsigned char cid[MBEDTLS_SSL_CID_IN_LEN_MAX]; in main() local
2418 if (mbedtls_test_unhexify(cid, sizeof(cid), in main()
3283 cid, cid_len)) != 0) { in main()
/openthread-latest/third_party/mbedtls/repo/library/
Dssl_msg.c818 memcpy(cur, rec->cid, rec->cid_len); in ssl_extract_add_data_from_record()
838 memcpy(cur, rec->cid, rec->cid_len); in ssl_extract_add_data_from_record()
1002 memcpy(rec->cid, transform->out_cid, transform->out_cid_len); in mbedtls_ssl_encrypt_buf()
1003 MBEDTLS_SSL_DEBUG_BUF(3, "CID", rec->cid, rec->cid_len); in mbedtls_ssl_encrypt_buf()
1527 memcmp(rec->cid, transform->in_cid, rec->cid_len) != 0) { in mbedtls_ssl_decrypt_buf()
3000 memcpy(ssl->out_cid, rec.cid, rec.cid_len); in mbedtls_ssl_write_record()
3806 memcpy(rec->cid, buf + rec_hdr_cid_offset, rec_hdr_cid_len); in ssl_parse_record_header()
Dssl_misc.h1239 unsigned char cid[MBEDTLS_SSL_CID_LEN_MAX]; /* The CID */ member
/openthread-latest/tests/scripts/thread-cert/pktverify/
Dtest_layer_fields.py282 self.assertIsInstanceOrNull(lowpan.iphc.cid, int)
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_ssl_decrypt.function34 .cid = { 0 },
Dtest_suite_ssl.function3243 /* Attempt to set config cid size too big. */
Dtest_suite_ssl.data3236 Sanity test cid functions