implement parsing of ACK_ECN frames

This commit is contained in:
Marten Seemann 2018-07-14 21:34:08 +02:00
parent 6f0a027f0f
commit 3d087d522c
5 changed files with 68 additions and 2 deletions

View file

@ -100,6 +100,11 @@ func parseIETFFrame(r *bytes.Reader, typeByte byte, v protocol.VersionNumber) (F
if err != nil {
err = qerr.Error(qerr.InvalidFrameData, err.Error())
}
case 0x1a:
frame, err = parseAckEcnFrame(r, v)
if err != nil {
err = qerr.Error(qerr.InvalidAckData, err.Error())
}
default:
err = qerr.Error(qerr.InvalidFrameData, fmt.Sprintf("unknown type byte 0x%x", typeByte))
}