]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream_sock: add a get_src and get_dst callback and remove SN_FRT_ADDR_SET
authorWilly Tarreau <w@1wt.eu>
Sat, 7 Apr 2012 16:03:52 +0000 (18:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 7 Apr 2012 16:03:52 +0000 (18:03 +0200)
commit9b061e33209ad6ba6d22561fc14791232647f808
tree30fc389c27a5d4c9b19d42e48c1eddb2ca0349ec
parent5e19a2866f18ba151c90d6aa39399a9fdd881b32
MEDIUM: stream_sock: add a get_src and get_dst callback and remove SN_FRT_ADDR_SET

These callbacks are used to retrieve the source and destination address
of a socket. The address flags are not hold on the stream interface and
not on the session anymore. The addresses are collected when needed.

This still needs to be improved to store the IP and port separately so
that it is not needed to perform a getsockname() when only the IP address
is desired for outgoing traffic.
include/proto/frontend.h
include/proto/stream_sock.h
include/types/session.h
include/types/stream_interface.h
src/backend.c
src/frontend.c
src/log.c
src/peers.c
src/proto_http.c
src/proto_tcp.c
src/session.c