Allow variable length connection IDs in v99
This CL enables the use of QUIC variable length connection IDs (VLCIDs) in v99. It also relaxes some checks when VLCIDs are enabled, and fixes tests that were relying on this. This CL also fixes QuicFramerTest.MissingDiversificationNonce as this work uncovered that the test was failure to parse headers because the headers were wrong, instead of testing for missing diversification nonces.
gfe-relnote: change only impacts v99 and tests, not flag protected
PiperOrigin-RevId: 238522262
Change-Id: I1a33470f1c9f8e5e83da44e82bdb2969fa9ed8ea
diff --git a/quic/core/quic_framer.h b/quic/core/quic_framer.h
index f0a90c3..29be82e 100644
--- a/quic/core/quic_framer.h
+++ b/quic/core/quic_framer.h
@@ -572,6 +572,11 @@
should_update_expected_connection_id_length;
}
+ // The connection ID length the framer expects on incoming IETF short headers.
+ uint8_t GetExpectedConnectionIdLength() {
+ return expected_connection_id_length_;
+ }
+
private:
friend class test::QuicFramerPeer;