mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 04:07:35 +03:00
refactor frame parser to remove version parameter from constructor
This commit is contained in:
parent
582edae63d
commit
ef28f4667f
8 changed files with 76 additions and 77 deletions
|
@ -33,7 +33,7 @@ func Fuzz(data []byte) int {
|
|||
encLevel := toEncLevel(data[0])
|
||||
data = data[PrefixLen:]
|
||||
|
||||
parser := wire.NewFrameParser(true, version)
|
||||
parser := wire.NewFrameParser(true)
|
||||
parser.SetAckDelayExponent(protocol.DefaultAckDelayExponent)
|
||||
|
||||
initialLen := len(data)
|
||||
|
@ -41,7 +41,7 @@ func Fuzz(data []byte) int {
|
|||
var frames []wire.Frame
|
||||
|
||||
for len(data) > 0 {
|
||||
l, f, err := parser.ParseNext(data, encLevel)
|
||||
l, f, err := parser.ParseNext(data, encLevel, version)
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue