Searched refs:traffic_class (Results 1 – 3 of 3) sorted by relevance
/openthread-2.7.6/tests/scripts/thread-cert/ |
D | ipv6.py | 251 traffic_class=0, argument 260 self.traffic_class = traffic_class 286 ((self.version & 0x0F) << 4) | ((self.traffic_class >> 4) & 0x0F), 287 ((self.traffic_class & 0x0F) << 4) | ((self.flow_label >> 16) & 0x0F), 303 traffic_class = ((b[0] & 0x0F) << 4) | ((b[1] >> 4) & 0x0F) 315 traffic_class, 324 hop_limit={}, traffic_class={}, flow_label={})".format( 330 self.traffic_class,
|
D | test_ipv6.py | 344 traffic_class = any_traffic_class() 352 …ipv6_header = IPv6Header(source_address, destination_address, traffic_class, flow_label, hop_limit, 360 self.assertEqual(traffic_class, ((data[0] << 8 | data[1]) >> 4) & 0xff) 370 traffic_class = any_traffic_class() 378 …data = bytearray([(6 << 4) | (traffic_class >> 4), (traffic_class & 0xF) << 4 | (flow_label >> 16)… 388 self.assertEqual(traffic_class, ipv6_header.traffic_class) 603 self.assertEqual(0, ipv6_packet.ipv6_header.traffic_class) 641 self.assertEqual(0, ipv6_packet.ipv6_header.traffic_class)
|
D | lowpan.py | 462 traffic_class = self._traffic_class(dscp, ecn) 465 return traffic_class, flow_label 472 traffic_class = self._traffic_class(dscp=0, ecn=ecn) 475 return traffic_class, flow_label 483 traffic_class = self._traffic_class(dscp, ecn) 486 return traffic_class, flow_label 753 traffic_class, flow_label = self._decompress_tf(iphc, data) 763 header = ipv6.IPv6Header(src_address, dst_address, traffic_class, flow_label, hop_limit)
|