]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-rules/tcp-rules: Call the defined action function first if defined
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Dec 2019 10:13:39 +0000 (11:13 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commitcd26e8a2ec98dd38566ebd419e1af62c0af8c8d3
tree13780a443a0a1c581aab93c64234d09188edde16
parent96bff76087a7ba3820b9db6c313c333f02fc0605
MINOR: http-rules/tcp-rules: Call the defined action function first if defined

When TCP and HTTP rules are evaluated, if an action function (action_ptr field
in the act_rule structure) is defined for a given action, it is now always
called in priority over the test on the action type. Concretly, for now, only
custom actions define it. Thus there is no change. It just let us the choice to
extend the action type beyond the existing ones in the enum.
include/types/action.h
src/http_ana.c
src/tcp_rules.c