]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: move connection.h to haproxy/connection{,-t}.h
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jun 2020 16:02:10 +0000 (18:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:58 +0000 (10:18 +0200)
The type file is becoming a mess, half of it is for the proxy protocol,
another good part describes conn_streams and mux ops, it would deserve
being split again. At least it was reordered so that elements are easier
to find, with the PP-stuff left at the end. The MAX_SEND_FD macro was moved
to compat.h as it's said to be the value for Linux.

37 files changed:
contrib/debug/flags.c
include/haproxy/compat.h
include/haproxy/connection-t.h [moved from include/types/connection.h with 98% similarity]
include/haproxy/connection.h [moved from include/proto/connection.h with 99% similarity]
include/haproxy/dns-t.h
include/haproxy/obj_type.h
include/haproxy/proto_tcp.h
include/proto/peers.h
include/proto/ssl_sock.h
include/proto/stream_interface.h
include/types/checks.h
include/types/server.h
include/types/ssl_sock.h
src/cfgparse-listen.c
src/cfgparse.c
src/connection.c
src/haproxy.c
src/hlua.c
src/http_ana.c
src/http_fetch.c
src/listener.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/payload.c
src/proto_sockpair.c
src/proto_tcp.c
src/proto_uxst.c
src/raw_sock.c
src/server.c
src/session.c
src/ssl_sock.c
src/stream.c
src/stream_interface.c
src/tcp_rules.c
src/xprt_handshake.c

index 2287ee363877d7dd3ba3cf97f5d432092c13576c..485fc0e6ceddf920e3732e28b542aeee21b7834f 100644 (file)
@@ -2,7 +2,7 @@
 #include <stdlib.h>
 
 #include <types/channel.h>
-#include <types/connection.h>
+#include <haproxy/connection-t.h>
 #include <types/http_ana.h>
 #include <types/stream.h>
 #include <types/stream_interface.h>
index fdd6fa4cd4e78c19464c81fadd384059e62324be..97cde46c3e36811fe580bd4a6fe0dc21dc753cea 100644 (file)
@@ -240,6 +240,11 @@ typedef struct { } empty_t;
 #endif
 #endif
 
+/* Max number of file descriptors we send in one sendmsg(). Linux seems to be
+ * able to send 253 fds per sendmsg(), not sure about the other OSes.
+ */
+#define MAX_SEND_FD 253
+
 #endif /* _HAPROXY_COMPAT_H */
 
 /*
similarity index 98%
rename from include/types/connection.h
rename to include/haproxy/connection-t.h
index dfc86945e5654c8397c70cefe71eb63b079126a8..b7b97a5fe958214eaaa74c0e182b542c858ef65b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/types/connection.h
+ * include/haproxy/connection-t.h
  * This file describes the connection struct and associated constants.
  *
  * Copyright (C) 2000-2014 Willy Tarreau - w@1wt.eu
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _TYPES_CONNECTION_H
-#define _TYPES_CONNECTION_H
+#ifndef _HAPROXY_CONNECTION_T_H
+#define _HAPROXY_CONNECTION_T_H
 
 #include <stdlib.h>
 #include <sys/socket.h>
+#include <netinet/in_systm.h>
+#include <netinet/ip.h>
+#include <netinet/ip6.h>
 
-#include <haproxy/api-t.h>
 #include <import/ist.h>
 
-#include <haproxy/obj_type-t.h>
+#include <haproxy/list-t.h>
 #include <haproxy/listener-t.h>
+#include <haproxy/obj_type-t.h>
 #include <haproxy/port_range-t.h>
 #include <haproxy/protocol-t.h>
-
-#include <netinet/in_systm.h>
-#include <netinet/ip.h>
-#include <netinet/ip6.h>
+#include <haproxy/api-t.h>
 
 /* referenced below */
 struct connection;
@@ -47,15 +47,6 @@ struct server;
 struct session;
 struct pipe;
 
-/* socks4 upstream proxy definitions */
-struct socks4_request {
-       uint8_t version;        /* SOCKS version number, 1 byte, must be 0x04 for this version */
-       uint8_t command;        /* 0x01 = establish a TCP/IP stream connection */
-       uint16_t port;          /* port number, 2 bytes (in network byte order) */
-       uint32_t ip;            /* IP address, 4 bytes (in network byte order) */
-       char user_id[8];        /* the user ID string, variable length, terminated with a null (0x00); Using "HAProxy\0" */
-};
-
 /* Note: subscribing to these events is only valid after the caller has really
  * attempted to perform the operation, and failed to proceed or complete.
  */
@@ -64,23 +55,6 @@ enum sub_event_type {
        SUB_RETRY_SEND       = 0x00000002,  /* Schedule the tasklet when we can attempt to send again */
 };
 
-/* Describes a set of subscriptions. Multiple events may be registered at the
- * same time. The callee should assume everything not pending for completion is
- * implicitly possible. It's illegal to change the tasklet if events are still
- * registered.
- */
-struct wait_event {
-       struct tasklet *tasklet;
-       int events;             /* set of enum sub_event_type above */
-};
-
-/* A connection handle is how we differentiate two connections on the lower
- * layers. It usually is a file descriptor but can be a connection id.
- */
-union conn_handle {
-       int fd;                 /* file descriptor, for regular sockets */
-};
-
 /* conn_stream flags */
 enum {
        CS_FL_NONE          = 0x00000000,  /* Just for initialization purposes */
@@ -310,6 +284,58 @@ enum {
        MX_FL_HTX         = 0x00000002, /* set if it is an HTX multiplexer */
 };
 
+/* PROTO token registration */
+enum proto_proxy_mode {
+       PROTO_MODE_NONE = 0,
+       PROTO_MODE_TCP  = 1 << 0, // must not be changed!
+       PROTO_MODE_HTTP = 1 << 1, // must not be changed!
+       PROTO_MODE_ANY  = PROTO_MODE_TCP | PROTO_MODE_HTTP,
+};
+
+enum proto_proxy_side {
+       PROTO_SIDE_NONE = 0,
+       PROTO_SIDE_FE   = 1, // same as PR_CAP_FE
+       PROTO_SIDE_BE   = 2, // same as PR_CAP_BE
+       PROTO_SIDE_BOTH = PROTO_SIDE_FE | PROTO_SIDE_BE,
+};
+
+/* ctl command used by mux->ctl() */
+enum mux_ctl_type {
+       MUX_STATUS, /* Expects an int as output, sets it to a combinaison of MUX_STATUS flags */
+};
+
+/* response for ctl MUX_STATUS */
+#define MUX_STATUS_READY (1 << 0)
+
+/* socks4 response length */
+#define SOCKS4_HS_RSP_LEN 8
+
+/* socks4 upstream proxy definitions */
+struct socks4_request {
+       uint8_t version;        /* SOCKS version number, 1 byte, must be 0x04 for this version */
+       uint8_t command;        /* 0x01 = establish a TCP/IP stream connection */
+       uint16_t port;          /* port number, 2 bytes (in network byte order) */
+       uint32_t ip;            /* IP address, 4 bytes (in network byte order) */
+       char user_id[8];        /* the user ID string, variable length, terminated with a null (0x00); Using "HAProxy\0" */
+};
+
+/* Describes a set of subscriptions. Multiple events may be registered at the
+ * same time. The callee should assume everything not pending for completion is
+ * implicitly possible. It's illegal to change the tasklet if events are still
+ * registered.
+ */
+struct wait_event {
+       struct tasklet *tasklet;
+       int events;             /* set of enum sub_event_type above */
+};
+
+/* A connection handle is how we differentiate two connections on the lower
+ * layers. It usually is a file descriptor but can be a connection id.
+ */
+union conn_handle {
+       int fd;                 /* file descriptor, for regular sockets */
+};
+
 /* xprt_ops describes transport-layer operations for a connection. They
  * generally run over a socket-based control layer, but not always. Some
  * of them are used for data transfer with the upper layer (rcv_*, snd_*)
@@ -336,12 +362,6 @@ struct xprt_ops {
        int (*add_xprt)(struct connection *conn, void *xprt_ctx, void *toadd_ctx, const struct xprt_ops *toadd_ops, void **oldxprt_ctx, const struct xprt_ops **oldxprt_ops); /* Add a new XPRT as the new xprt, and return the old one */
 };
 
-enum mux_ctl_type {
-       MUX_STATUS, /* Expects an int as output, sets it to a combinaison of MUX_STATUS flags */
-};
-
-#define MUX_STATUS_READY (1 << 0)
-
 /* mux_ops describes the mux operations, which are to be performed at the
  * connection level after data are exchanged with the transport layer in order
  * to propagate them to streams. The <init> function will automatically be
@@ -396,7 +416,6 @@ struct my_tcphdr {
 /* a connection source profile defines all the parameters needed to properly
  * bind an outgoing connection for a server or proxy.
  */
-
 struct conn_src {
        unsigned int opts;                   /* CO_SRC_* */
        int iface_len;                       /* bind interface name length */
@@ -475,21 +494,6 @@ struct connection {
        struct ist proxy_unique_id;  /* Value of the unique ID TLV received via PROXYv2 */
 };
 
-/* PROTO token registration */
-enum proto_proxy_mode {
-       PROTO_MODE_NONE = 0,
-       PROTO_MODE_TCP  = 1 << 0, // must not be changed!
-       PROTO_MODE_HTTP = 1 << 1, // must not be changed!
-       PROTO_MODE_ANY  = PROTO_MODE_TCP | PROTO_MODE_HTTP,
-};
-
-enum proto_proxy_side {
-       PROTO_SIDE_NONE = 0,
-       PROTO_SIDE_FE   = 1, // same as PR_CAP_FE
-       PROTO_SIDE_BE   = 2, // same as PR_CAP_BE
-       PROTO_SIDE_BOTH = PROTO_SIDE_FE | PROTO_SIDE_BE,
-};
-
 struct mux_proto_list {
        const struct ist token;    /* token name and length. Empty is catch-all */
        enum proto_proxy_mode mode;
@@ -498,6 +502,8 @@ struct mux_proto_list {
        struct list list;
 };
 
+/* proxy protocol stuff below */
+
 /* proxy protocol v2 definitions */
 #define PP2_SIGNATURE        "\x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A"
 #define PP2_SIGNATURE_LEN    12
@@ -533,6 +539,28 @@ struct mux_proto_list {
 #define PP2_HDR_LEN_INET6    (PP2_HEADER_LEN + PP2_ADDR_LEN_INET6)
 #define PP2_HDR_LEN_UNIX     (PP2_HEADER_LEN + PP2_ADDR_LEN_UNIX)
 
+#define PP2_TYPE_ALPN           0x01
+#define PP2_TYPE_AUTHORITY      0x02
+#define PP2_TYPE_CRC32C         0x03
+#define PP2_TYPE_NOOP           0x04
+#define PP2_TYPE_UNIQUE_ID      0x05
+#define PP2_TYPE_SSL            0x20
+#define PP2_SUBTYPE_SSL_VERSION 0x21
+#define PP2_SUBTYPE_SSL_CN      0x22
+#define PP2_SUBTYPE_SSL_CIPHER  0x23
+#define PP2_SUBTYPE_SSL_SIG_ALG 0x24
+#define PP2_SUBTYPE_SSL_KEY_ALG 0x25
+#define PP2_TYPE_NETNS          0x30
+
+#define PP2_CLIENT_SSL           0x01
+#define PP2_CLIENT_CERT_CONN     0x02
+#define PP2_CLIENT_CERT_SESS     0x04
+
+/* Max length of the authority TLV */
+#define PP2_AUTHORITY_MAX 255
+
+#define TLV_HEADER_SIZE      3
+
 struct proxy_hdr_v2 {
        uint8_t sig[12];   /* hex 0D 0A 0D 0A 00 0D 0A 51 55 49 54 0A */
        uint8_t ver_cmd;   /* protocol version and command */
@@ -558,20 +586,6 @@ struct proxy_hdr_v2 {
        } addr;
 };
 
-#define PP2_TYPE_ALPN           0x01
-#define PP2_TYPE_AUTHORITY      0x02
-#define PP2_TYPE_CRC32C         0x03
-#define PP2_TYPE_NOOP           0x04
-#define PP2_TYPE_UNIQUE_ID      0x05
-#define PP2_TYPE_SSL            0x20
-#define PP2_SUBTYPE_SSL_VERSION 0x21
-#define PP2_SUBTYPE_SSL_CN      0x22
-#define PP2_SUBTYPE_SSL_CIPHER  0x23
-#define PP2_SUBTYPE_SSL_SIG_ALG 0x24
-#define PP2_SUBTYPE_SSL_KEY_ALG 0x25
-#define PP2_TYPE_NETNS          0x30
-
-#define TLV_HEADER_SIZE      3
 struct tlv {
        uint8_t type;
        uint8_t length_hi;
@@ -586,23 +600,8 @@ struct tlv_ssl {
        uint8_t sub_tlv[0];
 }__attribute__((packed));
 
-#define PP2_CLIENT_SSL           0x01
-#define PP2_CLIENT_CERT_CONN     0x02
-#define PP2_CLIENT_CERT_SESS     0x04
-
-/* Max length of the authority TLV */
-#define PP2_AUTHORITY_MAX 255
-
-/*
- * Linux seems to be able to send 253 fds per sendmsg(), not sure
- * about the other OSes.
- */
-/* Max number of file descriptors we send in one sendmsg() */
-#define MAX_SEND_FD 253
-
-#define SOCKS4_HS_RSP_LEN 8
 
-#endif /* _TYPES_CONNECTION_H */
+#endif /* _HAPROXY_CONNECTION_T_H */
 
 /*
  * Local variables:
similarity index 99%
rename from include/proto/connection.h
rename to include/haproxy/connection.h
index baa801f9cd6079034ad2fa6c7bb6c29a162e4f0c..d90724f1456a5d505b1ac11b9da9bd0ed4c25562 100644 (file)
@@ -1,8 +1,8 @@
 /*
- * include/proto/connection.h
+ * include/haproxy/connection.h
  * This file contains connection function prototypes
  *
- * Copyright (C) 2000-2012 Willy Tarreau - w@1wt.eu
+ * Copyright (C) 2000-2002 Willy Tarreau - w@1wt.eu
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _PROTO_CONNECTION_H
-#define _PROTO_CONNECTION_H
+#ifndef _HAPROXY_CONNECTION_H
+#define _HAPROXY_CONNECTION_H
 
 #include <import/ist.h>
+
 #include <haproxy/api.h>
+#include <haproxy/connection-t.h>
+#include <haproxy/fd.h>
 #include <haproxy/listener-t.h>
 #include <haproxy/obj_type.h>
 #include <haproxy/pool.h>
-#include <types/connection.h>
-#include <haproxy/fd.h>
+#include <haproxy/task-t.h>
+
 #include <proto/session.h>
-#include <haproxy/task.h>
 
 extern struct pool_head *pool_head_connection;
 extern struct pool_head *pool_head_connstream;
@@ -1084,7 +1086,7 @@ static inline int conn_upgrade_mux_fe(struct connection *conn, void *ctx, struct
        return 0;
 }
 
-#endif /* _PROTO_CONNECTION_H */
+#endif /* _HAPROXY_CONNECTION_H */
 
 /*
  * Local variables:
index 832016b0ba4ed35da52a669d9f50c9f3dc3cce73..e75edc5f2d049575f63096d28ae102950e16dace 100644 (file)
 
 #include <import/eb32tree.h>
 
+#include <haproxy/connection-t.h>
 #include <haproxy/obj_type-t.h>
 #include <haproxy/list-t.h>
 #include <haproxy/thread.h>
 
-#include <types/connection.h>
 #include <haproxy/proto_udp-t.h>
 #include <haproxy/task-t.h>
 
index ad4950232cee4d1742262d76fd7e10b12ec14f46..56597056eddfb49b2910ded167374428620d5976 100644 (file)
 #define _HAPROXY_OBJ_TYPE_H
 
 #include <haproxy/api.h>
+#include <haproxy/connection-t.h>
 #include <haproxy/listener-t.h>
 #include <haproxy/obj_type-t.h>
 #include <haproxy/pool.h>
 #include <types/applet.h>
-#include <types/connection.h>
 #include <types/proxy.h>
 #include <types/server.h>
 #include <types/stream.h>
index 426fa2e7959af332a1f795c50bc90a86a2313ce8..c9ce231016d8ae508a82829e69cb01189c0c5b81 100644 (file)
@@ -24,9 +24,9 @@
 
 #include <haproxy/arg-t.h>
 #include <haproxy/api.h>
+#include <haproxy/connection-t.h>
 #include <haproxy/listener-t.h>
 #include <haproxy/sample-t.h>
-#include <types/connection.h>
 
 int tcp_bind_socket(int fd, int flags, struct sockaddr_storage *local, struct sockaddr_storage *remote);
 int tcp_pause_listener(struct listener *l);
index 40a9b7e2b00c715e179b462b33115fb04adb834a..93bb3224c1a798b7249ee82b00b6b28840a869bb 100644 (file)
@@ -23,9 +23,9 @@
 #define _PROTO_PEERS_H
 
 #include <haproxy/api.h>
+#include <haproxy/connection.h>
 #include <haproxy/ticks.h>
 #include <haproxy/time.h>
-#include <proto/connection.h>
 #include <types/stream.h>
 #include <types/peers.h>
 
index e29c1e7ad8485f59f5faa81cb636a65d7dce7c7f..e22d9a3b6d5a9ac1a9082c23c5adbbf5830d430d 100644 (file)
 #define _PROTO_SSL_SOCK_H
 #ifdef USE_OPENSSL
 
+#include <haproxy/connection.h>
 #include <haproxy/openssl-compat.h>
 
-#include <types/connection.h>
 #include <types/proxy.h>
 #include <types/ssl_sock.h>
 #include <types/stream_interface.h>
 
-#include <proto/connection.h>
 
 extern int sslconns;
 extern int totalsslconns;
index 98ccb2833d76bfc4b5e0fee543a53ab8da888ab6..e381d846e539b2a8ba4d19e4c2c4fbac00085997 100644 (file)
 #include <stdlib.h>
 
 #include <haproxy/api.h>
+#include <haproxy/connection.h>
 #include <types/stream.h>
 #include <types/stream_interface.h>
 #include <proto/applet.h>
 #include <proto/channel.h>
-#include <proto/connection.h>
 
 
 extern struct si_ops si_embedded_ops;
index c7f08b27666d595f63d2e9010c3d6388e1b96271..9d05ffc8e97486c5a3a5446cf3bc8bf7212f539f 100644 (file)
 #include <import/ebpttree.h>
 
 #include <import/ist.h>
+#include <haproxy/connection-t.h>
 #include <haproxy/list-t.h>
 #include <haproxy/obj_type-t.h>
 #include <haproxy/regex-t.h>
 #include <haproxy/buf-t.h>
 
-#include <types/connection.h>
 #include <haproxy/sample-t.h>
 #include <types/session.h>
 #include <haproxy/task-t.h>
index a2f1fe368bd06f051187474843aaa61dd16c0836..38326b0a15a86af11c36a3fc8f58e4b4ba007f17 100644 (file)
@@ -36,7 +36,7 @@
 
 #include <import/eb32tree.h>
 
-#include <types/connection.h>
+#include <haproxy/connection-t.h>
 #include <haproxy/freq_ctr-t.h>
 #include <types/queue.h>
 #include <types/ssl_sock.h>
index f7366d3d4d0855483325928cf537b4d0809c5bb1..d2851c668e779fb88040768226e227ca00cca61d 100644 (file)
@@ -27,7 +27,7 @@
 #include <import/ebmbtree.h>
 #include <import/eb64tree.h>
 
-#include <types/connection.h> /* struct wait_event */
+#include <haproxy/connection-t.h> /* struct wait_event */
 
 #include <haproxy/buf-t.h>
 #include <haproxy/thread.h>
index 0e255af568fd4f9ae5d9154f60f450401918e18f..205fbef2dfb2262bad16435d4f64c85cca9d94d3 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <haproxy/capture-t.h>
 #include <haproxy/compression-t.h>
+#include <haproxy/connection.h>
 #include <haproxy/http_htx.h>
 #include <haproxy/http_rules.h>
 #include <haproxy/listener.h>
@@ -24,7 +25,6 @@
 
 #include <proto/acl.h>
 #include <proto/checks.h>
-#include <proto/connection.h>
 #include <haproxy/protocol.h>
 #include <proto/proxy.h>
 #include <proto/server.h>
index 970b60f11226ee15cc5537a875eb45546c263cc1..c5b3944ba504fd3e32555c705d2f2ef123da3551 100644 (file)
@@ -39,6 +39,7 @@
 #include <haproxy/capture.h>
 #include <common/cfgparse.h>
 #include <haproxy/chunk.h>
+#include <haproxy/connection.h>
 #include <haproxy/dns.h>
 #include <haproxy/errors.h>
 #include <haproxy/frontend.h>
@@ -81,7 +82,6 @@
 #include <proto/stream.h>
 #include <proto/stick_table.h>
 #include <haproxy/tcp_rules.h>
-#include <proto/connection.h>
 
 
 /* Used to chain configuration sections definitions. This list
index 133a6d65e52c3ce822872cc3e4af7e38efa0b20c..a777b9fa127f27c495e75e6f6122e753d210a210 100644 (file)
 
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
+#include <haproxy/connection.h>
 #include <haproxy/frontend.h>
 #include <haproxy/namespace.h>
 #include <haproxy/hash.h>
 #include <haproxy/net_helper.h>
 
-#include <proto/connection.h>
 #include <haproxy/fd.h>
 #include <haproxy/proto_tcp.h>
 #include <proto/stream_interface.h>
index 92fdd4226666e029119518addf07cf313361fd86..9b0d767de1e235b6e5cc67319534828e43b63882 100644 (file)
@@ -85,6 +85,7 @@
 #include <haproxy/base64.h>
 #include <common/cfgparse.h>
 #include <haproxy/chunk.h>
+#include <haproxy/connection.h>
 #include <haproxy/dns.h>
 #include <haproxy/dynbuf.h>
 #include <haproxy/errors.h>
 #include <proto/backend.h>
 #include <proto/channel.h>
 #include <proto/cli.h>
-#include <proto/connection.h>
 #include <haproxy/fd.h>
 #include <proto/filters.h>
 #include <proto/log.h>
index adb53163242befa15b05f245c50b00a1451147c9..0b75bf723f00288b1d9dedb0c5dbd7af2a15d600 100644 (file)
@@ -25,6 +25,7 @@
 #include <import/ebpttree.h>
 
 #include <common/cfgparse.h>
+#include <haproxy/connection.h>
 #include <haproxy/http_htx.h>
 #include <haproxy/thread.h>
 #include <haproxy/regex.h>
@@ -51,7 +52,6 @@
 #include <proto/applet.h>
 #include <proto/channel.h>
 #include <proto/cli.h>
-#include <proto/connection.h>
 #include <proto/stats.h>
 #include <proto/http_fetch.h>
 #include <proto/queue.h>
index f7e59321f6bcfb9ff510a944c6eb78f8006d40ef..546e1395732793c3899832a1a498252d3a4b52b1 100644 (file)
@@ -13,6 +13,7 @@
 #include <haproxy/action-t.h>
 #include <haproxy/api.h>
 #include <haproxy/base64.h>
+#include <haproxy/connection.h>
 #include <haproxy/http.h>
 #include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
@@ -26,7 +27,6 @@
 #include <proto/acl.h>
 #include <proto/channel.h>
 #include <proto/checks.h>
-#include <proto/connection.h>
 #include <proto/filters.h>
 #include <proto/log.h>
 #include <proto/http_ana.h>
index 6f367fed77d0d5643c2e33ac9446ce6001c5e081..67dd9894906e7823d5c5df6d4107840d314a4b18 100644 (file)
@@ -20,6 +20,7 @@
 #include <haproxy/api.h>
 #include <haproxy/base64.h>
 #include <haproxy/chunk.h>
+#include <haproxy/connection.h>
 #include <haproxy/global.h>
 #include <haproxy/h1.h>
 #include <haproxy/h1_htx.h>
@@ -34,7 +35,6 @@
 
 #include <haproxy/arg.h>
 #include <proto/channel.h>
-#include <proto/connection.h>
 #include <proto/http_fetch.h>
 #include <proto/log.h>
 #include <proto/http_ana.h>
index 4d1d2de1102d9a4392ae453c0c29d8849c175a8f..6a13b1c5b062cb841134234f99245ccbb053f472 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
+#include <haproxy/connection.h>
 #include <haproxy/errors.h>
 #include <haproxy/global.h>
 #include <haproxy/list.h>
@@ -31,7 +32,6 @@
 #include <haproxy/protocol-t.h>
 
 #include <proto/acl.h>
-#include <proto/connection.h>
 #include <haproxy/fd.h>
 #include <haproxy/freq_ctr.h>
 #include <proto/log.h>
index 3c95b6475358b78b419fd94ddc7f4071db993a3f..05e67a67b4048d0633407e1f02260fe62c67fb50 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
+#include <haproxy/connection.h>
 #include <haproxy/fcgi.h>
 #include <haproxy/h1.h>
 #include <haproxy/h1_htx.h>
@@ -25,7 +26,6 @@
 #include <types/proxy.h>
 #include <types/session.h>
 
-#include <proto/connection.h>
 #include <proto/fcgi-app.h>
 #include <proto/log.h>
 #include <proto/session.h>
index 107794c3d9eff1f98d7c7dda886f4a49a986896f..36478c3f1ad31d0edd9f53c2f329e611aec1f623 100644 (file)
@@ -12,6 +12,7 @@
 #include <haproxy/api.h>
 #include <haproxy/istbuf.h>
 #include <common/cfgparse.h>
+#include <haproxy/connection.h>
 #include <haproxy/h1.h>
 #include <haproxy/h1_htx.h>
 #include <haproxy/h2.h>
@@ -23,7 +24,6 @@
 #include <types/proxy.h>
 #include <types/session.h>
 
-#include <proto/connection.h>
 #include <haproxy/http_htx.h>
 #include <proto/log.h>
 #include <proto/session.h>
index 02f6a5f9649c463b07a59f2df7668c6deec0c2f8..b8c4741a8fdcf5031e9bc54130d42bfaf6f61edf 100644 (file)
@@ -13,6 +13,7 @@
 #include <haproxy/api.h>
 #include <haproxy/istbuf.h>
 #include <common/cfgparse.h>
+#include <haproxy/connection.h>
 #include <haproxy/h1.h>
 #include <haproxy/h2.h>
 #include <haproxy/hpack-dec.h>
@@ -21,7 +22,6 @@
 #include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
 #include <haproxy/net_helper.h>
-#include <proto/connection.h>
 #include <proto/trace.h>
 #include <proto/session.h>
 #include <proto/stream.h>
index d405e95506b2559772387e43e1f6686383a07536..08d6cea30956c630e1f1354df28602819b1046d0 100644 (file)
@@ -12,8 +12,8 @@
 
 #include <haproxy/api.h>
 #include <haproxy/buf.h>
+#include <haproxy/connection.h>
 #include <haproxy/task.h>
-#include <proto/connection.h>
 #include <proto/stream.h>
 
 struct mux_pt_ctx {
index af4ae1caba139d3e64ad58ee7bab9ceb229281c7..5664ec7dd537f073260f4509f3292696fa5648e0 100644 (file)
@@ -14,6 +14,7 @@
 #include <string.h>
 
 #include <haproxy/api.h>
+#include <haproxy/connection.h>
 #include <haproxy/net_helper.h>
 #include <haproxy/payload.h>
 #include <haproxy/pattern.h>
@@ -21,7 +22,6 @@
 #include <proto/acl.h>
 #include <haproxy/arg.h>
 #include <proto/channel.h>
-#include <proto/connection.h>
 #include <haproxy/sample.h>
 #include <proto/http_ana.h>
 
index cca9d72ecb5f688d3208d03a9eeca31a88fe301a..cb1853681b7badb31054c7efc0c448d9a09619fe 100644 (file)
@@ -27,6 +27,7 @@
 #include <sys/un.h>
 
 #include <haproxy/api.h>
+#include <haproxy/connection.h>
 #include <haproxy/errors.h>
 #include <haproxy/global.h>
 #include <haproxy/list.h>
@@ -35,7 +36,6 @@
 #include <haproxy/time.h>
 #include <haproxy/version.h>
 
-#include <proto/connection.h>
 #include <haproxy/fd.h>
 #include <haproxy/freq_ctr.h>
 #include <proto/log.h>
index e43eaf763051efdb798ca056c13f49485b058cc6..43a0029e1d96ada2951715761e388844f69f1147 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <haproxy/action-t.h>
 #include <haproxy/api.h>
+#include <haproxy/connection.h>
 #include <haproxy/errors.h>
 #include <haproxy/global.h>
 #include <haproxy/http_rules.h>
 #include <haproxy/tools.h>
 #include <haproxy/namespace.h>
 
-#include <types/connection.h>
 #include <types/stream.h>
 
 #include <haproxy/arg.h>
 #include <proto/channel.h>
-#include <proto/connection.h>
 #include <haproxy/fd.h>
 #include <proto/log.h>
 #include <haproxy/port_range.h>
index c826546d67e63b9dd5fdb6bb8eae2f6e688ba4de..33c79e9a7a88c8f24bb21123e3f9cd786f2e7ea9 100644 (file)
@@ -27,6 +27,7 @@
 #include <sys/un.h>
 
 #include <haproxy/api.h>
+#include <haproxy/connection.h>
 #include <haproxy/errors.h>
 #include <haproxy/global.h>
 #include <haproxy/list.h>
@@ -35,7 +36,6 @@
 #include <haproxy/time.h>
 #include <haproxy/version.h>
 
-#include <proto/connection.h>
 #include <haproxy/fd.h>
 #include <proto/log.h>
 #include <haproxy/protocol.h>
index 396a07cc02b1511748c88b0269d19c3e9a718299..2f5b98d986efa648fc61a881a82be625e4979136 100644 (file)
 
 #include <haproxy/api.h>
 #include <haproxy/buf.h>
+#include <haproxy/connection.h>
 #include <haproxy/global.h>
 #include <haproxy/tools.h>
 #include <haproxy/ticks.h>
 #include <haproxy/time.h>
 
-#include <proto/connection.h>
 #include <haproxy/fd.h>
 #include <haproxy/freq_ctr.h>
 #include <proto/log.h>
index 694d5ae914651913b90f395cde7548b3aa088586..243dcafd3b7d26d152b3096eb4ef81f298b1fe4f 100644 (file)
@@ -18,6 +18,7 @@
 #include <import/xxhash.h>
 
 #include <common/cfgparse.h>
+#include <haproxy/connection.h>
 #include <haproxy/dict-t.h>
 #include <haproxy/dns.h>
 #include <haproxy/errors.h>
@@ -35,7 +36,6 @@
 #include <proto/applet.h>
 #include <proto/cli.h>
 #include <proto/checks.h>
-#include <proto/connection.h>
 #include <haproxy/port_range.h>
 #include <haproxy/protocol.h>
 #include <proto/queue.h>
index efc1335702e8ca961a448842b92ce45580841515..2b52ec87c883cebc34f67de09f5ccf9c4d817ce9 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <haproxy/api.h>
+#include <haproxy/connection.h>
 #include <haproxy/global.h>
 #include <haproxy/http.h>
 #include <haproxy/listener.h>
@@ -20,7 +21,6 @@
 
 #include <types/session.h>
 
-#include <proto/connection.h>
 #include <proto/log.h>
 #include <proto/proxy.h>
 #include <proto/session.h>
index b83ef5c6113a42a64962e6b4ede9b711cc049329..12e95758dd4a4979cc5db043dcfca2d5b6ab4d7c 100644 (file)
@@ -46,6 +46,7 @@
 
 #include <haproxy/dynbuf.h>
 #include <haproxy/chunk.h>
+#include <haproxy/connection.h>
 #include <haproxy/errors.h>
 #include <haproxy/frontend.h>
 #include <haproxy/global.h>
@@ -74,7 +75,6 @@
 #include <proto/acl.h>
 #include <haproxy/arg.h>
 #include <proto/channel.h>
-#include <proto/connection.h>
 #include <proto/cli.h>
 #include <haproxy/fd.h>
 #include <haproxy/freq_ctr.h>
index c3199230f989cd209d0eaf83b41dd856591c2d69..28ce2e54dfef65047d1e9efedcd4b6efb12a2d33 100644 (file)
@@ -18,6 +18,7 @@
 #include <haproxy/api.h>
 #include <haproxy/capture.h>
 #include <common/cfgparse.h>
+#include <haproxy/connection.h>
 #include <haproxy/dict.h>
 #include <haproxy/dns.h>
 #include <haproxy/dynbuf.h>
@@ -45,7 +46,6 @@
 #include <proto/channel.h>
 #include <proto/checks.h>
 #include <proto/cli.h>
-#include <proto/connection.h>
 #include <proto/stats.h>
 #include <haproxy/fd.h>
 #include <proto/filters.h>
index 23f639fb3835e8834649231a0d216ec56e01ba69..a51fa14dd7fc451494f06f68b02c65527e145240 100644 (file)
@@ -20,6 +20,7 @@
 #include <sys/types.h>
 
 #include <haproxy/api.h>
+#include <haproxy/connection.h>
 #include <haproxy/dynbuf.h>
 #include <haproxy/http_htx.h>
 #include <haproxy/tools.h>
@@ -29,7 +30,6 @@
 
 #include <proto/applet.h>
 #include <proto/channel.h>
-#include <proto/connection.h>
 #include <haproxy/pipe.h>
 #include <proto/proxy.h>
 #include <proto/stream.h>
index 1820ce51f9a73246e4caebae9aef4aea11c4d1f2..6b51be4796b46f012bbf92227192a4e22c3b34a8 100644 (file)
@@ -13,6 +13,7 @@
 #include <haproxy/api.h>
 #include <haproxy/capture-t.h>
 #include <common/cfgparse.h>
+#include <haproxy/connection.h>
 #include <haproxy/global.h>
 #include <haproxy/list.h>
 #include <haproxy/sample.h>
 #include <haproxy/time.h>
 
 #include <haproxy/arg-t.h>
-#include <types/connection.h>
 
 #include <proto/acl.h>
 #include <proto/channel.h>
-#include <proto/connection.h>
 #include <proto/log.h>
 #include <proto/proxy.h>
 #include <proto/stick_table.h>
index bfbd52237cec1e0fbeadcfbb4bda552caf0d4a88..1290d23baf643caad79355736093074276eb8ca3 100644 (file)
@@ -10,7 +10,7 @@
  *
  */
 
-#include <proto/connection.h>
+#include <haproxy/connection.h>
 #include <proto/stream_interface.h>
 
 struct xprt_handshake_ctx {