]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tcp-sample: Add samples to get original info about client connection
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 25 Oct 2021 14:58:50 +0000 (16:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Oct 2021 09:35:59 +0000 (11:35 +0200)
commit888cd700f4fe9334d065f9d5d7bd57edcabd0aab
tree8328b2b9523bf8d68d9b5c7a3b6753f38322d4b3
parent7bd21921d152121297f28651198f6223d7a4a9e2
MINOR: tcp-sample: Add samples to get original info about client connection

Because source and destination address of the client connection are now
updated at the appropriated level (connection, session or stream), original
info about the client connection are preserved.  src/src_port/src_is_local
and dst/dst_port/dst_is_local return current info about the client
connection. It is the info at the highest available level. Most of time, the
stream. Any tcp/http rules may alter this info.

To get original info, "fc_" prefix must be added. For instance
"fc_src". Here, only "tcp-request connection" rules may alter source and
destination address/port.
doc/configuration.txt
src/tcp_sample.c