Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: net/base/net_util.h

Issue 22381012: Allow p2p UDP packages to set DSCP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stub out DSCP for windows for now Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_BASE_NET_UTIL_H_ 5 #ifndef NET_BASE_NET_UTIL_H_
6 #define NET_BASE_NET_UTIL_H_ 6 #define NET_BASE_NET_UTIL_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 // 802.11n, HT rates. 546 // 802.11n, HT rates.
547 WIFI_PHY_LAYER_PROTOCOL_N, 547 WIFI_PHY_LAYER_PROTOCOL_N,
548 // Unclassified mode or failure to identify. 548 // Unclassified mode or failure to identify.
549 WIFI_PHY_LAYER_PROTOCOL_UNKNOWN 549 WIFI_PHY_LAYER_PROTOCOL_UNKNOWN
550 }; 550 };
551 551
552 // Characterize the PHY mode of the currently associated access point. 552 // Characterize the PHY mode of the currently associated access point.
553 // Currently only available on OS_WIN. 553 // Currently only available on OS_WIN.
554 NET_EXPORT WifiPHYLayerProtocol GetWifiPHYLayerProtocol(); 554 NET_EXPORT WifiPHYLayerProtocol GetWifiPHYLayerProtocol();
555 555
556 // Differentiated Services Code Point.
557 // See http://tools.ietf.org/html/rfc2474 for details.
558 enum DiffServCodePoint {
559 DSCP_NO_CHANGE = -1,
560 DSCP_DEFAULT = 0, // Same as DSCP_CS0
561 DSCP_CS0 = 0, // The default
562 DSCP_CS1 = 8, // Bulk/background traffic
563 DSCP_AF11 = 10,
564 DSCP_AF12 = 12,
565 DSCP_AF13 = 14,
566 DSCP_CS2 = 16,
567 DSCP_AF21 = 18,
568 DSCP_AF22 = 20,
569 DSCP_AF23 = 22,
570 DSCP_CS3 = 24,
571 DSCP_AF31 = 26,
572 DSCP_AF32 = 28,
573 DSCP_AF33 = 30,
574 DSCP_CS4 = 32,
575 DSCP_AF41 = 34, // Video
576 DSCP_AF42 = 36, // Video
577 DSCP_AF43 = 38, // Video
578 DSCP_CS5 = 40, // Video
579 DSCP_EF = 46, // Voice
580 DSCP_CS6 = 48, // Voice
581 DSCP_CS7 = 56, // Control messages
582 };
583
556 } // namespace net 584 } // namespace net
557 585
558 #endif // NET_BASE_NET_UTIL_H_ 586 #endif // NET_BASE_NET_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698