The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Return codes returned by modules and virtual server sections. More...
#include <freeradius-devel/util/table.h>
#include <freeradius-devel/unlang/action.h>
Go to the source code of this file.
Enumerations | |
enum | rlm_rcode_t { RLM_MODULE_REJECT = 0 , RLM_MODULE_FAIL , RLM_MODULE_OK , RLM_MODULE_HANDLED , RLM_MODULE_INVALID , RLM_MODULE_DISALLOW , RLM_MODULE_NOTFOUND , RLM_MODULE_NOOP , RLM_MODULE_UPDATED , RLM_MODULE_NUMCODES , RLM_MODULE_NOT_SET } |
Return codes indicating the result of the module call. More... | |
Variables | |
fr_table_num_sorted_t const | rcode_table [] |
size_t | rcode_table_len |
Return codes returned by modules and virtual server sections.
Definition in file rcode.h.
#define RETURN_MODULE_DISALLOW do { *p_result = RLM_MODULE_DISALLOW; return UNLANG_ACTION_CALCULATE_RESULT; } while (0) |
#define RETURN_MODULE_FAIL do { *p_result = RLM_MODULE_FAIL; return UNLANG_ACTION_CALCULATE_RESULT; } while (0) |
#define RETURN_MODULE_HANDLED do { *p_result = RLM_MODULE_HANDLED; return UNLANG_ACTION_CALCULATE_RESULT; } while (0) |
#define RETURN_MODULE_INVALID do { *p_result = RLM_MODULE_INVALID; return UNLANG_ACTION_CALCULATE_RESULT; } while (0) |
#define RETURN_MODULE_NOOP do { *p_result = RLM_MODULE_NOOP; return UNLANG_ACTION_CALCULATE_RESULT; } while (0) |
#define RETURN_MODULE_NOTFOUND do { *p_result = RLM_MODULE_NOTFOUND; return UNLANG_ACTION_CALCULATE_RESULT; } while (0) |
#define RETURN_MODULE_OK do { *p_result = RLM_MODULE_OK; return UNLANG_ACTION_CALCULATE_RESULT; } while (0) |
#define RETURN_MODULE_RCODE | ( | _rcode | ) | do { *p_result = (_rcode); return UNLANG_ACTION_CALCULATE_RESULT; } while (0) |
#define RETURN_MODULE_REJECT do { *p_result = RLM_MODULE_REJECT; return UNLANG_ACTION_CALCULATE_RESULT; } while (0) |
#define RETURN_MODULE_UPDATED do { *p_result = RLM_MODULE_UPDATED; return UNLANG_ACTION_CALCULATE_RESULT; } while (0) |
#define RLM_MODULE_USER_SECTION_REJECT |
Rcodes that translate to a user configurable section failing overall.
enum rlm_rcode_t |
Return codes indicating the result of the module call.
All module functions must return one of the codes listed below (apart from RLM_MODULE_NUMCODES, which is used to check for validity).
|
extern |