MINOR: sock_inet: implement sock_inet_get_dst()
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 13:19:45 +0000 (15:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 16:51:36 +0000 (18:51 +0200)
commitc5a94c936b26432488a1a7577a79e74d6b0d2ffa
tree36c01cd379b4f95969300c1af7a07f419211ca8c
parentf172558b2746b35d1301a5deb392bb8f63b0bf6c
MINOR: sock_inet: implement sock_inet_get_dst()

This one is common to the TCPv4 and UDPv4 code, it retrieves the
destination address of a socket, taking care of the possiblity that for
an incoming connection the traffic was possibly redirected. The TCP and
UDP definitions were updated to rely on it and remove duplicated code.
include/haproxy/proto_tcp.h
include/haproxy/proto_udp.h
include/haproxy/sock_inet.h
src/proto_tcp.c
src/proto_udp.c
src/sock_inet.c