]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: introduce "struct conn_src" for servers and proxies
authorWilly Tarreau <w@1wt.eu>
Sat, 8 Dec 2012 21:29:20 +0000 (22:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 9 Dec 2012 09:04:39 +0000 (10:04 +0100)
commitef9a36055511b14c0a072e5f817143eecade5cfd
tree8442e43a63061f52545a8b2b65ff4ca6594f8b23
parenteb37faa467532d46d42d3cd0f3e08ce6e02b03b0
MEDIUM: connection: introduce "struct conn_src" for servers and proxies

Both servers and proxies share a common set of parameters for outgoing
connections, and since they're not stored in a similar structure, a lot
of code is duplicated in the connection setup, which is one sensible
area.

Let's first define a common struct for these settings and make use of it.
Next patches will de-duplicate code.

This change also fixes a build breakage that happens when USE_LINUX_TPROXY
is not set but USE_CTTPROXY is set, which seem to be very unlikely
considering that the issue was introduced almost 2 years ago an never
reported.
include/types/connection.h
include/types/proxy.h
include/types/server.h
src/backend.c
src/cfgparse.c
src/proto_tcp.c