commit | 9b061e33209ad6ba6d22561fc14791232647f808 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat Apr 07 18:03:52 2012 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sat Apr 07 18:03:52 2012 +0200 |
tree | 30fc389c27a5d4c9b19d42e48c1eddb2ca0349ec | |
parent | 5e19a2866f18ba151c90d6aa39399a9fdd881b32 [diff] |
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.