]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Add spin bit support
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 7 Mar 2023 10:53:43 +0000 (11:53 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 8 Mar 2023 07:50:54 +0000 (08:50 +0100)
commitece86e64c4fa49292954e070003bd2397587755d
treec91b4d483a719c7618d93a4a0fee1a25ddb34811
parent433af7fad9ec05df01438bf4f9a05464b3b73ef5
MINOR: quic: Add spin bit support

Add QUIC_FL_RX_PACKET_SPIN_BIT new RX packet flag to mark an RX packet as having
the spin bit set. Idem for the connection with QUIC_FL_CONN_SPIN_BIT flag.
Implement qc_handle_spin_bit() to set/unset QUIC_FL_CONN_SPIN_BIT for the connection
as soon as a packet number could be deciphered.
Modify quic_build_packet_short_header() to set the spin bit when building
a short packet header.

Validated by quic-tracker spin bit test.

Must be backported to 2.7.
include/haproxy/quic_conn-t.h
src/quic_conn.c