MINOR: tcp/udp/unix: make use of proto->addrcmp() to compare addresses
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 13:30:11 +0000 (15:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 16:51:36 +0000 (18:51 +0200)
commitf172558b2746b35d1301a5deb392bb8f63b0bf6c
treef4412eb94b8015ac97ccc4f7470452b60e4073df
parent0d06df64487bc225763ab294e67c40b98f99566b
MINOR: tcp/udp/unix: make use of proto->addrcmp() to compare addresses

The new addrcmp() protocol member points to the function to be used to
compare two addresses of the same family.

When picking an FD from a previous process, we can now use the address
specific address comparison functions instead of having to rely on a
local implementation. This will help move that code to a more central
place.
include/haproxy/protocol-t.h
src/proto_tcp.c
src/proto_udp.c
src/proto_uxst.c