Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: net/quic/core/quic_protocol.h

Issue 2316193002: Allow IP migration. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/core/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698