| 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 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1174 NUM_ENCRYPTION_LEVELS, | 1174 NUM_ENCRYPTION_LEVELS, |
| 1175 }; | 1175 }; |
| 1176 | 1176 |
| 1177 enum PeerAddressChangeType { | 1177 enum PeerAddressChangeType { |
| 1178 // IP address and port remain unchanged. | 1178 // IP address and port remain unchanged. |
| 1179 NO_CHANGE, | 1179 NO_CHANGE, |
| 1180 // Port changed, but IP address remains unchanged. | 1180 // Port changed, but IP address remains unchanged. |
| 1181 PORT_CHANGE, | 1181 PORT_CHANGE, |
| 1182 // IPv4 address changed, but within the /24 subnet (port may have changed.) | 1182 // IPv4 address changed, but within the /24 subnet (port may have changed.) |
| 1183 IPV4_SUBNET_CHANGE, | 1183 IPV4_SUBNET_CHANGE, |
| 1184 // IPv4 address changed, excluding /24 subnet change (port may have changed.) |
| 1185 IPV4_TO_IPV4_CHANGE, |
| 1184 // IP address change from an IPv4 to an IPv6 address (port may have changed.) | 1186 // IP address change from an IPv4 to an IPv6 address (port may have changed.) |
| 1185 IPV4_TO_IPV6_CHANGE, | 1187 IPV4_TO_IPV6_CHANGE, |
| 1186 // IP address change from an IPv6 to an IPv4 address (port may have changed.) | 1188 // IP address change from an IPv6 to an IPv4 address (port may have changed.) |
| 1187 IPV6_TO_IPV4_CHANGE, | 1189 IPV6_TO_IPV4_CHANGE, |
| 1188 // IP address change from an IPv6 to an IPv6 address (port may have changed.) | 1190 // IP address change from an IPv6 to an IPv6 address (port may have changed.) |
| 1189 IPV6_TO_IPV6_CHANGE, | 1191 IPV6_TO_IPV6_CHANGE, |
| 1190 // All other peer address changes. | |
| 1191 UNSPECIFIED_CHANGE, | |
| 1192 }; | 1192 }; |
| 1193 | 1193 |
| 1194 struct NET_EXPORT_PRIVATE QuicFrame { | 1194 struct NET_EXPORT_PRIVATE QuicFrame { |
| 1195 QuicFrame(); | 1195 QuicFrame(); |
| 1196 explicit QuicFrame(QuicPaddingFrame padding_frame); | 1196 explicit QuicFrame(QuicPaddingFrame padding_frame); |
| 1197 explicit QuicFrame(QuicMtuDiscoveryFrame frame); | 1197 explicit QuicFrame(QuicMtuDiscoveryFrame frame); |
| 1198 explicit QuicFrame(QuicPingFrame frame); | 1198 explicit QuicFrame(QuicPingFrame frame); |
| 1199 | 1199 |
| 1200 explicit QuicFrame(QuicStreamFrame* stream_frame); | 1200 explicit QuicFrame(QuicStreamFrame* stream_frame); |
| 1201 explicit QuicFrame(QuicAckFrame* frame); | 1201 explicit QuicFrame(QuicAckFrame* frame); |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1530 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1530 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1531 | 1531 |
| 1532 const struct iovec* iov; | 1532 const struct iovec* iov; |
| 1533 const int iov_count; | 1533 const int iov_count; |
| 1534 const size_t total_length; | 1534 const size_t total_length; |
| 1535 }; | 1535 }; |
| 1536 | 1536 |
| 1537 } // namespace net | 1537 } // namespace net |
| 1538 | 1538 |
| 1539 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1539 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |