Session tracking using redis.
More...
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/server/modpriv.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/redis/base.h>
#include <freeradius-devel/redis/cluster.h>
Go to the source code of this file.
Session tracking using redis.
- Id
- 1c8a9200957305b9d3be94ddf8a30077c6fad248
- Author
- Gabriel Blanchard
- Copyright
- 2015 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
-
2011 TekSavvy Solutions (gabe@.nosp@m.teks.nosp@m.avvy..nosp@m.com)
-
2000,2006 The FreeRADIUS server project
Definition in file rlm_rediswho.c.
◆ rlm_rediswho_t
Definition at line 39 of file rlm_rediswho.c.
Data Fields |
fr_redis_cluster_t * |
cluster |
Pool O pools. |
fr_redis_conf_t |
conf |
Connection parameters for the Redis server. Must be first field in this struct.
|
char const * |
expire |
Command for expiring entries. |
int |
expiry_time |
Expiry time in seconds if no updates are received for a user. |
char const * |
insert |
Command for inserting session data. |
char const * |
trim |
Command for trimming the session list. |
int |
trim_count |
How many session updates to keep track of per user. |
◆ mod_accounting()
◆ mod_accounting_all()
◆ mod_instantiate()
◆ mod_load()
static int mod_load |
( |
void |
| ) |
|
|
static |
◆ rediswho_command()
◆ attr_acct_status_type
◆ dict_radius
◆ module_config
Initial value:= {
}
#define CONF_PARSER_TERMINATOR
#define FR_CONF_OFFSET(_name, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
#define FR_CONF_POINTER(_name, _type, _flags, _res_p)
conf_parser_t which parses a single CONF_PAIR producing a single global result
@ CONF_FLAG_SUBSECTION
Instead of putting the information into a configuration structure, the configuration file routines MA...
#define REDIS_COMMON_CONFIG
static conf_parser_t section_config[]
Definition at line 61 of file rlm_rediswho.c.
◆ rlm_rediswho
Initial value:= {
.common = {
.name = "rediswho",
},
.method_group = {
}
}
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
static const conf_parser_t config[]
static int mod_load(void)
static unlang_action_t mod_accounting(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
static int mod_instantiate(module_inst_ctx_t const *mctx)
static conf_parser_t module_config[]
static int instantiate(module_inst_ctx_t const *mctx)
#define SECTION_NAME(_name1, _name2)
Define a section name consisting of a verb and a noun.
#define MODULE_BINDING_TERMINATOR
Terminate a module binding list.
Named methods exported by a module.
Definition at line 251 of file rlm_rediswho.c.
◆ rlm_rediswho_dict
Initial value:= {
{ NULL }
}
static fr_dict_t const * dict_radius
Definition at line 83 of file rlm_rediswho.c.
◆ rlm_rediswho_dict_attr
Initial value:= {
{ NULL }
}
@ FR_TYPE_UINT32
32 Bit unsigned integer.
static fr_dict_attr_t const * attr_acct_status_type
Definition at line 91 of file rlm_rediswho.c.
◆ section_config
Initial value:= {
}
#define FR_CONF_OFFSET_FLAGS(_name, _flags, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
@ CONF_FLAG_REQUIRED
Error out if no matching CONF_PAIR is found, and no dflt value is set.
@ CONF_FLAG_XLAT
string will be dynamically expanded.
Definition at line 54 of file rlm_rediswho.c.