Home
last modified time | relevance | path

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

/openthread-3.6.0/tests/scripts/thread-cert/
Dtest_ipv6.py174 def any_udp_payload(src_port, dst_port, payload, checksum): argument
176 …return bytearray([(src_port >> 8) & 0xff, src_port & 0xff, (dst_port >> 8) & 0xff, dst_port & 0xff,
413 dst_port = any_port()
417 udp_header = UDPHeader(src_port, dst_port, payload_length, checksum)
424 self.assertEqual(dst_port, struct.unpack("!H", data[2:4])[0])
431 dst_port = any_port()
435 data = struct.pack("!H", src_port) + struct.pack("!H", dst_port) + \
443 self.assertEqual(dst_port, udp_header.dst_port)
550 UDPHeader(src_port=19788, dst_port=19788),
679 dst_port = any_port()
[all …]
Dcommon.py105 def dst_port(self): member in MessageInfo
108 @dst_port.setter
109 def dst_port(self, value): member in MessageInfo
Dipv6.py482 def __init__(self, src_port, dst_port, payload_length=0, checksum=0): argument
484 self.dst_port = dst_port
503 data += struct.pack(">H", self.dst_port)
512 dst_port = struct.unpack(">H", data.read(2))[0]
516 return cls(src_port, dst_port, payload_length, checksum)
1058 if message_info.dst_port in self._factories:
1059 factory = self._factories[message_info.dst_port]
1064 if message_info.dst_port == common.UDP_TEST_PORT:
1089 message_info.dst_port = header.dst_port
Dtest_lowpan.py2203 dst_port = any_dst_port()
2205 data_bytes = struct.pack(">H", src_port) + struct.pack(">H", dst_port)
2212 self.assertEqual(dst_port, actual_dst_port)
2224 dst_port = any_compressable_dst_port()
2226 data_bytes = struct.pack(">H", src_port) + bytearray([struct.pack(">H", dst_port)[1]])
2234 self.assertEqual(dst_port, actual_dst_port)
2245 dst_port = any_dst_port()
2247 data_bytes = bytearray([struct.pack(">H", src_port)[1]]) + struct.pack(">H", dst_port)
2255 self.assertEqual(dst_port, actual_dst_port)
2266 dst_port = any_nibble_dst_port()
[all …]
Dlowpan.py279 dst_port = struct.unpack(">H", data.read(2))[0]
283 dst_port = 0xf000 + ord(data.read(1))
287 dst_port = struct.unpack(">H", data.read(2))[0]
292 dst_port = 0xf0b0 + (udp_ports_byte & 0x0F)
294 return src_port, dst_port
308 src_port, dst_port = self._decompress_udp_ports(udphc, data)
312 header = ipv6.UDPHeader(src_port, dst_port, checksum=checksum)
Dmessage.py350 return self.ipv6_packet.upper_layer_protocol.header.dst_port
/openthread-3.6.0/tests/toranj/ncp/
Dwpan.py699 dst_port = dst[1]
702 dst_port = random.randint(49152, 65535)
711 return AsyncSender(self, src_addr, src_port, dst_addr, dst_port, msg, count, mcast_hops)
732 receiver = self._get_receiver(sender.dst_port)
780 def __init__(self, node, src_addr, src_port, dst_addr, dst_port, msg, count, mcast_hops=None): argument
785 self._dst_port = dst_port
788 self._dst_sock_addr = _create_socket_address(dst_addr, dst_port)
831 def dst_port(self): member in AsyncSender
Dtest-023-multicast-traffic.py79 listeners = [node.prepare_listener(sender.dst_port, timeout=0.5) for node in non_recving_nodes]
/openthread-3.6.0/tests/toranj/
DREADME_NCP.md291 >>> sender.dst_port