Session tracking using redis.
More...
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/modpriv.h>
#include <freeradius-devel/rad_assert.h>
#include "../rlm_redis/redis.h"
#include "../rlm_redis/cluster.h"
Go to the source code of this file.
Session tracking using redis.
- Id:
- d51aef375fd8027bee0a0a7c56a3020b1a8c35ec
- 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.
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.
|
CONF_SECTION * |
cs |
|
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 * |
name |
Instance name. |
char const * |
trim |
Command for trimming the session list. |
int |
trim_count |
How many session updates to keep track of per user. |
static int mod_bootstrap |
( |
CONF_SECTION * |
conf, |
|
|
void * |
instance |
|
) |
| |
|
static |
static int mod_instantiate |
( |
CONF_SECTION * |
conf, |
|
|
void * |
instance |
|
) |
| |
|
static |
Initial value:= {
}
#define CONF_PARSER_TERMINATOR
#define PW_TYPE_SUBSECTION
#define REDIS_COMMON_CONFIG
static CONF_PARSER section_config[]
#define FR_CONF_OFFSET(_n, _t, _s, _f)
#define FR_CONF_POINTER(_n, _t, _p)
Definition at line 63 of file rlm_rediswho.c.
Initial value:= {
.name = "rediswho",
.methods = {
},
}
static rlm_rcode_t mod_accounting(void *instance, REQUEST *request)
Write accounting data to Couchbase documents.
#define RLM_TYPE_THREAD_SAFE
Module is threadsafe.
static CONF_PARSER module_config[]
3 methods index for accounting section.
static int mod_bootstrap(CONF_SECTION *conf, void *instance)
struct rlm_rediswho rlm_rediswho_t
static int mod_instantiate(CONF_SECTION *conf, void *instance)
Definition at line 227 of file rlm_rediswho.c.
Initial value:= {
}
#define CONF_PARSER_TERMINATOR
#define PW_TYPE_XLAT
string will be dynamically expanded.
#define FR_CONF_OFFSET(_n, _t, _s, _f)
#define PW_TYPE_REQUIRED
Error out if no matching CONF_PAIR is found, and no dflt value is set.
String of printable characters.
Definition at line 56 of file rlm_rediswho.c.