Searched refs:dscp (Results 1 – 7 of 7) sorted by relevance
/openthread-3.4.0/tests/unit/ |
D | test_ip4_header.cpp | 102 for (uint8_t dscp : kDscps) in TestIp4Header() local 106 printf("Expecting {dscp:%-2d, ecn:%d} => ", dscp, ecn); in TestIp4Header() 108 header.SetDscp(dscp); in TestIp4Header() 109 VerifyEcnDscp(header, dscp, ecn); in TestIp4Header()
|
D | test_ip6_header.cpp | 111 for (uint8_t dscp : kDscps) in TestIp6Header() local 115 printf("Expecting {dscp:%-2d, ecn:%d, flow:%-7d} => ", dscp, ecn, flow); in TestIp6Header() 117 header.SetDscp(dscp); in TestIp6Header() 119 VerifyVersionTcFlow(header, dscp, ecn, flow); in TestIp6Header()
|
/openthread-3.4.0/src/core/thread/ |
D | tmf.cpp | 229 uint8_t dscp = Ip6::kDscpTmfNormalPriority; in PriorityToDscp() local 234 dscp = Ip6::kDscpTmfNetPriority; in PriorityToDscp() 242 dscp = Ip6::kDscpTmfLowPriority; in PriorityToDscp() 246 return dscp; in PriorityToDscp()
|
D | lowpan.cpp | 252 uint8_t dscp; in Compress() local 272 dscp = ((ip6HeaderBytes[0] << 2) & 0x3c) | (ip6HeaderBytes[1] >> 6); in Compress() 278 if (dscp == 0 && ecn == 0) in Compress() 288 SuccessOrExit(error = aFrameBuilder.AppendUint8(ecn | dscp)); in Compress() 291 else if (dscp == 0) in Compress() 302 SuccessOrExit(error = aFrameBuilder.AppendUint8(ecn | dscp)); in Compress()
|
/openthread-3.4.0/src/core/net/ |
D | ip6.cpp | 156 uint8_t dscp = kDscpCs0; in PriorityToDscp() local 161 dscp = kDscpCs1; in PriorityToDscp() 166 dscp = kDscpCs0; in PriorityToDscp() 170 dscp = kDscpCs4; in PriorityToDscp() 174 return dscp; in PriorityToDscp() 418 uint8_t dscp; in SendDatagram() local 425 dscp = Tmf::Agent::PriorityToDscp(aMessage.GetPriority()); in SendDatagram() 429 dscp = PriorityToDscp(aMessage.GetPriority()); in SendDatagram() 433 header.SetDscp(dscp); in SendDatagram()
|
/openthread-3.4.0/tests/scripts/thread-cert/ |
D | lowpan.py | 447 def _traffic_class(self, dscp, ecn): argument 448 return (dscp << 2) | ecn 459 dscp = self._unpack_dscp(data_bytes[0]) 462 traffic_class = self._traffic_class(dscp, ecn) 472 traffic_class = self._traffic_class(dscp=0, ecn=ecn) 480 dscp = self._unpack_dscp(data_byte) 483 traffic_class = self._traffic_class(dscp, ecn)
|
D | test_lowpan.py | 2322 dscp = any_dscp() 2326 data_bytes.append((ecn << 6) | dscp) 2342 self.assertEqual((dscp << 2) | ecn, actual_traffic_class) 2372 dscp = any_dscp() 2374 data_bytes = bytearray([(ecn << 6) | dscp]) 2387 self.assertEqual((dscp << 2) | ecn, actual_traffic_class)
|