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_CRYPTO_CRYPTO_PROTOCOL_H_ | 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
6 #define NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 6 #define NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 const QuicTag kAESG = TAG('A', 'E', 'S', 'G'); // AES128 + GCM-12 | 49 const QuicTag kAESG = TAG('A', 'E', 'S', 'G'); // AES128 + GCM-12 |
50 const QuicTag kCC20 = TAG('C', 'C', '2', '0'); // ChaCha20 + Poly1305 RFC7539 | 50 const QuicTag kCC20 = TAG('C', 'C', '2', '0'); // ChaCha20 + Poly1305 RFC7539 |
51 | 51 |
52 // Socket receive buffer | 52 // Socket receive buffer |
53 const QuicTag kSRBF = TAG('S', 'R', 'B', 'F'); // Socket receive buffer | 53 const QuicTag kSRBF = TAG('S', 'R', 'B', 'F'); // Socket receive buffer |
54 | 54 |
55 // Congestion control feedback types | 55 // Congestion control feedback types |
56 const QuicTag kQBIC = TAG('Q', 'B', 'I', 'C'); // TCP cubic | 56 const QuicTag kQBIC = TAG('Q', 'B', 'I', 'C'); // TCP cubic |
57 | 57 |
58 // Connection options (COPT) values | 58 // Connection options (COPT) values |
59 const QuicTag kAFCW = TAG('A', 'F', 'C', 'W'); // Auto-tune flow control | |
60 // receive windows. | |
61 const QuicTag kIFW5 = TAG('I', 'F', 'W', '5'); // Set initial size | |
62 // of stream flow control | |
63 // receive window to | |
64 // 32KB. (2^5 KB). | |
65 const QuicTag kIFW6 = TAG('I', 'F', 'W', '6'); // Set initial size | |
66 // of stream flow control | |
67 // receive window to | |
68 // 64KB. (2^6 KB). | |
69 const QuicTag kIFW7 = TAG('I', 'F', 'W', '7'); // Set initial size | |
70 // of stream flow control | |
71 // receive window to | |
72 // 128KB. (2^7 KB). | |
73 const QuicTag kTBBR = TAG('T', 'B', 'B', 'R'); // Reduced Buffer Bloat TCP | 59 const QuicTag kTBBR = TAG('T', 'B', 'B', 'R'); // Reduced Buffer Bloat TCP |
74 const QuicTag kRENO = TAG('R', 'E', 'N', 'O'); // Reno Congestion Control | 60 const QuicTag kRENO = TAG('R', 'E', 'N', 'O'); // Reno Congestion Control |
75 const QuicTag kBYTE = TAG('B', 'Y', 'T', 'E'); // TCP cubic or reno in bytes | 61 const QuicTag kBYTE = TAG('B', 'Y', 'T', 'E'); // TCP cubic or reno in bytes |
76 const QuicTag kIW03 = TAG('I', 'W', '0', '3'); // Force ICWND to 3 | 62 const QuicTag kIW03 = TAG('I', 'W', '0', '3'); // Force ICWND to 3 |
77 const QuicTag kIW10 = TAG('I', 'W', '1', '0'); // Force ICWND to 10 | 63 const QuicTag kIW10 = TAG('I', 'W', '1', '0'); // Force ICWND to 10 |
78 const QuicTag kIW20 = TAG('I', 'W', '2', '0'); // Force ICWND to 20 | 64 const QuicTag kIW20 = TAG('I', 'W', '2', '0'); // Force ICWND to 20 |
79 const QuicTag kIW50 = TAG('I', 'W', '5', '0'); // Force ICWND to 50 | 65 const QuicTag kIW50 = TAG('I', 'W', '5', '0'); // Force ICWND to 50 |
80 const QuicTag k1CON = TAG('1', 'C', 'O', 'N'); // Emulate a single connection | 66 const QuicTag k1CON = TAG('1', 'C', 'O', 'N'); // Emulate a single connection |
81 const QuicTag kNTLP = TAG('N', 'T', 'L', 'P'); // No tail loss probe | 67 const QuicTag kNTLP = TAG('N', 'T', 'L', 'P'); // No tail loss probe |
82 const QuicTag kNCON = TAG('N', 'C', 'O', 'N'); // N Connection Congestion Ctrl | 68 const QuicTag kNCON = TAG('N', 'C', 'O', 'N'); // N Connection Congestion Ctrl |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // amplification factor of any mirror DoS attack. | 213 // amplification factor of any mirror DoS attack. |
228 // | 214 // |
229 // A client may pad an inchoate client hello to a size larger than | 215 // A client may pad an inchoate client hello to a size larger than |
230 // kClientHelloMinimumSize to make it more likely to receive a complete | 216 // kClientHelloMinimumSize to make it more likely to receive a complete |
231 // rejection message. | 217 // rejection message. |
232 const size_t kClientHelloMinimumSize = 1024; | 218 const size_t kClientHelloMinimumSize = 1024; |
233 | 219 |
234 } // namespace net | 220 } // namespace net |
235 | 221 |
236 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 222 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
OLD | NEW |