| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 const QuicTag kTLPR = TAG('T', 'L', 'P', 'R'); // Tail loss probe delay of | 89 const QuicTag kTLPR = TAG('T', 'L', 'P', 'R'); // Tail loss probe delay of |
| 90 // 0.5RTT. | 90 // 0.5RTT. |
| 91 const QuicTag kACKD = TAG('A', 'C', 'K', 'D'); // Ack decimation style acking. | 91 const QuicTag kACKD = TAG('A', 'C', 'K', 'D'); // Ack decimation style acking. |
| 92 const QuicTag kSSLR = TAG('S', 'S', 'L', 'R'); // Slow Start Large Reduction. | 92 const QuicTag kSSLR = TAG('S', 'S', 'L', 'R'); // Slow Start Large Reduction. |
| 93 | 93 |
| 94 // Optional support of truncated Connection IDs. If sent by a peer, the value | 94 // Optional support of truncated Connection IDs. If sent by a peer, the value |
| 95 // is the minimum number of bytes allowed for the connection ID sent to the | 95 // is the minimum number of bytes allowed for the connection ID sent to the |
| 96 // peer. | 96 // peer. |
| 97 const QuicTag kTCID = TAG('T', 'C', 'I', 'D'); // Connection ID truncation. | 97 const QuicTag kTCID = TAG('T', 'C', 'I', 'D'); // Connection ID truncation. |
| 98 | 98 |
| 99 // Multipath option. |
| 100 const QuicTag kMPTH = TAG('M', 'P', 'T', 'H'); // Enable multipath. |
| 101 |
| 99 // FEC options | 102 // FEC options |
| 100 const QuicTag kFHDR = TAG('F', 'H', 'D', 'R'); // FEC protect headers | 103 const QuicTag kFHDR = TAG('F', 'H', 'D', 'R'); // FEC protect headers |
| 101 const QuicTag kFSTR = TAG('F', 'S', 'T', 'R'); // FEC protect all streams | 104 const QuicTag kFSTR = TAG('F', 'S', 'T', 'R'); // FEC protect all streams |
| 102 // Set FecSendPolicy for sending FEC packet only when FEC alarm goes off. | 105 // Set FecSendPolicy for sending FEC packet only when FEC alarm goes off. |
| 103 const QuicTag kFSPA = TAG('F', 'S', 'P', 'A'); | 106 const QuicTag kFSPA = TAG('F', 'S', 'P', 'A'); |
| 104 // Run an experiment that sets FecTimeOut alarm to 0.25RTT. | 107 // Run an experiment that sets FecTimeOut alarm to 0.25RTT. |
| 105 // TODO(rtenneti): Delete it after the experiment. | 108 // TODO(rtenneti): Delete it after the experiment. |
| 106 const QuicTag kFRTT = TAG('F', 'R', 'T', 'T'); | 109 const QuicTag kFRTT = TAG('F', 'R', 'T', 'T'); |
| 107 | 110 |
| 108 // Enable bandwidth resumption experiment. | 111 // Enable bandwidth resumption experiment. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 // amplification factor of any mirror DoS attack. | 220 // amplification factor of any mirror DoS attack. |
| 218 // | 221 // |
| 219 // A client may pad an inchoate client hello to a size larger than | 222 // A client may pad an inchoate client hello to a size larger than |
| 220 // kClientHelloMinimumSize to make it more likely to receive a complete | 223 // kClientHelloMinimumSize to make it more likely to receive a complete |
| 221 // rejection message. | 224 // rejection message. |
| 222 const size_t kClientHelloMinimumSize = 1024; | 225 const size_t kClientHelloMinimumSize = 1024; |
| 223 | 226 |
| 224 } // namespace net | 227 } // namespace net |
| 225 | 228 |
| 226 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 229 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
| OLD | NEW |