]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: actions: Add flags to configure the action behaviour
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Dec 2019 13:58:12 +0000 (14:58 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commit245cf795c12af77f29f3c6420cbb4dadd3bbd9e2
tree7e1a850bb57a00502255f5a392a35636b777192b
parent105ba6cc54b45011ee8110cee5c4ecdb4946f6e6
MINOR: actions: Add flags to configure the action behaviour

Some flags can now be set on an action when it is registered. The flags are
defined in the act_flag enum. For now, only ACT_FLAG_FINAL may be set on an
action to specify if it stops the rules evaluation. It is set on
ACT_ACTION_ALLOW, ACT_ACTION_DENY, ACT_HTTP_REQ_TARPIT, ACT_HTTP_REQ_AUTH,
ACT_HTTP_REDIR and ACT_TCP_CLOSE actions. But, when required, it may also be set
on custom actions.

Consequently, this flag is checked instead of the action type during the
configuration parsing to trigger a warning when a rule inhibits all the
following ones.
include/types/action.h
src/cfgparse-listen.c
src/http_act.c
src/tcp_rules.c