]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: server: split the address and the port into two different fields
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Jan 2017 16:41:29 +0000 (17:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Jan 2017 18:29:33 +0000 (19:29 +0100)
commit04276f3d6e146794edcb15fd599cade29b924129
tree82483653db7a33e0a6a48edc1b327ac24e71a4d2
parent3acfcd1aa10b933053e6398baba2eae2d32ae7a6
MEDIUM: server: split the address and the port into two different fields

Keeping the address and the port in the same field causes a lot of problems,
specifically on the DNS part where we're forced to cheat on the family to be
able to keep the port. This causes some issues such as some families not being
resolvable anymore.

This patch first moves the service port to a new field "svc_port" so that the
port field is never used anymore in the "addr" field (struct sockaddr_storage).
All call places were adapted (there aren't that many).
include/types/server.h
src/backend.c
src/checks.c
src/server.c
src/stats.c