OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_FLIP_FLIP_BITMASKS_H_ | 5 #ifndef NET_FLIP_FLIP_BITMASKS_H_ |
6 #define NET_FLIP_FLIP_BITMASKS_H_ | 6 #define NET_FLIP_FLIP_BITMASKS_H_ |
7 | 7 |
8 namespace flip { | 8 namespace flip { |
9 | 9 |
10 const int kStreamIdMask = 0x7fffffff; // StreamId mask from the FlipHeader | 10 const unsigned int kStreamIdMask = 0x7fffffff; // StreamId mask from the FlipHe
ader |
11 const int kControlFlagMask = 0x8000; // Control flag mask from the FlipHeader | 11 const unsigned int kControlFlagMask = 0x8000; // Control flag mask from the Fl
ipHeader |
12 const int kPriorityMask = 0xc0; // Priority mask from the SYN_FRAME | 12 const unsigned int kPriorityMask = 0xc0; // Priority mask from the SYN_FR
AME |
13 const int kLengthMask = 0xffffff; // Mask the lower 24 bits. | 13 const unsigned int kLengthMask = 0xffffff; // Mask the lower 24 bits. |
14 | 14 |
15 } // flip | 15 } // flip |
16 | 16 |
17 #endif // NET_FLIP_FLIP_BITMASKS_H_ | 17 #endif // NET_FLIP_FLIP_BITMASKS_H_ |
18 | |
OLD | NEW |