| 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_PROTOCOL_H_ | 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ |
| 6 #define NET_QUIC_QUIC_PROTOCOL_H_ | 6 #define NET_QUIC_QUIC_PROTOCOL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT = 44, | 673 QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT = 44, |
| 674 // The server config for a server has expired. | 674 // The server config for a server has expired. |
| 675 QUIC_CRYPTO_SERVER_CONFIG_EXPIRED = 45, | 675 QUIC_CRYPTO_SERVER_CONFIG_EXPIRED = 45, |
| 676 // We failed to setup the symmetric keys for a connection. | 676 // We failed to setup the symmetric keys for a connection. |
| 677 QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED = 53, | 677 QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED = 53, |
| 678 // A handshake message arrived, but we are still validating the | 678 // A handshake message arrived, but we are still validating the |
| 679 // previous handshake message. | 679 // previous handshake message. |
| 680 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, | 680 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, |
| 681 // A server config update arrived before the handshake is complete. | 681 // A server config update arrived before the handshake is complete. |
| 682 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, | 682 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, |
| 683 // CHLO cannot fit in one packet. |
| 684 QUIC_CRYPTO_CHLO_TOO_LARGE = 90, |
| 683 // This connection involved a version negotiation which appears to have been | 685 // This connection involved a version negotiation which appears to have been |
| 684 // tampered with. | 686 // tampered with. |
| 685 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, | 687 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, |
| 686 | 688 |
| 687 // Multipath is not enabled, but a packet with multipath flag on is received. | 689 // Multipath is not enabled, but a packet with multipath flag on is received. |
| 688 QUIC_BAD_MULTIPATH_FLAG = 79, | 690 QUIC_BAD_MULTIPATH_FLAG = 79, |
| 689 | 691 |
| 690 // IP address changed causing connection close. | 692 // IP address changed causing connection close. |
| 691 QUIC_IP_ADDRESS_CHANGED = 80, | 693 QUIC_IP_ADDRESS_CHANGED = 80, |
| 692 | 694 |
| 693 // Connection migration errors. | 695 // Connection migration errors. |
| 694 // Network changed, but connection had no migratable streams. | 696 // Network changed, but connection had no migratable streams. |
| 695 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 81, | 697 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 81, |
| 696 // Connection changed networks too many times. | 698 // Connection changed networks too many times. |
| 697 QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES = 82, | 699 QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES = 82, |
| 698 // Connection migration was attempted, but there was no new network to | 700 // Connection migration was attempted, but there was no new network to |
| 699 // migrate to. | 701 // migrate to. |
| 700 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 83, | 702 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 83, |
| 701 // Network changed, but connection had one or more non-migratable streams. | 703 // Network changed, but connection had one or more non-migratable streams. |
| 702 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, | 704 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, |
| 703 | 705 |
| 704 // No error. Used as bound while iterating. | 706 // No error. Used as bound while iterating. |
| 705 QUIC_LAST_ERROR = 90, | 707 QUIC_LAST_ERROR = 91, |
| 706 }; | 708 }; |
| 707 | 709 |
| 708 // Must be updated any time a QuicErrorCode is deprecated. | 710 // Must be updated any time a QuicErrorCode is deprecated. |
| 709 const int kDeprecatedQuicErrorCount = 4; | 711 const int kDeprecatedQuicErrorCount = 4; |
| 710 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount; | 712 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount; |
| 711 | 713 |
| 712 typedef char DiversificationNonce[32]; | 714 typedef char DiversificationNonce[32]; |
| 713 | 715 |
| 714 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 716 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
| 715 QuicPacketPublicHeader(); | 717 QuicPacketPublicHeader(); |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1496 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1498 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1497 | 1499 |
| 1498 const struct iovec* iov; | 1500 const struct iovec* iov; |
| 1499 const int iov_count; | 1501 const int iov_count; |
| 1500 const size_t total_length; | 1502 const size_t total_length; |
| 1501 }; | 1503 }; |
| 1502 | 1504 |
| 1503 } // namespace net | 1505 } // namespace net |
| 1504 | 1506 |
| 1505 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1507 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |