MINOR: enable IP_BIND_ADDRESS_NO_PORT on backend connections
authorLukas Tribus <luky-37@hotmail.com>
Tue, 13 Sep 2016 09:51:15 +0000 (09:51 +0000)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 Sep 2016 13:22:54 +0000 (15:22 +0200)
commit7d56c6d3479edd3791410b4c38bda0757088fc87
tree839808ae0631d568a41dc38412fe9c8a81d48b0d
parenta0bcbdcb04d52c3ca71045f90aac33d9dd7965bf
MINOR: enable IP_BIND_ADDRESS_NO_PORT on backend connections

Enable IP_BIND_ADDRESS_NO_PORT on backend connections when the source
address is specified without port or port ranges. This is supported
since Linux 4.2/libc 2.23.

If the kernel supports it but the libc doesn't, we can define it at
build time:
make [...] DEFINE=-DIP_BIND_ADDRESS_NO_PORT=24

For more informations about this feature, see Linux commit 90c337da
doc/configuration.txt
src/proto_tcp.c