]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: sock_unix: use per-family addrcmp function
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 28 Oct 2024 14:02:19 +0000 (15:02 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 29 Oct 2024 11:15:09 +0000 (12:15 +0100)
commit43861e32341a95ddf75f4b2134bc5c7da02891a9
tree0bcfa16112e928f1d46393ce113797bf79359f5a
parentd879bf6600f4518f974766340e0d55ae83484f1e
MEDIUM: sock_unix: use per-family addrcmp function

Thanks to previous commit, we may now use dedicated addrcmp functions for
each UNIX address family. This allows to simplify sock_unix_addrcmp()
function and avoid useless checks in order to try to guess the socket
type.

In this patch we implement sock_abns_addrcmp() and sock_abnsz_addrcmp()
functions, which are respectively used for ABNS and ABNSZ custom families

sock_unix_addrcmp() now only holds regular UNIX socket comparing logic.
include/haproxy/sock_unix.h
src/sock_unix.c