31#include <freeradius-devel/server/rcode.h>
32#include <freeradius-devel/util/retry.h>
34#define MOD_PRIORITY(_x) ((_x) | 0x80)
59#define MOD_PRIORITY_MIN MOD_PRIORITY_1
60#define MOD_ACTION_VALID(_x) ((((_x) >= 0) && ((_x) <= 3)) || (((_x) >= MOD_PRIORITY_MIN) && ((_x) <= MOD_PRIORITY_MAX)))
61#define MOD_ACTION_VALID_SET(_x) ((((_x) > 0) && ((_x) <= 3)) || (((_x) >= MOD_PRIORITY_MIN) && ((_x) <= MOD_PRIORITY_MAX)))
68#define DEFAULT_MOD_ACTIONS { .actions = {}, .retry = RETRY_INIT }
69#define MOD_ACTIONS_FAIL_TIMEOUT_RETURN { .actions = { [RLM_MODULE_FAIL] = MOD_ACTION_RETURN, [RLM_MODULE_TIMEOUT] = MOD_ACTION_RETURN,}, .retry = RETRY_INIT }
unlang_mod_actions_t const mod_actions_preacct
const char * mod_action_name[MOD_PRIORITY_MAX+1]
@ MOD_ACTION_NOT_SET
default "not set by anything"
@ MOD_ACTION_RETURN
stop processing the section, and return the rcode with unset priority
@ MOD_ACTION_REJECT
change the rcode to REJECT, with unset priority
@ MOD_ACTION_RETRY
retry the instruction, MUST also set a retry config
unlang_mod_actions_t const mod_actions_authenticate
unlang_mod_actions_t const mod_actions_accounting
unlang_mod_actions_t const mod_actions_authorize
unlang_mod_actions_t const mod_actions_postauth
@ RLM_MODULE_NUMCODES
How many valid return codes there are.