rename the wire.Header to ExtendedHeader

It's not encrypted yet.
This commit is contained in:
Marten Seemann 2018-11-20 17:11:27 +07:00
parent cef26922b4
commit bf96707f48
17 changed files with 92 additions and 93 deletions

View file

@ -35,7 +35,7 @@ func newPacketUnpacker(aead quicAEAD, version protocol.VersionNumber) unpacker {
}
}
func (u *packetUnpacker) Unpack(headerBinary []byte, hdr *wire.Header, data []byte) (*unpackedPacket, error) {
func (u *packetUnpacker) Unpack(headerBinary []byte, hdr *wire.ExtendedHeader, data []byte) (*unpackedPacket, error) {
buf := *getPacketBuffer()
buf = buf[:0]
defer putPacketBuffer(&buf)