remove the encryption level from the packed packet struct

This was only needed in gQUIC. In IETF QUIC, We can always derive the
encryption level from the header type when needed.
This commit is contained in:
Marten Seemann
2018-12-30 12:36:01 +07:00
parent eaad3b2bdf
commit be4bdbfad9
3 changed files with 38 additions and 30 deletions

View File

@@ -976,7 +976,7 @@ func (s *session) logPacket(packet *packedPacket) {
// We don't need to allocate the slices for calling the format functions
return
}
s.logger.Debugf("-> Sending packet 0x%x (%d bytes) for connection %s, %s", packet.header.PacketNumber, len(packet.raw), s.srcConnID, packet.encryptionLevel)
s.logger.Debugf("-> Sending packet 0x%x (%d bytes) for connection %s, %s", packet.header.PacketNumber, len(packet.raw), s.srcConnID, packet.EncryptionLevel())
packet.header.Log(s.logger)
for _, frame := range packet.frames {
wire.LogFrame(s.logger, frame, true)