move the PacketHeader struct from logging to qlog package

This commit is contained in:
Marten Seemann 2020-09-09 13:17:59 +07:00
parent bed802aee5
commit 704bd78445
2 changed files with 15 additions and 18 deletions

View file

@ -25,18 +25,3 @@ func PacketTypeFromHeader(hdr *Header) PacketType {
return PacketTypeNotDetermined
}
}
// PacketHeader is a QUIC packet header.
type PacketHeader struct {
PacketType PacketType
PacketNumber PacketNumber
PayloadLength ByteCount
// Size of the QUIC packet (QUIC header + payload).
// See https://github.com/quiclog/internet-drafts/issues/40.
PacketSize ByteCount
Version VersionNumber
SrcConnectionID ConnectionID
DestConnectionID ConnectionID
}