Home
last modified time | relevance | path

Searched refs:ipv6_packet (Results 1 – 5 of 5) sorted by relevance

/openthread-3.4.0/tests/scripts/thread-cert/
Dtest_ipv6.py515 ipv6_packet = IPv6Packet(
532 ipv6_packet_bytes = ipv6_packet.to_bytes()
557 ipv6_packet = IPv6Packet(ipv6_header, udp_dgram)
560 ipv6_packet_bytes = ipv6_packet.to_bytes()
594 ipv6_packet = ipv6_factory.parse(io.BytesIO(ipv6_packet_bytes), any_message_info())
597 …self.assertEqual('fd00:1234:4555::ff:fe00:1800', ipv6_packet.ipv6_header.source_address.compressed)
598 self.assertEqual('ff03::1', ipv6_packet.ipv6_header.destination_address.compressed)
599 self.assertEqual(64, ipv6_packet.ipv6_header.hop_limit)
600 self.assertEqual(0, ipv6_packet.ipv6_header.next_header)
601 self.assertEqual(34, ipv6_packet.ipv6_header.payload_length)
[all …]
Dmessage.py112 msg._ipv6_packet = self.ipv6_packet
157 def ipv6_packet(self): member in Message
160 @ipv6_packet.setter
161 def ipv6_packet(self, value): member in Message
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
349 assert isinstance(self.ipv6_packet.upper_layer_protocol, ipv6.UDPDatagram)
350 return self.ipv6_packet.upper_layer_protocol.header.dst_port
[all …]
Dtest_lowpan.py272 ipv6_packet = bytearray([
295 self.assertEqual(ipv6_packet, actual_ipv6_packet.to_bytes())
304 ipv6_packet = bytearray([
323 self.assertEqual(ipv6_packet, actual_ipv6_packet.to_bytes())
332 ipv6_packet = bytearray([
351 self.assertEqual(ipv6_packet, actual_ipv6_packet.to_bytes())
360 ipv6_packet = bytearray([
379 self.assertEqual(ipv6_packet, actual_ipv6_packet.to_bytes())
388 ipv6_packet = bytearray([
407 self.assertEqual(ipv6_packet, actual_ipv6_packet.to_bytes())
[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))
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 …]
Dipv6.py460 ipv6_packet = self.ipv6_header.to_bytes()
463 ipv6_packet += extension_header.to_bytes()
465 ipv6_packet += self.upper_layer_protocol.to_bytes()
467 return ipv6_packet