]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sock_inet: move the IPv4/v6 transparent mode code to sock_inet
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 15:23:40 +0000 (17:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 16:51:36 +0000 (18:51 +0200)
commit37bafdcbb12096c1291a3b5439109c91a419536a
treec0bd97384ccfb274e49c005ba160a6b9712fc8c8
parent2d34a710b1423c5f698b060f48db8e97eb981f5e
MINOR: sock_inet: move the IPv4/v6 transparent mode code to sock_inet

This code was highly redundant, existing for TCP clients, TCP servers
and UDP servers. Let's move it to sock_inet where it belongs. The new
functions are sock_inet4_make_foreign() and sock_inet6_make_foreign().
include/haproxy/sock_inet.h
src/proto_tcp.c
src/proto_udp.c
src/sock_inet.c