Home
last modified time | relevance | path

Searched refs:dscp (Results 1 – 7 of 7) sorted by relevance

/openthread-3.4.0/tests/unit/
Dtest_ip4_header.cpp102 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()
Dtest_ip6_header.cpp111 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/
Dtmf.cpp229 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()
Dlowpan.cpp252 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/
Dip6.cpp156 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/
Dlowpan.py447 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)
Dtest_lowpan.py2322 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)