]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: protocol: rely on AF_CUST_ABNS family to recognize ABNS sockets
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 24 Oct 2024 12:20:01 +0000 (14:20 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 29 Oct 2024 11:14:37 +0000 (12:14 +0100)
commit5d766260f0c3e3ef1bd1e7ade0681b21775145d9
tree30c56e2a64a7e1c1236a9175871f42ab5f16fc7e
parent78ac312bbdaa3039f50710886c285ded31744152
MEDIUM: protocol: rely on AF_CUST_ABNS family to recognize ABNS sockets

Now that we can easily distinguish regular UNIX socket from ABNS sockets
by simply looking at the address family, stop looking at the first byte
from addr->sun_path to guess if the socket is an ABNS one or not. Looking
at the family is straightforward and will allow to differentiate between
upcoming ABNSZ and ABNS (where looking at the first byte from path won't
help anymore).
src/cli.c
src/connection.c
src/extcheck.c
src/hlua.c
src/hlua_fcn.c
src/session.c
src/tools.c