]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stream_interface: restore get_src/get_dst
authorWilly Tarreau <w@1wt.eu>
Fri, 11 May 2012 14:16:40 +0000 (16:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 May 2012 14:48:10 +0000 (16:48 +0200)
commit59b947966738f2769cd572a21650cbad0b9d58d6
tree39586ed2f5c6cb7d2041bd630a53da4d6077d356
parent1539a01645cc9c1d7b70dec559f5bafe6ca25012
BUG/MEDIUM: stream_interface: restore get_src/get_dst

Commit e164e7a removed get_src/get_dst setting in the stream interfaces but
forgot to set it in proto_tcp. Get the feature back because we need it for
logging, transparent mode, ACLs etc... We now rely on the stream interface
direction to know what syscall to use.

One benefit of doing it this way is that we don't use getsockopt() anymore
on outgoing stream interfaces nor on UNIX sockets.
12 files changed:
include/proto/proto_tcp.h
include/proto/proto_uxst.h
include/proto/sock_raw.h
include/proto/stream_interface.h
include/types/protocols.h
src/backend.c
src/dumpstats.c
src/frontend.c
src/log.c
src/proto_http.c
src/proto_tcp.c
src/proto_uxst.c