Searched refs:data_bytes (Results 1 – 2 of 2) sorted by relevance
/openthread-latest/tests/scripts/thread-cert/ |
D | test_lowpan.py | 245 data_bytes = bytearray([byte0, byte1]) 248 actual = lowpan.LowpanIPHC.from_bytes(data_bytes) 2205 data_bytes = struct.pack(">H", src_port) + struct.pack(">H", dst_port) 2208 … actual_src_port, actual_dst_port = factory._decompress_udp_ports(udphc, io.BytesIO(data_bytes)) 2226 data_bytes = struct.pack(">H", src_port) + bytearray([struct.pack(">H", dst_port)[1]]) 2229 … actual_src_port, actual_dst_port = factory._decompress_udp_ports(udphc, io.BytesIO(data_bytes)) 2247 data_bytes = bytearray([struct.pack(">H", src_port)[1]]) + struct.pack(">H", dst_port) 2250 … actual_src_port, actual_dst_port = factory._decompress_udp_ports(udphc, io.BytesIO(data_bytes)) 2268 data_bytes = bytearray([((src_port & 0x0F) << 4) | (dst_port & 0x0F)]) 2271 … actual_src_port, actual_dst_port = factory._decompress_udp_ports(udphc, io.BytesIO(data_bytes)) [all …]
|
D | lowpan.py | 95 def from_bytes(cls, data_bytes): argument 96 data_byte = data_bytes[0] 106 data_byte = data_bytes[1] 161 def from_bytes(cls, data_bytes): argument 162 header_byte = data_bytes[0] 196 def from_bytes(cls, data_bytes): argument 197 data_byte = data_bytes[0] 441 def _flow_label(self, data_bytes): argument 442 flow_label = (data_bytes[0] & 0x0F) << 16 443 flow_label += data_bytes[1] << 8 [all …]
|