]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: listener: add a new "options" entry in bind_conf
authorWilly Tarreau <w@1wt.eu>
Fri, 20 May 2022 13:52:31 +0000 (15:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 May 2022 16:39:43 +0000 (18:39 +0200)
There is no way to store useful info there, yet there's about one entry
per boolean. Let's add an "options" attribute which will collect various
options.

In practice, even the BC_O_SSL_* flags and a few info such as strict_sni
could move there.

include/haproxy/listener-t.h

index 3f0ea5833eba2969541563bec86e481e2f58d39e..f22f3b2fcfc315524d0a2e1d710dd49452890f5d 100644 (file)
@@ -176,6 +176,7 @@ struct bind_conf {
        struct proxy *frontend;    /* the frontend all these listeners belong to, or NULL */
        const struct mux_proto_list *mux_proto; /* the mux to use for all incoming connections (specified by the "proto" keyword) */
        struct xprt_ops *xprt;     /* transport-layer operations for all listeners */
+       uint options;              /* set of BC_O_* flags */
        int is_ssl;                /* SSL is required for these listeners */
        int generate_certs;        /* 1 if generate-certificates option is set, else 0 */
        int level;                 /* stats access level (ACCESS_LVL_*) */