| /openthread-latest/tests/scripts/thread-cert/ |
| D | pcap.py | 55 return struct.pack( 73 pcap_tap_fcs_tlv = struct.pack("<HHL", 0, 1, 1) 74 pcap_tap_channel_tlv = struct.pack("<HHHH", 3, 3, frame[0], 0) 76 pcap_tap_header = struct.pack("<HH", 0, length) 80 pcap_frame = struct.pack("<LLLL", sec, usec, length, length)
|
| D | dtls.py | 104 …return (struct.pack(">B", self.content_type) + self.version.to_bytes() + struct.pack(">H", self.ep… 105 …self.sequence_number.to_bytes(6, byteorder='big') + struct.pack(">H", self.length) + self.fragment) 160 return (struct.pack(">B", self.handshake_type) + struct.pack(">I", self.length)[1:] + 161 struct.pack(">H", self.message_seq) + struct.pack(">I", self.fragment_offset)[1:] + 162 struct.pack(">I", self.fragment_length)[1:] + self.body.to_bytes()) 205 return struct.pack(">BB", self.major, self.minor) 230 return struct.pack(">I", self.gmt_unix_time) + (self.random_bytes) 299 return struct.pack(">B", self.byte) 315 return struct.pack(">BB", self.cipher[0], self.cipher[1]) 336 return struct.pack(">B", CompressionMethod.NULL) [all …]
|
| D | test_ipv6.py | 435 data = struct.pack("!H", src_port) + struct.pack("!H", dst_port) + \ 436 struct.pack("!H", payload_length) + struct.pack("!H", checksum) 489 data = bytearray([_type, code]) + struct.pack("!H", checksum) 693 expected_udp_dgram_bytes = struct.pack("!H", src_port) + struct.pack("!H", dst_port) + \ 694 struct.pack("!H", payload_length) + struct.pack("!H", checksum) + payload 715 + struct.pack("!I", identification) 727 + struct.pack("!I", identification) 756 expected = bytearray([_type, code]) + struct.pack("!H", checksum) + body 1336 io.BytesIO(bytearray(struct.pack(">I", unused)) + data)) 1367 data = struct.pack("!H", src_port) + struct.pack("!H", dst_port) + \ [all …]
|
| D | ipv6.py | 253 data += struct.pack(">I", self.payload_length) 254 data += struct.pack(">I", self.next_header) 310 data += struct.pack(">H", self.payload_length) 502 data = struct.pack(">H", self.src_port) 503 data += struct.pack(">H", self.dst_port) 504 data += struct.pack(">H", self.payload_length) 505 data += struct.pack(">H", self.checksum) 574 return bytearray([self.type, self.code]) + struct.pack(">H", self.checksum) 660 data += struct.pack(">I", self._identification) 1170 data = struct.pack(">H", self.identifier) [all …]
|
| D | test_mle.py | 409 data = struct.pack(">H", address) 514 data = struct.pack(">I", timeout) 613 data = struct.pack(">I", link_layer_frame_counter) 646 data = struct.pack(">I", mle_frame_counter) 792 …data = bytearray([id_sequence]) + struct.pack(">Q", router_id_mask) + bytearray(link_quality_and_r… 827 data = struct.pack(">H", address) 917 data = bytearray(struct.pack(">I", partition_id)) + \ 1196 ]) + struct.pack(">H", sed_buffer_size) + bytearray([sed_datagram_count]) 1335 data = struct.pack(">H", version) 1500 data = bytearray([channel_page]) + struct.pack(">H", channel) [all …]
|
| D | test_crypto.py | 45 data += struct.pack("<L", aux_sec_hdr.frame_counter) 292 self.assertEqual(struct.pack(">L", frame_counter), nonce_bytes.read(4)) 338 …struct.pack(">LB", message_info.aux_sec_hdr.frame_counter, message_info.aux_sec_hdr.security_level… 428 data = bytearray([sec_lvl | key_id_mode << 3]) + struct.pack("<I", frame_counter) + key_id
|
| D | mcast6.py | 92 ttl_bin = struct.pack('@i', MYTTL) 122 mreq = group_bin + struct.pack('@I', interface_index)
|
| D | net_crypto.py | 120 s = struct.pack(">L", sequence_counter) + self._salt 159 return bytes(eui64 + struct.pack(">LB", frame_counter, security_level)) 223 return bytes(source_eui64[:8] + struct.pack(">LB", frame_counter, security_level))
|
| D | test_network_layer.py | 206 data = bytearray(struct.pack(">H", rloc16)) 333 data = bytearray(struct.pack(">L", seconds)) 392 data = bytearray([id_sequence]) + struct.pack(">Q", router_id_mask)
|
| D | mesh_cop.py | 130 return struct.pack('>BBBH', TlvType.CHANNEL, 3, self.channel_page, self.channel) 276 return (struct.pack('>BB', TlvType.STEERING_DATA, bloom_filter_len) + self.bloom_filter) 305 return struct.pack('>BBH', TlvType.BORDER_AGENT_LOCATOR, 2, self.border_agent_locator) 358 return struct.pack(
|
| D | test_common.py | 133 self.assertEqual(struct.pack(">H", rloc16), mac_address.mac_address)
|
| D | test_network_data.py | 42 return struct.pack(">HB", route.border_router_16, ((route.prf & 0x03) << 6)) 58 data = struct.pack( 99 return struct.pack(">H", server.server_16) + server.server_data 119 return (struct.pack(
|
| D | common.py | 162 mac_address = struct.pack(">H", rloc16)
|
| D | test_lowpan.py | 2205 data_bytes = struct.pack(">H", src_port) + struct.pack(">H", dst_port) 2226 data_bytes = struct.pack(">H", src_port) + bytearray([struct.pack(">H", dst_port)[1]]) 2247 data_bytes = bytearray([struct.pack(">H", src_port)[1]]) + struct.pack(">H", dst_port) 2288 data_bytes = struct.pack(">H", checksum) 3347 …data = struct.pack(">HHB", ((3 << 14) | (int(datagram_offset != 0) << 13) | datagram_size), datagr…
|
| D | simulator.py | 469 message = struct.pack('=QBH', elapsed, type, datalen) 492 message = struct.pack('=QBH', elapsed, self.OT_SIM_EVENT_ALARM_FIRED, 0)
|
| /openthread-latest/tools/tcat_ble_client/dataset/ |
| D | dataset_entries.py | 79 tlv = struct.pack('>BBQ', self.type.value, self.length, value) 105 tlv = struct.pack('>BBQ', self.type.value, self.length, value) 133 tlv = struct.pack('>BB', self.type.value, self.length) + value 158 tlv = struct.pack('>BB', self.type.value, length_value) + value 187 tlv = struct.pack('>BB', self.type.value, self.length) + value 216 tlv = struct.pack('>BB', self.type.value, self.length) + value 238 tlv = struct.pack('>BBI', self.type.value, self.length, value) 267 tlv = struct.pack('>BB', self.type.value, self.length) + value 290 tlv = struct.pack('>BBB', self.type.value, self.length, self.channel_page) 291 tlv += struct.pack('>H', self.channel) [all …]
|
| /openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/ |
| D | psa_storage.py | 124 def pack( member in Key 137 return struct.pack('<' + fmt, # little-endian, standard sizes 153 header = self.MAGIC + self.pack('L', self.version) 155 attributes = self.pack('LHHLLL', 158 material = self.pack('L', len(self.material)) + self.material
|
| /openthread-latest/tests/scripts/misc/ |
| D | test_multicast_join.py | 52 struct.pack('16si', socket.inet_pton(socket.AF_INET6, group), if_index)) 60 struct.pack('16si', socket.inet_pton(socket.AF_INET6, group), if_index))
|
| /openthread-latest/tools/harness-simulation/posix/sniffer_sim/ |
| D | pcap_codec.py | 59 return struct.pack( 77 pcap_frame = struct.pack('<LLLL', sec, usec, length, length)
|
| /openthread-latest/third_party/mbedtls/repo/programs/test/ |
| D | udp_proxy.c | 159 unsigned pack; /* merge packets into single datagram for member 185 opt.pack = DFL_PACK; in get_options() 260 opt.pack = (unsigned) atoi(q); in get_options() 407 if (cur_time - buf->packet_lifetime >= opt.pack) { in ctx_buffer_time_remaining() 411 return opt.pack - (cur_time - buf->packet_lifetime); in ctx_buffer_time_remaining() 455 if (opt.pack > 0) { in dispatch_data() 864 if (opt.pack > 0) { in main() 879 if (opt.pack > 0) { in main()
|
| /openthread-latest/tools/harness-simulation/posix/ |
| D | launch_testbed.py | 81 mreq = group_bin + struct.pack('@I', interface_index)
|
| /openthread-latest/tools/harness-simulation/harness/Thread_Harness/Sniffer/ |
| D | SimSniffer.py | 231 ifn = struct.pack('I', ifn)
|