Searched refs:ipv6_header (Results 1 – 6 of 6) sorted by relevance
/openthread-3.6.0/tests/scripts/thread-cert/ |
D | test_ipv6.py | 352 …ipv6_header = IPv6Header(source_address, destination_address, traffic_class, flow_label, hop_limit, 356 data = ipv6_header.to_bytes() 384 ipv6_header = IPv6Header.from_bytes(io.BytesIO(data)) 387 self.assertEqual(6, ipv6_header.version) 388 self.assertEqual(traffic_class, ipv6_header.traffic_class) 389 self.assertEqual(flow_label, ipv6_header.flow_label) 390 self.assertEqual(payload_length, ipv6_header.payload_length) 391 self.assertEqual(next_header, ipv6_header.next_header) 392 self.assertEqual(hop_limit, ipv6_header.hop_limit) 393 self.assertEqual(source_address, ipv6_header.source_address.packed) [all …]
|
D | ipv6.py | 403 def __init__(self, ipv6_header, upper_layer_protocol, extension_headers=None): argument 404 self.ipv6_header = ipv6_header 425 self.ipv6_header.payload_length = len(self.upper_layer_protocol) + sum( 429 last_header = self.ipv6_header 447 self.ipv6_header.source_address, 448 self.ipv6_header.destination_address, 460 ipv6_packet = self.ipv6_header.to_bytes() 470 …return "IPv6Packet(header={}, upper_layer_protocol={})".format(self.ipv6_header, self.upper_layer_… 942 ipv6_header = IPv6Header.from_bytes(data) 944 message_info.source_ipv6 = ipv6_header.source_address [all …]
|
D | command.py | 61 assert (ipv6.ip_address(source_rloc) == command_msg.ipv6_packet.ipv6_header.source_address), ( 64 str(command_msg.ipv6_packet.ipv6_header.source_address)) 69 …assert (ipv6.ip_address(destination_address) == command_msg.ipv6_packet.ipv6_header.destination_ad… 82 assert (ipv6.ip_address(source_rloc) == command_msg.ipv6_packet.ipv6_header.source_address 86 …assert (ipv6.ip_address(destination_rloc) == command_msg.ipv6_packet.ipv6_header.destination_addre… 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)) 106 …assert (ipv6.ip_address(destination_address) == command_msg.ipv6_packet.ipv6_header.destination_ad… 109 str(command_msg.ipv6_packet.ipv6_header.destination_address)) 130 …assert (ipv6.ip_address(destination_rloc) == command_msg.ipv6_packet.ipv6_header.destination_addre… [all …]
|
D | test_lowpan.py | 3376 …ipv6_header, extension_headers, udp_header = decompressor.decompress(io.BytesIO(data), message_inf… 3379 self.assertEqual("fe80::10cf:d38b:3b61:5558", ipv6_header.source_address.compressed) 3380 self.assertEqual("ff02::2", ipv6_header.destination_address.compressed) 3381 self.assertEqual(17, ipv6_header.next_header) 3382 self.assertEqual(255, ipv6_header.hop_limit) 3405 …ipv6_header, extension_headers, udp_header = decompressor.decompress(io.BytesIO(data), message_inf… 3408 self.assertEqual("fe80::383e:9eed:7a01:36a5", ipv6_header.source_address.compressed) 3409 self.assertEqual("fe80::10cf:d38b:3b61:5558", ipv6_header.destination_address.compressed) 3410 self.assertEqual(17, ipv6_header.next_header) 3411 self.assertEqual(255, ipv6_header.hop_limit) [all …]
|
D | lowpan.py | 801 ipv6_header = self._lowpan_ip_header_factory.parse(data, message_info) 803 previous_header = ipv6_header 808 if self._is_next_header_compressed(ipv6_header): 834 return ipv6_header, extension_headers, udp_header 1035 ipv6_header, extension_headers, udp_header = self._decompress_iphc(data, message_info) 1040 ipv6_header.payload_length = fragmentation_header.datagram_size - len(ipv6_header) 1043 fragments_buffer.write(ipv6_header.to_bytes()) 1088 ipv6_header, extension_headers, udp_header = self._decompress_iphc(data, message_info) 1104 ipv6_header.payload_length = len(decompressed_data) 1106 decompressed_data = ipv6_header.to_bytes() + decompressed_data
|
D | message.py | 318 dst_addr = self.ipv6_packet.ipv6_header.destination_address 337 … assert (self.ipv6_packet.ipv6_header.destination_address == ipaddress.ip_address(ipv6_address)) 340 assert (self.ipv6_packet.ipv6_header.source_address == ipaddress.ip_address(ipv6_address)) 343 assert self.ipv6_packet.ipv6_header.hop_limit == hop_limit
|