Land Recent QUIC Changes.
Made available server_address to QuicDispatcher::CreateQuicSession from
QuicDispatcher::ProcessPacket.
Merge internal change: 57703936
https://codereview.chromium.org/109803003
No functional change. More QuicSentPacketManager and related QUIC
cleanup.
Merge internal change: 57665121
https://codereview.chromium.org/100893003
Move QUIC kMaxPacketSize from 1472 -> 1452 to reflect IPv6 overhead.
Merge internal change: 57626965
https://codereview.chromium.org/109843002
QUIC refactor to simplify retransmission logic.
Merge internal change: 57617695
https://codereview.chromium.org/100863005
Remove unused SetCongestionWindow methods
Merge internal change: 57601594
https://codereview.chromium.org/109833002
QUIC refactor to move more of the AckFrame handling into
QuicSentPacketManager.
Merge internal change: 57561176
https://codereview.chromium.org/100733003
No new functionality. QUIC Refactor to move the functionality of
OnAbandonFecTimeout() OnRetransmissionTimeout() into the
QuicSentPacketManager.
Merge internal change: 57550388
https://codereview.chromium.org/106973007
[email protected]
Review URL: https://codereview.chromium.org/100863006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239668 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/net/quic/quic_protocol.h b/net/quic/quic_protocol.h
index 76ee5d0a..7f55847 100644
--- a/net/quic/quic_protocol.h
+++ b/net/quic/quic_protocol.h
@@ -49,8 +49,10 @@
// Default and initial maximum size in bytes of a QUIC packet.
const QuicByteCount kDefaultMaxPacketSize = 1200;
// The maximum packet size of any QUIC packet, based on ethernet's max size,
-// minus the IP and UDP headers.
-const QuicByteCount kMaxPacketSize = 1472;
+// minus the IP and UDP headers. IPv6 has a 40 byte header, UPD adds an
+// additional 8 bytes. This is a total overhead of 48 bytes. Ethernet's
+// max packet size is 1500 bytes, 1500 - 48 = 1452.
+const QuicByteCount kMaxPacketSize = 1452;
// Maximum size of the initial congestion window in packets.
const size_t kDefaultInitialWindow = 10;
@@ -121,6 +123,11 @@
RTO_RETRANSMISSION,
};
+enum RetransmissionType {
+ INITIAL_ENCRYPTION_ONLY,
+ ALL_PACKETS
+};
+
enum HasRetransmittableData {
NO_RETRANSMITTABLE_DATA,
HAS_RETRANSMITTABLE_DATA,