From: Christopher Faulet Date: Wed, 18 Dec 2019 14:10:29 +0000 (+0100) Subject: MINOR: actions: Use an integer to set the action type X-Git-Tag: v2.2-dev1~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=006f6507d7bcd3ca09b7706f4bbfdecf2b265228;p=thirdparty%2Fhaproxy.git MINOR: actions: Use an integer to set the action type 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. --- diff --git a/include/types/action.h b/include/types/action.h index 1a7e9a641d..2d854ae67d 100644 --- a/include/types/action.h +++ b/include/types/action.h @@ -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 */