commit | e94ebd0e37cb60c65549debb15f1965dab988df1 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Oct 09 17:14:37 2007 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Oct 15 17:14:01 2007 +0200 |
tree | d5e2e8f9af639071629c9deba8b7ca7032c361a9 | |
parent | d9db9274fe475b7100333a1a58e7b3540db75f1b [diff] |
[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.