| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 const QuicTag kACKD = TAG('A', 'C', 'K', 'D'); // Ack decimation style acking. | 104 const QuicTag kACKD = TAG('A', 'C', 'K', 'D'); // Ack decimation style acking. |
| 105 const QuicTag kAKD2 = TAG('A', 'K', 'D', '2'); // Ack decimation tolerating | 105 const QuicTag kAKD2 = TAG('A', 'K', 'D', '2'); // Ack decimation tolerating |
| 106 // out of order packets. | 106 // out of order packets. |
| 107 const QuicTag kAKD3 = TAG('A', 'K', 'D', '3'); // Ack decimation style acking | 107 const QuicTag kAKD3 = TAG('A', 'K', 'D', '3'); // Ack decimation style acking |
| 108 // with 1/8 RTT acks. | 108 // with 1/8 RTT acks. |
| 109 const QuicTag kAKD4 = TAG('A', 'K', 'D', '4'); // Ack decimation with 1/8 RTT | 109 const QuicTag kAKD4 = TAG('A', 'K', 'D', '4'); // Ack decimation with 1/8 RTT |
| 110 // tolerating out of order. | 110 // tolerating out of order. |
| 111 const QuicTag kSSLR = TAG('S', 'S', 'L', 'R'); // Slow Start Large Reduction. | 111 const QuicTag kSSLR = TAG('S', 'S', 'L', 'R'); // Slow Start Large Reduction. |
| 112 const QuicTag kNPRR = TAG('N', 'P', 'R', 'R'); // Pace at unity instead of PRR | 112 const QuicTag kNPRR = TAG('N', 'P', 'R', 'R'); // Pace at unity instead of PRR |
| 113 const QuicTag k5RTO = TAG('5', 'R', 'T', 'O'); // Close connection on 5 RTOs | 113 const QuicTag k5RTO = TAG('5', 'R', 'T', 'O'); // Close connection on 5 RTOs |
| 114 const QuicTag k3RTO = TAG('3', 'R', 'T', 'O'); // Close connection on 3 RTOs |
| 114 const QuicTag kCTIM = TAG('C', 'T', 'I', 'M'); // Client timestamp in seconds | 115 const QuicTag kCTIM = TAG('C', 'T', 'I', 'M'); // Client timestamp in seconds |
| 115 // since UNIX epoch. | 116 // since UNIX epoch. |
| 116 const QuicTag kDHDT = TAG('D', 'H', 'D', 'T'); // Disable HPACK dynamic table. | 117 const QuicTag kDHDT = TAG('D', 'H', 'D', 'T'); // Disable HPACK dynamic table. |
| 117 const QuicTag kCONH = TAG('C', 'O', 'N', 'H'); // Conservative Handshake | 118 const QuicTag kCONH = TAG('C', 'O', 'N', 'H'); // Conservative Handshake |
| 118 // Retransmissions. | 119 // Retransmissions. |
| 119 const QuicTag kLFAK = TAG('L', 'F', 'A', 'K'); // Don't invoke FACK on the | 120 const QuicTag kLFAK = TAG('L', 'F', 'A', 'K'); // Don't invoke FACK on the |
| 120 // first ack. | 121 // first ack. |
| 121 // TODO(fayang): Remove this connection option in QUIC_VERSION_37, in which | 122 // TODO(fayang): Remove this connection option in QUIC_VERSION_37, in which |
| 122 // MAX_HEADER_LIST_SIZE settings frame should be supported. | 123 // MAX_HEADER_LIST_SIZE settings frame should be supported. |
| 123 const QuicTag kSMHL = TAG('S', 'M', 'H', 'L'); // Support MAX_HEADER_LIST_SIZE | 124 const QuicTag kSMHL = TAG('S', 'M', 'H', 'L'); // Support MAX_HEADER_LIST_SIZE |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 // amplification factor of any mirror DoS attack. | 268 // amplification factor of any mirror DoS attack. |
| 268 // | 269 // |
| 269 // A client may pad an inchoate client hello to a size larger than | 270 // A client may pad an inchoate client hello to a size larger than |
| 270 // kClientHelloMinimumSize to make it more likely to receive a complete | 271 // kClientHelloMinimumSize to make it more likely to receive a complete |
| 271 // rejection message. | 272 // rejection message. |
| 272 const size_t kClientHelloMinimumSize = 1024; | 273 const size_t kClientHelloMinimumSize = 1024; |
| 273 | 274 |
| 274 } // namespace net | 275 } // namespace net |
| 275 | 276 |
| 276 #endif // NET_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_ | 277 #endif // NET_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_ |
| OLD | NEW |