forked from quic-go/quic-go
increase mininum stateless reset size
This commit is contained in:
@@ -8,9 +8,6 @@ const MaxPacketSizeIPv4 = 1252
|
|||||||
// MaxPacketSizeIPv6 is the maximum packet size that we use for sending IPv6 packets.
|
// MaxPacketSizeIPv6 is the maximum packet size that we use for sending IPv6 packets.
|
||||||
const MaxPacketSizeIPv6 = 1232
|
const MaxPacketSizeIPv6 = 1232
|
||||||
|
|
||||||
// MinStatelessResetSize is the minimum size of a stateless reset packet
|
|
||||||
const MinStatelessResetSize = 1 + 20 + 16
|
|
||||||
|
|
||||||
const defaultMaxCongestionWindowPackets = 1000
|
const defaultMaxCongestionWindowPackets = 1000
|
||||||
|
|
||||||
// DefaultMaxCongestionWindow is the default for the max congestion window
|
// DefaultMaxCongestionWindow is the default for the max congestion window
|
||||||
|
|||||||
@@ -58,5 +58,8 @@ const DefaultTCPMSS ByteCount = 1460
|
|||||||
// MinInitialPacketSize is the minimum size an Initial packet is required to have.
|
// MinInitialPacketSize is the minimum size an Initial packet is required to have.
|
||||||
const MinInitialPacketSize = 1200
|
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.
|
// MinConnectionIDLenInitial is the minimum length of the destination connection ID on an Initial packet.
|
||||||
const MinConnectionIDLenInitial = 8
|
const MinConnectionIDLenInitial = 8
|
||||||
|
|||||||
Reference in New Issue
Block a user