implement receiving of stateless resets

This commit is contained in:
Marten Seemann
2018-11-19 11:26:26 +07:00
parent 54c287c7e6
commit 39e1e9a6f8
3 changed files with 103 additions and 17 deletions

View File

@@ -8,6 +8,9 @@ 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
// NonForwardSecurePacketSizeReduction is the number of bytes a non forward-secure packet has to be smaller than a forward-secure packet
// This makes sure that those packets can always be retransmitted without splitting the contained StreamFrames
const NonForwardSecurePacketSizeReduction = 50