]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: define quic_tune
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 30 Jan 2025 16:58:20 +0000 (17:58 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 30 Jan 2025 17:12:40 +0000 (18:12 +0100)
Define a new structure quic_tune. It will be useful to regroup various
configuration settings and tunable related to QUIC, instead of defining
them into the global structure.

include/haproxy/quic_tune-t.h [new file with mode: 0644]
include/haproxy/quic_tune.h [new file with mode: 0644]
src/cfgparse-quic.c

diff --git a/include/haproxy/quic_tune-t.h b/include/haproxy/quic_tune-t.h
new file mode 100644 (file)
index 0000000..37cd741
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef _HAPROXY_QUIC_TUNE_T_H
+#define _HAPROXY_QUIC_TUNE_T_H
+
+#ifdef USE_QUIC
+#ifndef USE_OPENSSL
+#error "Must define USE_OPENSSL"
+#endif
+
+struct quic_tune {
+       uint options;
+};
+
+#endif /* USE_QUIC */
+
+#endif /* _HAPROXY_QUIC_TUNE_T_H */
diff --git a/include/haproxy/quic_tune.h b/include/haproxy/quic_tune.h
new file mode 100644 (file)
index 0000000..7177a9d
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef _HAPROXY_QUIC_TUNE_H
+#define _HAPROXY_QUIC_TUNE_H
+
+#ifdef USE_QUIC
+#ifndef USE_OPENSSL
+#error "Must define USE_OPENSSL"
+#endif
+
+#include <haproxy/quic_tune-t.h>
+
+extern struct quic_tune quic_tune;
+
+#endif /* USE_QUIC */
+
+#endif /* _HAPROXY_QUIC_TUNE_H */
index 81de9559991c413bc62918b5ba842306c8488198..53c385a742021a27e0122cee7aff7cc44925ee89 100644 (file)
@@ -15,6 +15,7 @@
 #include <haproxy/proxy.h>
 #include <haproxy/quic_cc.h>
 #include <haproxy/quic_rules.h>
+#include <haproxy/quic_tune.h>
 #include <haproxy/tools.h>
 
 #define QUIC_CC_NEWRENO_STR "newreno"
@@ -22,6 +23,8 @@
 #define QUIC_CC_BBR_STR     "bbr"
 #define QUIC_CC_NO_CC_STR   "nocc"
 
+struct quic_tune quic_tune;
+
 static int bind_parse_quic_force_retry(char **args, int cur_arg, struct proxy *px, struct bind_conf *conf, char **err)
 {
        conf->options |= BC_O_QUIC_FORCE_RETRY;