]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] moved the sockaddr pointer to the fdtab structure
authorWilly Tarreau <w@1wt.eu>
Tue, 9 Oct 2007 15:14:37 +0000 (17:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2007 15:14:01 +0000 (17:14 +0200)
commite94ebd0e37cb60c65549debb15f1965dab988df1
treed5e2e8f9af639071629c9deba8b7ca7032c361a9
parentd9db9274fe475b7100333a1a58e7b3540db75f1b
[MEDIUM] moved the sockaddr pointer to the fdtab structure

The stream_sock_* functions had to know about sessions just in
order to get the server's address for a connect() operation. This
is not desirable, particularly for non-IP protocols (eg: PF_UNIX).

Put a pointer to the peer's sockaddr_storage or sockaddr address
in the fdtab structure so that we never need to look further.

With this small change, the stream_sock.c file is now 100% protocol
independant.
include/types/fd.h
src/backend.c
src/checks.c
src/client.c
src/proxy.c
src/stream_sock.c