All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
rlm_unpack.c File Reference

Unpack binary data. More...

#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <ctype.h>
+ Include dependency graph for rlm_unpack.c:

Go to the source code of this file.

Macros

#define GOTO_ERROR   do { REDEBUG("Unexpected text at '%s'", p); goto error;} while (0)
 
#define PW_CAST_BASE   (1850)
 

Functions

static int mod_bootstrap (CONF_SECTION *conf, void *instance)
 
static ssize_t unpack_xlat (char **out, size_t outlen, UNUSED void const *mod_inst, UNUSED void const *xlat_inst, REQUEST *request, char const *fmt)
 Unpack data. More...
 

Variables

module_t rlm_unpack
 

Detailed Description

Unpack binary data.

Id:
528c275eb46dbaa37217fad5ef400d2e7eeae531

Definition in file rlm_unpack.c.

Macro Definition Documentation

#define GOTO_ERROR   do { REDEBUG("Unexpected text at '%s'", p); goto error;} while (0)

Definition at line 33 of file rlm_unpack.c.

#define PW_CAST_BASE   (1850)

Definition at line 31 of file rlm_unpack.c.

Function Documentation

static int mod_bootstrap ( CONF_SECTION conf,
void *  instance 
)
static

Definition at line 195 of file rlm_unpack.c.

+ Here is the call graph for this function:

static ssize_t unpack_xlat ( char **  out,
size_t  outlen,
UNUSED void const *  mod_inst,
UNUSED void const *  xlat_inst,
REQUEST request,
char const *  fmt 
)
static

Unpack data.

Example: %{unpack:&Class 0 integer}

Expands Class, treating octet at offset 0 (bytes 0-3) as an "integer".

Definition at line 41 of file rlm_unpack.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

module_t rlm_unpack
Initial value:
= {
.magic = RLM_MODULE_INIT,
.name = "unpack",
.bootstrap = mod_bootstrap
}
#define RLM_TYPE_THREAD_SAFE
Module is threadsafe.
Definition: modules.h:75
#define RLM_MODULE_INIT
Definition: modules.h:86
static int mod_bootstrap(CONF_SECTION *conf, void *instance)
Definition: rlm_unpack.c:195

Definition at line 214 of file rlm_unpack.c.