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

Side by Side Diff: net/quic/core/quic_utils.cc

Issue 2808273006: Landing Recent QUIC changes until Sun Apr 9 16:12:55 (Closed)
Patch Set: increment enabled_options in e2e test Created 3 years, 8 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 | « net/quic/core/quic_utils.h ('k') | net/quic/core/quic_version_manager.h » ('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 #include "net/quic/core/quic_utils.h" 5 #include "net/quic/core/quic_utils.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstdint> 8 #include <cstdint>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 const int kSubnetMaskLength = 24; 201 const int kSubnetMaskLength = 24;
202 if (old_address.host().InSameSubnet(new_address.host(), kSubnetMaskLength)) { 202 if (old_address.host().InSameSubnet(new_address.host(), kSubnetMaskLength)) {
203 // Subnet part does not change (here, we use /24), which is considered to be 203 // Subnet part does not change (here, we use /24), which is considered to be
204 // caused by NATs. 204 // caused by NATs.
205 return IPV4_SUBNET_CHANGE; 205 return IPV4_SUBNET_CHANGE;
206 } 206 }
207 207
208 return IPV4_TO_IPV4_CHANGE; 208 return IPV4_TO_IPV4_CHANGE;
209 } 209 }
210 210
211 // static
212 bool QuicUtils::IsConnectionIdWireFormatBigEndian(Perspective perspective) {
213 return (perspective == Perspective::IS_CLIENT &&
214 FLAGS_quic_restart_flag_quic_big_endian_connection_id_client) ||
215 (perspective == Perspective::IS_SERVER &&
216 FLAGS_quic_restart_flag_quic_big_endian_connection_id_server);
217 }
218
211 } // namespace net 219 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_utils.h ('k') | net/quic/core/quic_version_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698