diff --git a/internal/protocol/params.go b/internal/protocol/params.go index 1e46772fc..7f4661e81 100644 --- a/internal/protocol/params.go +++ b/internal/protocol/params.go @@ -8,9 +8,6 @@ const MaxPacketSizeIPv4 = 1252 // MaxPacketSizeIPv6 is the maximum packet size that we use for sending IPv6 packets. const MaxPacketSizeIPv6 = 1232 -// MinStatelessResetSize is the minimum size of a stateless reset packet -const MinStatelessResetSize = 1 + 20 + 16 - const defaultMaxCongestionWindowPackets = 1000 // DefaultMaxCongestionWindow is the default for the max congestion window diff --git a/internal/protocol/protocol.go b/internal/protocol/protocol.go index 0353584be..d190287d4 100644 --- a/internal/protocol/protocol.go +++ b/internal/protocol/protocol.go @@ -58,5 +58,8 @@ const DefaultTCPMSS ByteCount = 1460 // MinInitialPacketSize is the minimum size an Initial packet is required to have. const MinInitialPacketSize = 1200 +// MinStatelessResetSize is the minimum size of a stateless reset packet +const MinStatelessResetSize = 1 /* first byte */ + 22 /* random bytes */ + 16 /* token */ + // MinConnectionIDLenInitial is the minimum length of the destination connection ID on an Initial packet. const MinConnectionIDLenInitial = 8