blob: 3c39ca66da73d8874339756718b097c4ffff86d6 [file] [log] [blame]
henrike@webrtc.orgf0488722014-05-13 18:00:26 +00001/*
2 * Copyright 2013 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef RTC_BASE_DSCP_H_
12#define RTC_BASE_DSCP_H_
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000013
Henrik Kjellanderec78f1c2017-06-29 07:52:50 +020014namespace rtc {
15// Differentiated Services Code Point.
16// See http://tools.ietf.org/html/rfc2474 for details.
17enum DiffServCodePoint {
18 DSCP_NO_CHANGE = -1,
19 DSCP_DEFAULT = 0, // Same as DSCP_CS0
Yves Gerey665174f2018-06-19 15:03:05 +020020 DSCP_CS0 = 0, // The default
21 DSCP_CS1 = 8, // Bulk/background traffic
Henrik Kjellanderec78f1c2017-06-29 07:52:50 +020022 DSCP_AF11 = 10,
23 DSCP_AF12 = 12,
24 DSCP_AF13 = 14,
Yves Gerey665174f2018-06-19 15:03:05 +020025 DSCP_CS2 = 16,
Henrik Kjellanderec78f1c2017-06-29 07:52:50 +020026 DSCP_AF21 = 18,
27 DSCP_AF22 = 20,
28 DSCP_AF23 = 22,
Yves Gerey665174f2018-06-19 15:03:05 +020029 DSCP_CS3 = 24,
Henrik Kjellanderec78f1c2017-06-29 07:52:50 +020030 DSCP_AF31 = 26,
31 DSCP_AF32 = 28,
32 DSCP_AF33 = 30,
Yves Gerey665174f2018-06-19 15:03:05 +020033 DSCP_CS4 = 32,
Henrik Kjellanderec78f1c2017-06-29 07:52:50 +020034 DSCP_AF41 = 34, // Video
35 DSCP_AF42 = 36, // Video
36 DSCP_AF43 = 38, // Video
Yves Gerey665174f2018-06-19 15:03:05 +020037 DSCP_CS5 = 40, // Video
38 DSCP_EF = 46, // Voice
39 DSCP_CS6 = 48, // Voice
40 DSCP_CS7 = 56, // Control messages
Henrik Kjellanderec78f1c2017-06-29 07:52:50 +020041};
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000042
Henrik Kjellanderec78f1c2017-06-29 07:52:50 +020043} // namespace rtc
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000044
Yves Gerey665174f2018-06-19 15:03:05 +020045#endif // RTC_BASE_DSCP_H_