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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 // previous handshake message. | 675 // previous handshake message. |
676 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, | 676 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, |
677 // A server config update arrived before the handshake is complete. | 677 // A server config update arrived before the handshake is complete. |
678 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, | 678 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, |
679 // CHLO cannot fit in one packet. | 679 // CHLO cannot fit in one packet. |
680 QUIC_CRYPTO_CHLO_TOO_LARGE = 90, | 680 QUIC_CRYPTO_CHLO_TOO_LARGE = 90, |
681 // This connection involved a version negotiation which appears to have been | 681 // This connection involved a version negotiation which appears to have been |
682 // tampered with. | 682 // tampered with. |
683 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, | 683 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, |
684 | 684 |
| 685 // Multipath errors. |
685 // Multipath is not enabled, but a packet with multipath flag on is received. | 686 // Multipath is not enabled, but a packet with multipath flag on is received. |
686 QUIC_BAD_MULTIPATH_FLAG = 79, | 687 QUIC_BAD_MULTIPATH_FLAG = 79, |
| 688 // A path is supposed to exist but does not. |
| 689 QUIC_MULTIPATH_PATH_DOES_NOT_EXIST = 91, |
| 690 // A path is supposed to be active but is not. |
| 691 QUIC_MULTIPATH_PATH_NOT_ACTIVE = 92, |
687 | 692 |
688 // IP address changed causing connection close. | 693 // IP address changed causing connection close. |
689 QUIC_IP_ADDRESS_CHANGED = 80, | 694 QUIC_IP_ADDRESS_CHANGED = 80, |
690 | 695 |
691 // Connection migration errors. | 696 // Connection migration errors. |
692 // Network changed, but connection had no migratable streams. | 697 // Network changed, but connection had no migratable streams. |
693 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 81, | 698 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 81, |
694 // Connection changed networks too many times. | 699 // Connection changed networks too many times. |
695 QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES = 82, | 700 QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES = 82, |
696 // Connection migration was attempted, but there was no new network to | 701 // Connection migration was attempted, but there was no new network to |
697 // migrate to. | 702 // migrate to. |
698 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 83, | 703 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 83, |
699 // Network changed, but connection had one or more non-migratable streams. | 704 // Network changed, but connection had one or more non-migratable streams. |
700 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, | 705 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, |
701 | 706 |
702 // No error. Used as bound while iterating. | 707 // No error. Used as bound while iterating. |
703 QUIC_LAST_ERROR = 91, | 708 QUIC_LAST_ERROR = 93, |
704 }; | 709 }; |
705 | 710 |
706 typedef char DiversificationNonce[32]; | 711 typedef char DiversificationNonce[32]; |
707 | 712 |
708 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 713 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
709 QuicPacketPublicHeader(); | 714 QuicPacketPublicHeader(); |
710 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 715 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
711 ~QuicPacketPublicHeader(); | 716 ~QuicPacketPublicHeader(); |
712 | 717 |
713 // Universal header. All QuicPacket headers will have a connection_id and | 718 // Universal header. All QuicPacket headers will have a connection_id and |
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1499 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1504 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
1500 | 1505 |
1501 const struct iovec* iov; | 1506 const struct iovec* iov; |
1502 const int iov_count; | 1507 const int iov_count; |
1503 const size_t total_length; | 1508 const size_t total_length; |
1504 }; | 1509 }; |
1505 | 1510 |
1506 } // namespace net | 1511 } // namespace net |
1507 | 1512 |
1508 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1513 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |