Home
last modified time | relevance | path

Searched refs:flow_label (Results 1 – 4 of 4) sorted by relevance

/openthread-3.5.0/tests/scripts/thread-cert/
Dlowpan.py442 flow_label = (data_bytes[0] & 0x0F) << 16
443 flow_label += data_bytes[1] << 8
444 flow_label += data_bytes[2]
445 return flow_label
463 flow_label = self._flow_label(data_bytes[1:])
465 return traffic_class, flow_label
473 flow_label = self._flow_label(data_bytes)
475 return traffic_class, flow_label
484 flow_label = 0
486 return traffic_class, flow_label
[all …]
Dipv6.py271 flow_label=0, argument
280 self.flow_label = flow_label
306 ((self.traffic_class & 0x0F) << 4) | ((self.flow_label >> 16) & 0x0F),
307 ((self.flow_label >> 8) & 0xff),
308 ((self.flow_label & 0xff)),
323 flow_label = ((b[1] & 0x0F) << 16) | (b[2] << 8) | b[3]
335 flow_label,
343 hop_limit={}, traffic_class={}, flow_label={})".format(
350 self.flow_label,
Dtest_ipv6.py345 flow_label = any_flow_label()
352 …ipv6_header = IPv6Header(source_address, destination_address, traffic_class, flow_label, hop_limit,
361 self.assertEqual(flow_label, ((data[1] & 0x0F) << 16) | (data[2] << 8) | data[3])
371 flow_label = any_flow_label()
378 …data = bytearray([(6 << 4) | (traffic_class >> 4), (traffic_class & 0xF) << 4 | (flow_label >> 16)…
379 … (flow_label >> 8) & 0xff, flow_label & 0xff, payload_length >> 8, payload_length & 0xff,
389 self.assertEqual(flow_label, ipv6_header.flow_label)
602 self.assertEqual(0, ipv6_packet.ipv6_header.flow_label)
640 self.assertEqual(0, ipv6_packet.ipv6_header.flow_label)
Dtest_lowpan.py2323 flow_label = any_flow_label()
2327 data_bytes.append((flow_label >> 16) & 0x0F)
2328 data_bytes.append((flow_label >> 8) & 0xFF)
2329 data_bytes.append(flow_label & 0xFF)
2343 self.assertEqual(flow_label, actual_flow_label)
2348 flow_label = any_flow_label()
2351 data_bytes.append((ecn << 6) | (flow_label >> 16) & 0x0F)
2352 data_bytes.append((flow_label >> 8) & 0xFF)
2353 data_bytes.append(flow_label & 0xFF)
2367 self.assertEqual(flow_label, actual_flow_label)