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

Unified Diff: net/tools/quic/quic_dispatcher.cc

Issue 2517463002: Move kInvalidPacketNumber to QuicDispatcher: the only place it is used. No behavior change. (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_protocol.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher.cc
diff --git a/net/tools/quic/quic_dispatcher.cc b/net/tools/quic/quic_dispatcher.cc
index 124148c84e1fcbb53bef2d6e296f08915a1c2d56..d8065bb92632870ce782fea4f4b3da2cb9d75dc3 100644
--- a/net/tools/quic/quic_dispatcher.cc
+++ b/net/tools/quic/quic_dispatcher.cc
@@ -429,6 +429,7 @@ QuicDispatcher::QuicPacketFate QuicDispatcher::ValidityChecks(
// Check that the sequence number is within the range that the client is
// expected to send before receiving a response from the server.
+ const int kInvalidPacketNumber = 0;
if (header.packet_number == kInvalidPacketNumber ||
header.packet_number > kMaxReasonableInitialPacketNumber) {
return kFateTimeWait;
« no previous file with comments | « net/quic/core/quic_protocol.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698