24 RCSID(
"$Id: e861b3f573f96a2447b217569aa2e16f8b927fed $")
26 #include <freeradius-devel/radiusd.h>
27 #include <freeradius-devel/modules.h>
28 #include <freeradius-devel/rad_assert.h>
113 switch (packet->
code) {
140 return sometimes_return(instance, request, request->packet, request->reply);
153 return sometimes_return(instance, request, request->proxy, request->proxy_reply);
170 .config = module_config,
5 methods index for preproxy section.
Metadata exported by the module.
uint32_t fr_hash(void const *, size_t)
7 methods index for postauth section.
#define CONF_PARSER_TERMINATOR
Error resolving rcode (should not be returned by modules).
#define RLM_TYPE_HUP_SAFE
Will be restarted on HUP.
RFC3575/RFC5176 - Disconnect-Ack (positive)
static const CONF_PARSER module_config[]
Defines a CONF_PAIR to C data type mapping.
static rlm_rcode_t sometimes_return(void *instance, REQUEST *request, RADIUS_PACKET *packet, RADIUS_PACKET *reply)
static unsigned int hash(char const *username, unsigned int tablesize)
RFC2866 - Accounting-Response.
const FR_NAME_NUMBER mod_rcode_table[]
RFC3575/RFC5176 - CoA-Ack (positive)
RFC2865 - Access-Request.
int fr_str2int(FR_NAME_NUMBER const *table, char const *name, int def)
int tmpl_find_vp(VALUE_PAIR **out, REQUEST *request, vp_tmpl_t const *vpt)
Returns the first VP matching a vp_tmpl_t.
RFC2866 - Accounting-Request.
static int mod_instantiate(CONF_SECTION *conf, void *instance)
static rlm_rcode_t CC_HINT(nonnull)
unsigned int code
Packet code (type).
3 methods index for accounting section.
Stores an attribute, a value and various bits of other data.
void void cf_log_err_cs(CONF_SECTION const *cs, char const *fmt,...) CC_HINT(format(printf
0 methods index for authenticate section.
enum rlm_rcodes rlm_rcode_t
Return codes indicating the result of the module call.
RFC3575/RFC5176 - CoA-Request.
Module succeeded without doing anything.
uint64_t magic
Used to validate module struct.
#define FR_CONF_OFFSET(_n, _t, _s, _f)
struct rlm_sometimes_t rlm_sometimes_t
6 methods index for postproxy section.
2 methods index for preacct section.
8 methods index for recvcoa section.
#define PW_TYPE_ATTRIBUTE
Value must resolve to attribute in dict (deprecated, use PW_TYPE_TMPL).
9 methods index for sendcoa section.
String of printable characters.
#define PW_TYPE_TMPL
CONF_PAIR should be parsed as a template.
1 methods index for authorize section.
The module handled the request, so stop.
A source or sink of value data.
RFC3575/RFC5176 - Disconnect-Request.