drop Initial packets that have a too short Destination Connection ID

This commit is contained in:
Marten Seemann
2018-06-16 21:15:46 +07:00
parent a737aca658
commit f7e05c3158
3 changed files with 16 additions and 0 deletions

View File

@@ -151,3 +151,6 @@ const MinPacingDelay time.Duration = 100 * time.Microsecond
// so we need to know this value in advance (or encode it into the connection ID).
// TODO: make this configurable
const ConnectionIDLen = 8
// MinConnectionIDLenInitial is the minimum length of the destination connection ID on an Initial packet.
const MinConnectionIDLenInitial = 8