| 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_CRYPTO_CRYPTO_PROTOCOL_H_ | 5 #ifndef NET_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_ |
| 6 #define NET_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_ | 6 #define NET_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_ |
| 7 | 7 |
| 8 #include <cstddef> | 8 #include <cstddef> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // of stream flow control | 75 // of stream flow control |
| 76 // receive window to | 76 // receive window to |
| 77 // 512KB. (2^9 KB). | 77 // 512KB. (2^9 KB). |
| 78 const QuicTag kIFWA = TAG('I', 'F', 'W', 'a'); // Set initial size | 78 const QuicTag kIFWA = TAG('I', 'F', 'W', 'a'); // Set initial size |
| 79 // of stream flow control | 79 // of stream flow control |
| 80 // receive window to | 80 // receive window to |
| 81 // 1MB. (2^0xa KB). | 81 // 1MB. (2^0xa KB). |
| 82 const QuicTag kTBBR = TAG('T', 'B', 'B', 'R'); // Reduced Buffer Bloat TCP | 82 const QuicTag kTBBR = TAG('T', 'B', 'B', 'R'); // Reduced Buffer Bloat TCP |
| 83 const QuicTag k1RTT = TAG('1', 'R', 'T', 'T'); // STARTUP in BBR for 1 RTT | 83 const QuicTag k1RTT = TAG('1', 'R', 'T', 'T'); // STARTUP in BBR for 1 RTT |
| 84 const QuicTag k2RTT = TAG('2', 'R', 'T', 'T'); // STARTUP in BBR for 2 RTTs | 84 const QuicTag k2RTT = TAG('2', 'R', 'T', 'T'); // STARTUP in BBR for 2 RTTs |
| 85 const QuicTag kBBRR = TAG('B', 'B', 'R', 'R'); // Rate-based recovery in BBR |
| 85 const QuicTag kRENO = TAG('R', 'E', 'N', 'O'); // Reno Congestion Control | 86 const QuicTag kRENO = TAG('R', 'E', 'N', 'O'); // Reno Congestion Control |
| 86 const QuicTag kTPCC = TAG('P', 'C', 'C', '\0'); // Performance-Oriented | 87 const QuicTag kTPCC = TAG('P', 'C', 'C', '\0'); // Performance-Oriented |
| 87 // Congestion Control | 88 // Congestion Control |
| 88 const QuicTag kBYTE = TAG('B', 'Y', 'T', 'E'); // TCP cubic or reno in bytes | 89 const QuicTag kBYTE = TAG('B', 'Y', 'T', 'E'); // TCP cubic or reno in bytes |
| 89 const QuicTag kRATE = TAG('R', 'A', 'T', 'E'); // TCP cubic rate based sending | 90 const QuicTag kRATE = TAG('R', 'A', 'T', 'E'); // TCP cubic rate based sending |
| 90 const QuicTag kIW03 = TAG('I', 'W', '0', '3'); // Force ICWND to 3 | 91 const QuicTag kIW03 = TAG('I', 'W', '0', '3'); // Force ICWND to 3 |
| 91 const QuicTag kIW10 = TAG('I', 'W', '1', '0'); // Force ICWND to 10 | 92 const QuicTag kIW10 = TAG('I', 'W', '1', '0'); // Force ICWND to 10 |
| 92 const QuicTag kIW20 = TAG('I', 'W', '2', '0'); // Force ICWND to 20 | 93 const QuicTag kIW20 = TAG('I', 'W', '2', '0'); // Force ICWND to 20 |
| 93 const QuicTag kIW50 = TAG('I', 'W', '5', '0'); // Force ICWND to 50 | 94 const QuicTag kIW50 = TAG('I', 'W', '5', '0'); // Force ICWND to 50 |
| 94 const QuicTag k1CON = TAG('1', 'C', 'O', 'N'); // Emulate a single connection | 95 const QuicTag k1CON = TAG('1', 'C', 'O', 'N'); // Emulate a single connection |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 // amplification factor of any mirror DoS attack. | 272 // amplification factor of any mirror DoS attack. |
| 272 // | 273 // |
| 273 // A client may pad an inchoate client hello to a size larger than | 274 // A client may pad an inchoate client hello to a size larger than |
| 274 // kClientHelloMinimumSize to make it more likely to receive a complete | 275 // kClientHelloMinimumSize to make it more likely to receive a complete |
| 275 // rejection message. | 276 // rejection message. |
| 276 const size_t kClientHelloMinimumSize = 1024; | 277 const size_t kClientHelloMinimumSize = 1024; |
| 277 | 278 |
| 278 } // namespace net | 279 } // namespace net |
| 279 | 280 |
| 280 #endif // NET_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_ | 281 #endif // NET_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_ |
| OLD | NEW |