Index: net/quic/core/quic_utils.cc |
diff --git a/net/quic/core/quic_utils.cc b/net/quic/core/quic_utils.cc |
index d68c55fb715d209d01910553f995a368dbdc4e38..b7f31832da024f4785cf3e053f5bf45b722d120c 100644 |
--- a/net/quic/core/quic_utils.cc |
+++ b/net/quic/core/quic_utils.cc |
@@ -208,4 +208,12 @@ PeerAddressChangeType QuicUtils::DetermineAddressChangeType( |
return IPV4_TO_IPV4_CHANGE; |
} |
+// static |
+bool QuicUtils::IsConnectionIdWireFormatBigEndian(Perspective perspective) { |
+ return (perspective == Perspective::IS_CLIENT && |
+ FLAGS_quic_restart_flag_quic_big_endian_connection_id_client) || |
+ (perspective == Perspective::IS_SERVER && |
+ FLAGS_quic_restart_flag_quic_big_endian_connection_id_server); |
+} |
+ |
} // namespace net |