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

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: extra newline removed Created 7 years, 4 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 // 802.11n, HT rates. 530 // 802.11n, HT rates.
531 WIFI_PHY_LAYER_PROTOCOL_N, 531 WIFI_PHY_LAYER_PROTOCOL_N,
532 // Unclassified mode or failure to identify. 532 // Unclassified mode or failure to identify.
533 WIFI_PHY_LAYER_PROTOCOL_UNKNOWN 533 WIFI_PHY_LAYER_PROTOCOL_UNKNOWN
534 }; 534 };
535 535
536 // Characterize the PHY mode of the currently associated access point. 536 // Characterize the PHY mode of the currently associated access point.
537 // Currently only available on OS_WIN. 537 // Currently only available on OS_WIN.
538 NET_EXPORT WifiPHYLayerProtocol GetWifiPHYLayerProtocol(); 538 NET_EXPORT WifiPHYLayerProtocol GetWifiPHYLayerProtocol();
539 539
540 // Differentiated Services Code Point, replaces the old IP_TOS flags.
541 enum DiffServCodePoint {
Sergey Ulanov 2013/08/17 05:50:04 nit: Is there a better name? code style discourage
Sergey Ulanov 2013/08/17 05:50:04 net_util.h contains lots of unrelated things. mayb
hubbe 2013/08/21 18:51:36 I can call it DifferentiatedServicesCodePoint. Add
hubbe 2013/08/21 18:51:36 cbenzel, what do you think?
juberti2 2013/08/21 19:13:13 The IETF WG is called "diffserv", so I don't think
cbentzel 2013/08/21 22:00:20 Agreed, DiffServ is a common abbreviation.
cbentzel 2013/08/21 22:00:20 net_util.h is (like other _util.h methods) a dumpi
542 DSCP_NO_CHANGE = -1,
Sergey Ulanov 2013/08/17 05:50:04 DEFAULT?
hubbe 2013/08/21 18:51:36 Adding DSCP_DEFAULT. (with value 0)
543 DSCP_CS0 = 0, // The default
544 DSCP_CS1 = 8, // Bulk/background traffic
545 DSCP_AF11 = 10,
546 DSCP_AF12 = 12,
547 DSCP_AF13 = 14,
548 DSCP_CS2 = 16,
549 DSCP_AF21 = 18,
550 DSCP_AF22 = 20,
551 DSCP_AF23 = 22,
552 DSCP_CS3 = 24,
553 DSCP_AF31 = 26,
554 DSCP_AF32 = 28,
555 DSCP_AF33 = 30,
556 DSCP_CS4 = 32,
557 DSCP_AF41 = 34, // Video
558 DSCP_AF42 = 36, // Video
559 DSCP_AF43 = 38, // Video
560 DSCP_CS5 = 40, // Video
561 DSCP_EF = 46, // Voice
562 DSCP_CS6 = 48, // Voice
563 DSCP_CS7 = 56, // Control messages
564 };
565
566
Sergey Ulanov 2013/08/17 05:50:04 nit: remove extra empty line.
hubbe 2013/08/21 18:51:36 Done.
540 } // namespace net 567 } // namespace net
541 568
542 #endif // NET_BASE_NET_UTIL_H_ 569 #endif // NET_BASE_NET_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698