]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Drop packet with type for discarded packet number space.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 29 Jun 2023 14:07:17 +0000 (16:07 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 30 Jun 2023 14:20:55 +0000 (16:20 +0200)
commit7f3c1bef37b7c74fe786095c116adf697c0f18cf
treea2f4b448f0ed0821978fc8211bb751f5e5e1c4fc
parentb97de9dc21fea3595680cfc81b7513115331a049
MINOR: quic: Drop packet with type for discarded packet number space.

This patch allows the low level packet parser to drop packets with type for discarded
packet number spaces. Furthermore, this prevents it from reallocating new encryption
levels and packet number spaces already released/discarded. When a packet number space
is discarded, it MUST NOT be reallocated.

As the packet number space discarding is done asap the type of packet received is
known, some packet number space discarding check may be safely removed from qc_try_rm_hp()
and qc_qel_may_rm_hp() which are called after having parse the packet header, and
is type.
include/haproxy/quic_tls.h
src/quic_conn.c