| OLD | NEW |
| 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_QUIC_CORE_QUIC_CONSTANTS_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_CONSTANTS_H_ |
| 6 #define NET_QUIC_CORE_QUIC_CONSTANTS_H_ | 6 #define NET_QUIC_CORE_QUIC_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <cstdint> | 10 #include <cstdint> |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 173 |
| 174 // kDiversificationNonceSize is the size, in bytes, of the nonce that a server | 174 // kDiversificationNonceSize is the size, in bytes, of the nonce that a server |
| 175 // may set in the packet header to ensure that its INITIAL keys are not | 175 // may set in the packet header to ensure that its INITIAL keys are not |
| 176 // duplicated. | 176 // duplicated. |
| 177 const size_t kDiversificationNonceSize = 32; | 177 const size_t kDiversificationNonceSize = 32; |
| 178 | 178 |
| 179 // The largest gap in packets we'll accept without closing the connection. | 179 // The largest gap in packets we'll accept without closing the connection. |
| 180 // This will likely have to be tuned. | 180 // This will likely have to be tuned. |
| 181 const QuicPacketNumber kMaxPacketGap = 5000; | 181 const QuicPacketNumber kMaxPacketGap = 5000; |
| 182 | 182 |
| 183 // The maximum number of random padding bytes to add. |
| 184 const QuicByteCount kMaxNumRandomPaddingBytes = 256; |
| 185 |
| 183 } // namespace net | 186 } // namespace net |
| 184 | 187 |
| 185 #endif // NET_QUIC_CORE_QUIC_CONSTANTS_H_ | 188 #endif // NET_QUIC_CORE_QUIC_CONSTANTS_H_ |
| OLD | NEW |