MEDIUM: tcp-sample: Rely on addresses at the appropriate level in tcp samples
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 25 Oct 2021 06:01:20 +0000 (08:01 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Oct 2021 09:34:21 +0000 (11:34 +0200)
commitc03be1a1297107ec2f8b8e253f4750823c0f3328
tree2dd355cf29341a8b44615acf06bf81124e273f86
parent568008d19917d1426cb6228df37d9f3c189b4968
MEDIUM: tcp-sample: Rely on addresses at the appropriate level in tcp samples

In src, src-port, dst and dst-port sample fetches, the client source and
destination addresses are retrieved from the appropriate level. It means
that, if the stream exits, we use the frontend stream-interface to get the
client source and destination addresses. Otherwise, the session is used. For
now, stream-interface or session addresses are never set. So, thanks to the
fallback mechanism, no changes are expected with this patch. But its purpose
is to rely on addresses at the appropriate level when set instead of those
at the connection level.
src/tcp_sample.c