use the new packet number format

This commit is contained in:
Marten Seemann 2018-11-26 17:31:19 +07:00
parent 52380835b9
commit bfb467e9b8
9 changed files with 113 additions and 296 deletions

View file

@ -178,9 +178,6 @@ func (h *Header) IsVersionNegotiation() bool {
// ParseExtended parses the version dependent part of the header.
// The Reader has to be set such that it points to the first byte of the header.
func (h *Header) ParseExtended(b *bytes.Reader, ver protocol.VersionNumber) (*ExtendedHeader, error) {
if _, err := b.Seek(int64(h.len), io.SeekCurrent); err != nil {
return nil, err
}
return h.toExtendedHeader().parse(b, ver)
}