Retrieve attributes from a dict.
More...
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/server/log.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/sbuff.h>
#include <freeradius-devel/util/value.h>
#include <freeradius-devel/unlang/xlat.h>
#include <freeradius-devel/unlang/xlat_func.h>
Go to the source code of this file.
|
static int | mod_load (void) |
|
static void | mod_unload (void) |
|
static xlat_action_t | xlat_attr (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| Return the attribute name of an attribute reference. More...
|
|
static xlat_action_t | xlat_attr_num (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| Return the attribute number of an attribute reference. More...
|
|
static xlat_action_t | xlat_attr_oid (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| Return the attribute number of an attribute reference. More...
|
|
static xlat_action_t | xlat_attr_type (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| Return the data type of an attribute reference. More...
|
|
static xlat_action_t | xlat_dict_attr_by_num (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| Xlat for attr_by_num(<number>) More...
|
|
static xlat_action_t | xlat_dict_attr_by_oid (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| Xlat for attr_by_oid(<oid>) More...
|
|
static int | xlat_fmt_get_vp (fr_pair_t **out, request_t *request, char const *name) |
| Return a VP from the specified request. More...
|
|
static xlat_action_t | xlat_vendor (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| Return the vendor of an attribute reference. More...
|
|
static xlat_action_t | xlat_vendor_num (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| Return the vendor number of an attribute reference. More...
|
|
Retrieve attributes from a dict.
- Id
- f95cedb1e85d180651987a4ffa161e87b4b2de04
- Copyright
- 2016 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
Definition in file rlm_dict.c.
◆ XLAT_REGISTER
#define XLAT_REGISTER |
( |
|
_name, |
|
|
|
_func, |
|
|
|
_type, |
|
|
|
_args |
|
) |
| |
Value:
xlat_func_args_set(xlat, _args)
xlat_t * xlat_func_register(TALLOC_CTX *ctx, char const *name, xlat_func_t func, fr_type_t return_type)
Register an xlat function.
Definition at line 316 of file rlm_dict.c.
◆ mod_load()
static int mod_load |
( |
void |
| ) |
|
|
static |
◆ mod_unload()
static void mod_unload |
( |
void |
| ) |
|
|
static |
◆ xlat_fmt_get_vp()
Return a VP from the specified request.
- Parameters
-
out | where to write the pointer to the resolved VP. Will be NULL if the attribute couldn't be resolved. |
request | current request. |
name | attribute name including qualifiers. |
- Returns
- -4 if either the attribute or qualifier were invalid.
- The same error codes as tmpl_find_vp for other error conditions.
Definition at line 45 of file rlm_dict.c.
◆ rlm_dict
Initial value:= {
.common = {
.name = "dict",
}
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
static int mod_load(void)
static void mod_unload(void)
Definition at line 348 of file rlm_dict.c.
◆ xlat_attr_args
Initial value:= {
}
@ FR_TYPE_STRING
String of printable characters.
#define XLAT_ARG_PARSER_TERMINATOR
Definition at line 200 of file rlm_dict.c.
◆ xlat_attr_num_args
◆ xlat_attr_oid_args
◆ xlat_dict_attr_by_num_args
Initial value:= {
}
@ FR_TYPE_UINT32
32 Bit unsigned integer.
Definition at line 68 of file rlm_dict.c.
◆ xlat_dict_attr_by_oid_args
◆ xlat_vendor_args
◆ xlat_vendor_num_args