henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 1 | /* |
| 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 Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 11 | #ifndef RTC_BASE_DSCP_H_ |
| 12 | #define RTC_BASE_DSCP_H_ |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 13 | |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 14 | namespace rtc { |
| 15 | // Differentiated Services Code Point. |
| 16 | // See http://tools.ietf.org/html/rfc2474 for details. |
| 17 | enum DiffServCodePoint { |
| 18 | DSCP_NO_CHANGE = -1, |
| 19 | DSCP_DEFAULT = 0, // Same as DSCP_CS0 |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 20 | DSCP_CS0 = 0, // The default |
| 21 | DSCP_CS1 = 8, // Bulk/background traffic |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 22 | DSCP_AF11 = 10, |
| 23 | DSCP_AF12 = 12, |
| 24 | DSCP_AF13 = 14, |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 25 | DSCP_CS2 = 16, |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 26 | DSCP_AF21 = 18, |
| 27 | DSCP_AF22 = 20, |
| 28 | DSCP_AF23 = 22, |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 29 | DSCP_CS3 = 24, |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 30 | DSCP_AF31 = 26, |
| 31 | DSCP_AF32 = 28, |
| 32 | DSCP_AF33 = 30, |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 33 | DSCP_CS4 = 32, |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 34 | DSCP_AF41 = 34, // Video |
| 35 | DSCP_AF42 = 36, // Video |
| 36 | DSCP_AF43 = 38, // Video |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 37 | DSCP_CS5 = 40, // Video |
| 38 | DSCP_EF = 46, // Voice |
| 39 | DSCP_CS6 = 48, // Voice |
| 40 | DSCP_CS7 = 56, // Control messages |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 41 | }; |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 42 | |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 43 | } // namespace rtc |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 44 | |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 45 | #endif // RTC_BASE_DSCP_H_ |