MEDIUM: tcp-act: Set addresses at the apprioriate level in set-(src/dst) actions
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 25 Oct 2021 06:26:34 +0000 (08:26 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Oct 2021 09:35:59 +0000 (11:35 +0200)
commitd69377eb02a15e801eaa66f81f5ad3c563e2b3b8
treee8148066cccda8abe45f725ed75f0efe5b8ced79
parente83e8821bb3d2ae60e653293aeb953828cf3ce29
MEDIUM: tcp-act: Set addresses at the apprioriate level in set-(src/dst) actions

When client source or destination addresses are changed via a tcp/http
action, we update addresses at the appropriate level. When "tcp-request
connection" rules are evaluated, we update addresses at the connection
level. When "tcp-request session" rules is evaluated, we update those at the
session level. And finally, when "tcp-request content" or "http-request"
rules are evaluated, we update the addresses at the stream level.

The same is performed when source or destination ports are changed.

Of course, for now, not all level are supported. But thanks to this patch,
it will be possible.
src/tcp_act.c