| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 const QuicTag kNRTO = TAG('N', 'R', 'T', 'O'); // CWND reduction on loss | 69 const QuicTag kNRTO = TAG('N', 'R', 'T', 'O'); // CWND reduction on loss |
| 70 const QuicTag kTIME = TAG('T', 'I', 'M', 'E'); // Time based loss detection | 70 const QuicTag kTIME = TAG('T', 'I', 'M', 'E'); // Time based loss detection |
| 71 const QuicTag kMIN1 = TAG('M', 'I', 'N', '1'); // Min CWND of 1 packet | 71 const QuicTag kMIN1 = TAG('M', 'I', 'N', '1'); // Min CWND of 1 packet |
| 72 const QuicTag kMIN4 = TAG('M', 'I', 'N', '4'); // Min CWND of 4 packets, | 72 const QuicTag kMIN4 = TAG('M', 'I', 'N', '4'); // Min CWND of 4 packets, |
| 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 kAKD3 = TAG('A', 'K', 'D', '3'); // Ack decimation style acking |
| 80 // with 1/8 RTT acks. |
| 81 const QuicTag kAKD4 = TAG('A', 'K', 'D', '4'); // Ack decimation with 1/8 RTT |
| 82 // tolerating out of order. |
| 79 const QuicTag kSSLR = TAG('S', 'S', 'L', 'R'); // Slow Start Large Reduction. | 83 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 | 84 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 | 85 const QuicTag kCTIM = TAG('C', 'T', 'I', 'M'); // Client timestamp in seconds |
| 82 // since UNIX epoch. | 86 // since UNIX epoch. |
| 83 const QuicTag kDHDT = TAG('D', 'H', 'D', 'T'); // Disable HPACK dynamic table. | 87 const QuicTag kDHDT = TAG('D', 'H', 'D', 'T'); // Disable HPACK dynamic table. |
| 88 const QuicTag kIPFS = TAG('I', 'P', 'F', 'S'); // Immediate Forward Secrecy. |
| 84 | 89 |
| 85 // Optional support of truncated Connection IDs. If sent by a peer, the value | 90 // Optional support of truncated Connection IDs. If sent by a peer, the value |
| 86 // is the minimum number of bytes allowed for the connection ID sent to the | 91 // is the minimum number of bytes allowed for the connection ID sent to the |
| 87 // peer. | 92 // peer. |
| 88 const QuicTag kTCID = TAG('T', 'C', 'I', 'D'); // Connection ID truncation. | 93 const QuicTag kTCID = TAG('T', 'C', 'I', 'D'); // Connection ID truncation. |
| 89 | 94 |
| 90 // Multipath option. | 95 // Multipath option. |
| 91 const QuicTag kMPTH = TAG('M', 'P', 'T', 'H'); // Enable multipath. | 96 const QuicTag kMPTH = TAG('M', 'P', 'T', 'H'); // Enable multipath. |
| 92 | 97 |
| 93 const QuicTag kNCMR = TAG('N', 'C', 'M', 'R'); // Do not attempt connection | 98 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... |
| 214 // amplification factor of any mirror DoS attack. | 219 // amplification factor of any mirror DoS attack. |
| 215 // | 220 // |
| 216 // A client may pad an inchoate client hello to a size larger than | 221 // A client may pad an inchoate client hello to a size larger than |
| 217 // kClientHelloMinimumSize to make it more likely to receive a complete | 222 // kClientHelloMinimumSize to make it more likely to receive a complete |
| 218 // rejection message. | 223 // rejection message. |
| 219 const size_t kClientHelloMinimumSize = 1024; | 224 const size_t kClientHelloMinimumSize = 1024; |
| 220 | 225 |
| 221 } // namespace net | 226 } // namespace net |
| 222 | 227 |
| 223 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 228 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
| OLD | NEW |