Home
last modified time | relevance | path

Searched refs:source_address (Results 1 – 9 of 9) sorted by relevance

/openthread-3.6.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_ccm.function197 data_t *source_address, data_t *frame_counter,
216 TEST_ASSERT( source_address->len == 8 );
218 memcpy( iv, source_address->x, source_address->len );
219 memcpy( iv + source_address->len, frame_counter->x, frame_counter->len );
220 iv[source_address->len + frame_counter->len] = sec_level;
247 data_t *source_address, data_t *frame_counter,
267 TEST_ASSERT( source_address->len == 8 );
269 memcpy( iv, source_address->x, source_address->len );
270 memcpy( iv + source_address->len, frame_counter->x, frame_counter->len );
271 iv[source_address->len + frame_counter->len] = sec_level;
/openthread-3.6.0/tests/scripts/thread-cert/
Dipv6.py221 def __init__(self, source_address, destination_address, payload_length, next_header): argument
222 self._source_address = self._convert_to_ipaddress(source_address)
234 def source_address(self): member in IPv6PseudoHeader
237 @source_address.setter
238 def source_address(self, value): member in IPv6PseudoHeader
251 data += self.source_address.packed
268 source_address, argument
277 self._source_address = self._convert_to_ipaddress(source_address)
292 def source_address(self): member in IPv6Header
295 @source_address.setter
[all …]
Dcommand.py61 assert (ipv6.ip_address(source_rloc) == command_msg.ipv6_packet.ipv6_header.source_address), (
64 str(command_msg.ipv6_packet.ipv6_header.source_address))
82 assert (ipv6.ip_address(source_rloc) == command_msg.ipv6_packet.ipv6_header.source_address
98 assert (ipv6.ip_address(source_rloc) == command_msg.ipv6_packet.ipv6_header.source_address), (
101 str(command_msg.ipv6_packet.ipv6_header.source_address))
165 source_address=CheckType.OPTIONAL, argument
176 check_mle_optional_tlv(command_msg, source_address, mle.SourceAddress)
392 source_address=CheckType.OPTIONAL, argument
403 check_mle_optional_tlv(command_msg, source_address, mle.SourceAddress)
Dtest_ipv6.py349 source_address = any_ip_address()
352 …ipv6_header = IPv6Header(source_address, destination_address, traffic_class, flow_label, hop_limit,
365 self.assertEqual(source_address, data[8:24])
375 source_address = any_ip_address()
381 … data += ip_address(bytes(source_address)).packed + ip_address(bytes(destination_address)).packed
393 self.assertEqual(source_address, ipv6_header.source_address.packed)
516 … IPv6Header(source_address="fd00:1234:4555::ff:fe00:1800", destination_address="ff03::1"),
547 … ipv6_header = IPv6Header(source_address="fe80::1", destination_address="ff02::2", hop_limit=255)
597 …self.assertEqual('fd00:1234:4555::ff:fe00:1800', ipv6_packet.ipv6_header.source_address.compressed)
635 …self.assertEqual('fd00:1234:4555::ff:fe00:1800', ipv6_packet.ipv6_header.source_address.compressed)
Dtest_crypto.py302 source_address = any_ip_address()
309 authenticated_data = creator._create_authenticated_data(source_address, destination_address,
315 self.assertEqual(source_address.packed, authenticated_data_bytes.read(16))
Dnet_crypto.py225 …def _create_authenticated_data(self, source_address, destination_address, auxiliary_security_heade… argument
239 return bytes(source_address.packed + destination_address.packed + auxiliary_security_header)
Dtest_lowpan.py3379 self.assertEqual("fe80::10cf:d38b:3b61:5558", ipv6_header.source_address.compressed)
3408 self.assertEqual("fe80::383e:9eed:7a01:36a5", ipv6_header.source_address.compressed)
3440 self.assertEqual("fe80::10cf:d38b:3b61:5558", ipv6_header.source_address.compressed)
3471 self.assertEqual("fe80::383e:9eed:7a01:36a5", ipv6_header.source_address.compressed)
3499 self.assertEqual("fe80::383e:9eed:7a01:36a5", ipv6_header.source_address.compressed)
Dmessage.py340 assert (self.ipv6_packet.ipv6_header.source_address == ipaddress.ip_address(ipv6_address))
Dtest_mle.py392 source_address = mle.SourceAddress(address)
395 actual_address = source_address.address