dscp.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #ifndef RTC_BASE_DSCP_H_
  11. #define RTC_BASE_DSCP_H_
  12. namespace rtc {
  13. // Differentiated Services Code Point.
  14. // See http://tools.ietf.org/html/rfc2474 for details.
  15. enum DiffServCodePoint {
  16. DSCP_NO_CHANGE = -1,
  17. DSCP_DEFAULT = 0, // Same as DSCP_CS0
  18. DSCP_CS0 = 0, // The default
  19. DSCP_CS1 = 8, // Bulk/background traffic
  20. DSCP_AF11 = 10,
  21. DSCP_AF12 = 12,
  22. DSCP_AF13 = 14,
  23. DSCP_CS2 = 16,
  24. DSCP_AF21 = 18,
  25. DSCP_AF22 = 20,
  26. DSCP_AF23 = 22,
  27. DSCP_CS3 = 24,
  28. DSCP_AF31 = 26,
  29. DSCP_AF32 = 28,
  30. DSCP_AF33 = 30,
  31. DSCP_CS4 = 32,
  32. DSCP_AF41 = 34, // Video
  33. DSCP_AF42 = 36, // Video
  34. DSCP_AF43 = 38, // Video
  35. DSCP_CS5 = 40, // Video
  36. DSCP_EF = 46, // Voice
  37. DSCP_CS6 = 48, // Voice
  38. DSCP_CS7 = 56, // Control messages
  39. };
  40. } // namespace rtc
  41. #endif // RTC_BASE_DSCP_H_