blob: 72fb948410316c615ca7a58150221c0eb81e9353 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
namespace net {
// StreamId mask from the SpdyHeader
const unsigned int kStreamIdMask = 0x7fffffff;
// Control flag mask from the SpdyHeader
const unsigned int kControlFlagMask = 0x8000;
// Priority mask from the SYN_FRAME
const unsigned int kSpdy3PriorityMask = 0xe0;
const unsigned int kSpdy2PriorityMask = 0xc0;
// Mask the lower 24 bits.
const unsigned int kLengthMask = 0xffffff;
// Legal flags on data packets.
const int kDataFlagsMask = 0x01;
// Legal flags on control packets.
const int kControlFlagsMask = 0x03;
} // namespace net