MINOR: quic: add config parse source file

Create a new dedicated source file for QUIC related options parsing on
the bind line.
This commit is contained in:
Amaury Denoyelle 2022-01-11 11:54:59 +01:00
parent ce340fe4a7
commit c8b4ce4a47
2 changed files with 10 additions and 1 deletions

View File

@ -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 \ 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/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/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 endif
ifneq ($(USE_LUA),) ifneq ($(USE_LUA),)

9
src/cfgparse-quic.c Normal file
View File

@ -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);