]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
OPTIM: tcpcheck: Reorder tcpchek_connect structure fields to fill holes
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 4 Sep 2025 10:19:46 +0000 (12:19 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 Sep 2025 13:56:42 +0000 (15:56 +0200)
Thanks to this patch, two 4-bytes holes are now filled in the
tcpchek_connect structure.

include/haproxy/tcpcheck-t.h

index c660cd477aa550c8584d3e9b6e78ccd88b9169cf..290a7358464c981bb7d219e181ff8ef1b8ef6c2f 100644 (file)
@@ -128,9 +128,9 @@ struct tcpcheck_connect {
        struct lf_expr *sni_fmt;       /* log-format string used for SNI. if defined, point on the following HTTP host header value */
        char *alpn;                    /* ALPN to use for the SSL connection */
        int alpn_len;                  /* ALPN string length */
-       const struct mux_proto_list *mux_proto; /* the mux to use for all outgoing connections (specified by the "proto" keyword) */
        uint16_t options;              /* options when setting up a new connection */
        uint16_t port;                 /* port to connect to */
+       const struct mux_proto_list *mux_proto; /* the mux to use for all outgoing connections (specified by the "proto" keyword) */
        struct sample_expr *port_expr; /* sample expr to determine the port, may be NULL */
        struct sockaddr_storage addr;  /* the address to the connect */
 };