MINOR: quic: Wrong packet loss detection due to wrong pktns order

During the packet loss detection we must treat the paquet number
in this order Initial -> Handshake -> O1RTT. This was not the case
due to the chosen order to implement the array of packet number space
which was there before the packet loss detection implementation.
This commit is contained in:
Frédéric Lécaille 2021-09-17 17:12:56 +02:00 committed by Amaury Denoyelle
parent 682bb38c34
commit d7d549c9b0

View File

@ -70,8 +70,8 @@ enum quic_tls_enc_level {
/* QUIC packet number spaces */ /* QUIC packet number spaces */
enum quic_tls_pktns { enum quic_tls_pktns {
QUIC_TLS_PKTNS_INITIAL, QUIC_TLS_PKTNS_INITIAL,
QUIC_TLS_PKTNS_01RTT,
QUIC_TLS_PKTNS_HANDSHAKE, QUIC_TLS_PKTNS_HANDSHAKE,
QUIC_TLS_PKTNS_01RTT,
/* Please do not insert any value after this following one */ /* Please do not insert any value after this following one */
QUIC_TLS_PKTNS_MAX, QUIC_TLS_PKTNS_MAX,
}; };