]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: protocol: add the real address family to the protocol
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Aug 2024 18:13:10 +0000 (20:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 Aug 2024 15:37:46 +0000 (17:37 +0200)
commit2a799b64b0ca8be08b50afa79c8efc674e49c91e
treed2d0375f64f6830c6ca5d05972fc6cbc1f4f7d48
parentd592ebdbeb298d725cceb6082eaa58d241b17675
MINOR: protocol: add the real address family to the protocol

For custom families, there's sometimes an underlying real address and
it would be nice to be able to directly use the real family in calls
to bind() and connect() without having to add explicit checks for
exceptions everywhere.

Let's add a .real_family field to struct proto_fam for this. For now
it's always equal to the family except for non-transferable ones such
as rhttp where it's equal to the custom one (anything else could fit).
include/haproxy/protocol-t.h
include/haproxy/protocol.h
src/proto_rhttp.c
src/proto_sockpair.c
src/sock_inet.c
src/sock_unix.c