]> git.kaiwu.me - haproxy.git/commit
MINOR: quic: split transport params decoding/check
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 1 Apr 2026 11:20:42 +0000 (13:20 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 2 Apr 2026 12:02:04 +0000 (14:02 +0200)
commit967228c211d6c925cc585284972e0ea649933d72
tree101489ca6c8cec624e82cc7372d94cbf7c2fc2ff
parentb72bfedd683e3858b4edb54d2defe9dbd9be6512
MINOR: quic: split transport params decoding/check

Function quic_transport_params_decode() is used for decoding received
parameters. Prior to this patch, it also contained validity checks on
some of the parameters. Finally, it also tested that mandatory
parameters were indeed found.

This patch separates this two parts. Params validity is now tested in a
new function quic_transport_params_check(), which can be called just
after decode operation.

This patch will be useful for QMux protocol, as this allows to reuse
decode operation without executing checks which are tied to the QUIC
specification, in particular for mandatory parameters.
src/quic_tp.c