| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // with a min rate of 1 BDP. | 73 // with a min rate of 1 BDP. |
| 74 const QuicTag kTLPR = TAG('T', 'L', 'P', 'R'); // Tail loss probe delay of | 74 const QuicTag kTLPR = TAG('T', 'L', 'P', 'R'); // Tail loss probe delay of |
| 75 // 0.5RTT. | 75 // 0.5RTT. |
| 76 const QuicTag kACKD = TAG('A', 'C', 'K', 'D'); // Ack decimation style acking. | 76 const QuicTag kACKD = TAG('A', 'C', 'K', 'D'); // Ack decimation style acking. |
| 77 const QuicTag kAKD2 = TAG('A', 'K', 'D', '2'); // Ack decimation tolerating | 77 const QuicTag kAKD2 = TAG('A', 'K', 'D', '2'); // Ack decimation tolerating |
| 78 // out of order packets. | 78 // out of order packets. |
| 79 const QuicTag kSSLR = TAG('S', 'S', 'L', 'R'); // Slow Start Large Reduction. | 79 const QuicTag kSSLR = TAG('S', 'S', 'L', 'R'); // Slow Start Large Reduction. |
| 80 const QuicTag k5RTO = TAG('5', 'R', 'T', 'O'); // Close connection on 5 RTOs | 80 const QuicTag k5RTO = TAG('5', 'R', 'T', 'O'); // Close connection on 5 RTOs |
| 81 const QuicTag kCTIM = TAG('C', 'T', 'I', 'M'); // Client timestamp in seconds | 81 const QuicTag kCTIM = TAG('C', 'T', 'I', 'M'); // Client timestamp in seconds |
| 82 // since UNIX epoch. | 82 // since UNIX epoch. |
| 83 const QuicTag kDHDT = TAG('D', 'H', 'D', 'T'); // Disable HPACK dynamic table. |
| 83 | 84 |
| 84 // Optional support of truncated Connection IDs. If sent by a peer, the value | 85 // Optional support of truncated Connection IDs. If sent by a peer, the value |
| 85 // is the minimum number of bytes allowed for the connection ID sent to the | 86 // is the minimum number of bytes allowed for the connection ID sent to the |
| 86 // peer. | 87 // peer. |
| 87 const QuicTag kTCID = TAG('T', 'C', 'I', 'D'); // Connection ID truncation. | 88 const QuicTag kTCID = TAG('T', 'C', 'I', 'D'); // Connection ID truncation. |
| 88 | 89 |
| 89 // Multipath option. | 90 // Multipath option. |
| 90 const QuicTag kMPTH = TAG('M', 'P', 'T', 'H'); // Enable multipath. | 91 const QuicTag kMPTH = TAG('M', 'P', 'T', 'H'); // Enable multipath. |
| 91 | 92 |
| 92 const QuicTag kNCMR = TAG('N', 'C', 'M', 'R'); // Do not attempt connection | 93 const QuicTag kNCMR = TAG('N', 'C', 'M', 'R'); // Do not attempt connection |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 // amplification factor of any mirror DoS attack. | 214 // amplification factor of any mirror DoS attack. |
| 214 // | 215 // |
| 215 // A client may pad an inchoate client hello to a size larger than | 216 // A client may pad an inchoate client hello to a size larger than |
| 216 // kClientHelloMinimumSize to make it more likely to receive a complete | 217 // kClientHelloMinimumSize to make it more likely to receive a complete |
| 217 // rejection message. | 218 // rejection message. |
| 218 const size_t kClientHelloMinimumSize = 1024; | 219 const size_t kClientHelloMinimumSize = 1024; |
| 219 | 220 |
| 220 } // namespace net | 221 } // namespace net |
| 221 | 222 |
| 222 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 223 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
| OLD | NEW |