]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-act/tcp-act: Add "set-mark" and "set-tos" for tcp content rules
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 25 Jun 2021 13:11:35 +0000 (15:11 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 25 Jun 2021 14:11:58 +0000 (16:11 +0200)
commit469c06c30e3177ac5a0c62e4aa0db463ff49cfdd
tree4cc8ed91ec6de86cfb3f06c435e53af43cfd31a2
parent1da374af2f98c0a5e41e6d99553d74426a45ffe0
MINOR: http-act/tcp-act: Add "set-mark" and "set-tos" for tcp content rules

It is now possible to set the Netfilter MARK and the TOS field value in all
packets sent to the client from any tcp-request rulesets or the "tcp-response
content" one. To do so, the parsing of "set-mark" and "set-tos" actions are
moved in tcp_act.c and the actions evaluation is handled in dedicated functions.

This patch may be backported as far as 2.2 if necessary.
doc/configuration.txt
include/haproxy/action-t.h
src/http_act.c
src/http_ana.c
src/tcp_act.c