From 738397065cb5cdcd1ad599b1fe201d5fe2c912cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Thu, 18 Mar 2021 15:01:27 +0100 Subject: [PATCH] MINOR: quic: Add a wrapper function to update transport parameters. This function calls quic_mux_transport_params_update() to update the related streams transport parameter of the mux. It is there only so that not to have to include mux_quic.h to update these parameters. --- include/haproxy/xprt_quic.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/haproxy/xprt_quic.h b/include/haproxy/xprt_quic.h index e3bef42b3f..537a517564 100644 --- a/include/haproxy/xprt_quic.h +++ b/include/haproxy/xprt_quic.h @@ -39,6 +39,7 @@ #include #include #include +#include #include #include @@ -47,6 +48,12 @@ extern struct pool_head *pool_head_quic_connection_id; int ssl_quic_initial_ctx(struct bind_conf *bind_conf); +/* Update the mux stream-related transport parameters from connection */ +static inline void quic_transport_params_update(struct quic_conn *qc) +{ + quic_mux_transport_params_update(qc->qcc); +} + /* Returns the required length in bytes to encode QUIC connection ID. */ static inline size_t sizeof_quic_cid(const struct quic_cid *cid) { -- 2.47.3