]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: connection: move the addr field from the stream_interface
authorWilly Tarreau <wtarreau@exceliance.fr>
Thu, 30 Aug 2012 19:11:38 +0000 (21:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 3 Sep 2012 18:47:34 +0000 (20:47 +0200)
commit986a9d2d124b7d62cd94331a0cd4d69e952adb71
tree4f4bbcef6e346ec87265d8d353eee5d73db52ead
parent3cefd521facff1d6121e535da5d9ddb2730bf3d8
MAJOR: connection: move the addr field from the stream_interface

We need to have the source and destination addresses in the connection.
They were lying in the stream interface so let's move them. The flags
SI_FL_FROM_SET and SI_FL_TO_SET have been moved as well.

It's worth noting that tcp_connect_server() almost does not use the
stream interface anymore except for a few flags.

It has been identified that once we detach the connection from the SI,
it will probably be needed to keep a copy of the server-side addresses
in the SI just for logging purposes. This has not been implemented right
now though.
14 files changed:
include/proto/connection.h
include/proto/proto_tcp.h
include/proto/stream_interface.h
include/types/connection.h
include/types/stream_interface.h
src/backend.c
src/dumpstats.c
src/frontend.c
src/log.c
src/peers.c
src/proto_http.c
src/proto_tcp.c
src/session.c
src/stream_interface.c