MINOR: actions: Use an integer to set the action type

<action> field in the act_rule structure is now an integer. The act_name values
are used for all actions without action function (but it is not a pre-requisit
though) or the action will have no effect. But for all other actions, any
integer value may used, only the action function will take care of it. The
default for such actions is ACT_CUSTOM.
This commit is contained in:
Christopher Faulet 2019-12-18 15:10:29 +01:00
parent 245cf795c1
commit 006f6507d7

View File

@ -115,7 +115,7 @@ enum act_name {
struct act_rule {
struct list list;
struct acl_cond *cond; /* acl condition to meet */
enum act_name action; /* ACT_ACTION_* */
unsigned int action; /* ACT_* or any meaningful value if action_ptr is defined */
unsigned int flags; /* ACT_FLAG_* */
enum act_from from; /* ACT_F_* */
enum act_return (*action_ptr)(struct act_rule *rule, struct proxy *px, /* ptr to custom action */