]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: tproxy: prepare the transparent proxy defines for accepting other OSes
authorPieter Baauw <piba.nl.dev@gmail.com>
Wed, 8 May 2013 20:49:23 +0000 (22:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 11 May 2013 06:03:37 +0000 (08:03 +0200)
commitd551fb5a8d8cfc8d092f6acb33d82d01d59307ac
tree2fa2076b84bc6629572879805ac918985621398a
parentdd11293e849a30ff0a72b1cfed804f238ef536cb
REORG: tproxy: prepare the transparent proxy defines for accepting other OSes

This patch does not change the logic of the code, it only changes the
way OS-specific defines are tested.

At the moment the transparent proxy code heavily depends on Linux-specific
defines. This first patch introduces a new define "CONFIG_HAP_TRANSPARENT"
which is set every time the defines used by transparent proxy are present.
This also means that with an up-to-date libc, it should not be necessary
anymore to force CONFIG_HAP_LINUX_TPROXY during the build, as the flags
will automatically be detected.

The CTTPROXY flags still remain separate because this older API doesn't
work the same way.

A new line has been added in the version output for haproxy -vv to indicate
what transparent proxy support is available.
include/common/compat.h
include/types/connection.h
src/backend.c
src/cfgparse.c
src/haproxy.c
src/proto_tcp.c