| 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_QUIC_ERROR_CODES_H_ | 5 #ifndef NET_QUIC_QUIC_ERROR_CODES_H_ |
| 6 #define NET_QUIC_QUIC_ERROR_CODES_H_ | 6 #define NET_QUIC_QUIC_ERROR_CODES_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <limits> | 10 #include <limits> |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 QUIC_PUBLIC_RESETS_POST_HANDSHAKE = 73, | 174 QUIC_PUBLIC_RESETS_POST_HANDSHAKE = 73, |
| 175 // Disabled QUIC because of too many timeouts with streams open. | 175 // Disabled QUIC because of too many timeouts with streams open. |
| 176 QUIC_TIMEOUTS_WITH_OPEN_STREAMS = 74, | 176 QUIC_TIMEOUTS_WITH_OPEN_STREAMS = 74, |
| 177 // Closed because we failed to serialize a packet. | 177 // Closed because we failed to serialize a packet. |
| 178 QUIC_FAILED_TO_SERIALIZE_PACKET = 75, | 178 QUIC_FAILED_TO_SERIALIZE_PACKET = 75, |
| 179 // QUIC timed out after too many RTOs. | 179 // QUIC timed out after too many RTOs. |
| 180 QUIC_TOO_MANY_RTOS = 85, | 180 QUIC_TOO_MANY_RTOS = 85, |
| 181 | 181 |
| 182 // Crypto errors. | 182 // Crypto errors. |
| 183 | 183 |
| 184 // Hanshake failed. | 184 // Handshake failed. |
| 185 QUIC_HANDSHAKE_FAILED = 28, | 185 QUIC_HANDSHAKE_FAILED = 28, |
| 186 // Handshake message contained out of order tags. | 186 // Handshake message contained out of order tags. |
| 187 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29, | 187 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29, |
| 188 // Handshake message contained too many entries. | 188 // Handshake message contained too many entries. |
| 189 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30, | 189 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30, |
| 190 // Handshake message contained an invalid value length. | 190 // Handshake message contained an invalid value length. |
| 191 QUIC_CRYPTO_INVALID_VALUE_LENGTH = 31, | 191 QUIC_CRYPTO_INVALID_VALUE_LENGTH = 31, |
| 192 // A crypto message was received after the handshake was complete. | 192 // A crypto message was received after the handshake was complete. |
| 193 QUIC_CRYPTO_MESSAGE_AFTER_HANDSHAKE_COMPLETE = 32, | 193 QUIC_CRYPTO_MESSAGE_AFTER_HANDSHAKE_COMPLETE = 32, |
| 194 // A crypto message was received with an illegal message tag. | 194 // A crypto message was received with an illegal message tag. |
| 195 QUIC_INVALID_CRYPTO_MESSAGE_TYPE = 33, | 195 QUIC_INVALID_CRYPTO_MESSAGE_TYPE = 33, |
| 196 // A crypto message was received with an illegal parameter. | 196 // A crypto message was received with an illegal parameter. |
| 197 QUIC_INVALID_CRYPTO_MESSAGE_PARAMETER = 34, | 197 QUIC_INVALID_CRYPTO_MESSAGE_PARAMETER = 34, |
| 198 // An invalid channel id signature was supplied. | 198 // An invalid channel id signature was supplied. |
| 199 QUIC_INVALID_CHANNEL_ID_SIGNATURE = 52, | 199 QUIC_INVALID_CHANNEL_ID_SIGNATURE = 52, |
| 200 // A crypto message was received with a mandatory parameter missing. | 200 // A crypto message was received with a mandatory parameter missing. |
| 201 QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND = 35, | 201 QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND = 35, |
| 202 // A crypto message was received with a parameter that has no overlap | 202 // A crypto message was received with a parameter that has no overlap |
| 203 // with the local parameter. | 203 // with the local parameter. |
| 204 QUIC_CRYPTO_MESSAGE_PARAMETER_NO_OVERLAP = 36, | 204 QUIC_CRYPTO_MESSAGE_PARAMETER_NO_OVERLAP = 36, |
| 205 // A crypto message was received that contained a parameter with too few | 205 // A crypto message was received that contained a parameter with too few |
| 206 // values. | 206 // values. |
| 207 QUIC_CRYPTO_MESSAGE_INDEX_NOT_FOUND = 37, | 207 QUIC_CRYPTO_MESSAGE_INDEX_NOT_FOUND = 37, |
| 208 // A demand for an unsupport proof type was received. | 208 // A demand for an unsupport proof type was received. |
| 209 QUIC_UNSUPPORTED_PROOF_DEMAND = 94, | 209 QUIC_UNSUPPORTED_PROOF_DEMAND = 94, |
| 210 // An internal error occured in crypto processing. | 210 // An internal error occurred in crypto processing. |
| 211 QUIC_CRYPTO_INTERNAL_ERROR = 38, | 211 QUIC_CRYPTO_INTERNAL_ERROR = 38, |
| 212 // A crypto handshake message specified an unsupported version. | 212 // A crypto handshake message specified an unsupported version. |
| 213 QUIC_CRYPTO_VERSION_NOT_SUPPORTED = 39, | 213 QUIC_CRYPTO_VERSION_NOT_SUPPORTED = 39, |
| 214 // A crypto handshake message resulted in a stateless reject. | 214 // A crypto handshake message resulted in a stateless reject. |
| 215 QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT = 72, | 215 QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT = 72, |
| 216 // There was no intersection between the crypto primitives supported by the | 216 // There was no intersection between the crypto primitives supported by the |
| 217 // peer and ourselves. | 217 // peer and ourselves. |
| 218 QUIC_CRYPTO_NO_SUPPORT = 40, | 218 QUIC_CRYPTO_NO_SUPPORT = 40, |
| 219 // The server rejected our client hello messages too many times. | 219 // The server rejected our client hello messages too many times. |
| 220 QUIC_CRYPTO_TOO_MANY_REJECTS = 41, | 220 QUIC_CRYPTO_TOO_MANY_REJECTS = 41, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 // Returns the name of the QuicRstStreamErrorCode as a char* | 285 // Returns the name of the QuicRstStreamErrorCode as a char* |
| 286 NET_EXPORT_PRIVATE const char* QuicRstStreamErrorCodeToString( | 286 NET_EXPORT_PRIVATE const char* QuicRstStreamErrorCodeToString( |
| 287 QuicRstStreamErrorCode error); | 287 QuicRstStreamErrorCode error); |
| 288 | 288 |
| 289 // Returns the name of the QuicErrorCode as a char* | 289 // Returns the name of the QuicErrorCode as a char* |
| 290 NET_EXPORT_PRIVATE const char* QuicErrorCodeToString(QuicErrorCode error); | 290 NET_EXPORT_PRIVATE const char* QuicErrorCodeToString(QuicErrorCode error); |
| 291 | 291 |
| 292 } // namespace net | 292 } // namespace net |
| 293 | 293 |
| 294 #endif // NET_QUIC_QUIC_ERROR_CODES_H_ | 294 #endif // NET_QUIC_QUIC_ERROR_CODES_H_ |
| OLD | NEW |