]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: add config parse source file
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 11 Jan 2022 10:54:59 +0000 (11:54 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 12 Jan 2022 10:08:48 +0000 (11:08 +0100)
Create a new dedicated source file for QUIC related options parsing on
the bind line.

Makefile
src/cfgparse-quic.c [new file with mode: 0644]

index 58c740a42a3b607da55007201926464d797e3ba2..0bf04f4ecadfdf481f98f95c0e904224f492ae61 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -596,7 +596,7 @@ ifneq ($(USE_QUIC),)
 OPTIONS_OBJS += src/quic_sock.o src/proto_quic.o src/xprt_quic.o src/quic_tls.o \
                 src/quic_frame.o src/quic_cc.o src/quic_cc_newreno.o src/mux_quic.o \
                 src/cbuf.o src/qpack-dec.o src/qpack-tbl.o src/h3.o src/qpack-enc.o \
-                src/hq_interop.o
+                src/hq_interop.o src/cfgparse-quic.o
 endif
 
 ifneq ($(USE_LUA),)
diff --git a/src/cfgparse-quic.c b/src/cfgparse-quic.c
new file mode 100644 (file)
index 0000000..34ec729
--- /dev/null
@@ -0,0 +1,9 @@
+#include <haproxy/api.h>
+#include <haproxy/listener.h>
+#include <haproxy/proxy-t.h>
+
+static struct bind_kw_list bind_kws = { "QUIC", { }, {
+       { NULL, NULL, 0 },
+}};
+
+INITCALL1(STG_REGISTER, bind_register_keywords, &bind_kws);