]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: split CID alloc/generation function
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 6 Nov 2025 18:19:26 +0000 (19:19 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 10 Nov 2025 11:10:14 +0000 (12:10 +0100)
commit419e5509d87d9d4f1d75e619bfacf2b4b827b7b2
tree011c7f97123ac2659c161aa0de9b3333f397ab29
parent0ef473ba6b3f5b555aec1b3ef93debb0db3660ac
MINOR: quic: split CID alloc/generation function

Split new_quic_cid() function into multiple ones. This patch should not
introduce any visible change. The objective is to render CID allocation
and generation more modular.

The first advantage of this patch is to bring code simplication. In
particular, conn CID sequence number increment and insertion into
connection tree is simpler than before. Another improvment is also that
errors could now be handled easier at each different steps of the CID
init.

This patch is a prerequisite for the fix on CID collision, thus it must
be backported prior to it to every affected version.
include/haproxy/quic_cid.h
src/quic_cid.c
src/quic_conn.c
src/quic_rx.c