]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Add a wrapper function to update transport parameters.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 18 Mar 2021 14:01:27 +0000 (15:01 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
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

index e3bef42b3fb986382e830a79d775ed1a806dc79c..537a5175644829094f456a4d18a636009673afbd 100644 (file)
@@ -39,6 +39,7 @@
 #include <haproxy/quic_cc.h>
 #include <haproxy/quic_frame.h>
 #include <haproxy/quic_loss.h>
+#include <haproxy/mux_quic.h>
 #include <haproxy/xprt_quic-t.h>
 
 #include <openssl/rand.h>
@@ -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 <qc> 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 <cid> QUIC connection ID. */
 static inline size_t sizeof_quic_cid(const struct quic_cid *cid)
 {