]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: protocol: add a real family for existing FDs
authorWilly Tarreau <w@1wt.eu>
Fri, 4 Sep 2020 14:44:20 +0000 (16:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 20:08:07 +0000 (22:08 +0200)
commita5b325f92c909f9976fcae2b2890eccde244dd40
tree7887e1460254cfe23e3ef5401e4f9a47d0604a55
parent1e984b73f0b6390bf8ac35dae6dc33098bceea21
MINOR: protocol: add a real family for existing FDs

At some places (log fd@XXX, bind fd@XXX) we support using an explicit
file descriptor number, that is placed into the sockaddr for later use.
The problem is that till now it was done with an AF_UNSPEC family, which
is also used for other situations like missing info or rings (for logs).

Let's create an "official" family AF_CUST_EXISTING_FD for this case so
that we are certain the FD can be found in the address when it is set.
include/haproxy/protocol-t.h
src/cfgparse.c
src/log.c
src/tools.c