// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_SOCKET_DIFF_SERV_CODE_POINT_H_ #define NET_SOCKET_DIFF_SERV_CODE_POINT_H_ namespace net { // Differentiated Services Code Point. // See http://tools.ietf.org/html/rfc2474 for details. enum DiffServCodePoint { … }; // Explicit Congestion Notification // See RFC3168 and RFC9330 for details. enum EcnCodePoint { … }; struct DscpAndEcn { … }; // Converts an 8-bit IP TOS field to its DSCP and ECN parts. static inline DscpAndEcn TosToDscpAndEcn(uint8_t tos) { … } } // namespace net #endif // NET_SOCKET_DIFF_SERV_CODE_POINT_H_