All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
detail.c File Reference
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/detail.h>
#include <freeradius-devel/process.h>
#include <freeradius-devel/rad_assert.h>
#include <fcntl.h>
+ Include dependency graph for detail.c:

Go to the source code of this file.

Macros

#define USEC   (1000000)
 

Functions

int detail_decode (UNUSED rad_listen_t *this, UNUSED REQUEST *request)
 
static int detail_delay (listen_detail_t *data)
 
int detail_encode (UNUSED rad_listen_t *this, UNUSED REQUEST *request)
 
void detail_free (rad_listen_t *this)
 
static int detail_open (rad_listen_t *this)
 
int detail_parse (CONF_SECTION *cs, rad_listen_t *this)
 
static RADIUS_PACKETdetail_poll (rad_listen_t *listener)
 
int detail_print (rad_listen_t const *this, char *buffer, size_t bufsize)
 
int detail_recv (rad_listen_t *listener)
 
int detail_send (rad_listen_t *listener, REQUEST *request)
 
int detail_socket_open (UNUSED CONF_SECTION *cs, UNUSED rad_listen_t *this)
 

Variables

static const CONF_PARSER detail_config []
 
static FR_NAME_NUMBER state_names []
 

Macro Definition Documentation

#define USEC   (1000000)

Definition at line 44 of file detail.c.

Function Documentation

int detail_decode ( UNUSED rad_listen_t this,
UNUSED REQUEST request 
)

Definition at line 1027 of file detail.c.

static int detail_delay ( listen_detail_t data)
static

Definition at line 978 of file detail.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int detail_encode ( UNUSED rad_listen_t this,
UNUSED REQUEST request 
)

Definition at line 999 of file detail.c.

+ Here is the call graph for this function:

void detail_free ( rad_listen_t this)

Definition at line 914 of file detail.c.

+ Here is the call graph for this function:

static int detail_open ( rad_listen_t this)
static

Definition at line 182 of file detail.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int detail_parse ( CONF_SECTION cs,
rad_listen_t this 
)

Definition at line 1109 of file detail.c.

+ Here is the call graph for this function:

static RADIUS_PACKET * detail_poll ( rad_listen_t listener)
static

Definition at line 432 of file detail.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int detail_print ( rad_listen_t const *  this,
char *  buffer,
size_t  bufsize 
)

Definition at line 962 of file detail.c.

+ Here is the call graph for this function:

int detail_recv ( rad_listen_t listener)

Definition at line 316 of file detail.c.

+ Here is the call graph for this function:

int detail_send ( rad_listen_t listener,
REQUEST request 
)

Definition at line 64 of file detail.c.

+ Here is the call graph for this function:

int detail_socket_open ( UNUSED CONF_SECTION cs,
UNUSED rad_listen_t this 
)

Definition at line 1242 of file detail.c.

Variable Documentation

const CONF_PARSER detail_config[]
static
Initial value:
= {
{ FR_CONF_OFFSET("load_factor", PW_TYPE_INTEGER, listen_detail_t, load_factor), .dflt = STRINGIFY(10) },
{ FR_CONF_OFFSET("poll_interval", PW_TYPE_INTEGER, listen_detail_t, poll_interval), .dflt = STRINGIFY(1) },
{ FR_CONF_OFFSET("retry_interval", PW_TYPE_INTEGER, listen_detail_t, retry_interval), .dflt = STRINGIFY(30) },
{ FR_CONF_OFFSET("one_shot", PW_TYPE_BOOLEAN, listen_detail_t, one_shot), .dflt = "no" },
{ FR_CONF_OFFSET("track", PW_TYPE_BOOLEAN, listen_detail_t, track), .dflt = "no" },
}
#define CONF_PARSER_TERMINATOR
Definition: conffile.h:289
#define PW_TYPE_DEPRECATED
If a matching CONF_PAIR is found, error out with a deprecated message.
Definition: conffile.h:199
#define STRINGIFY(x)
Definition: build.h:34
A truth value.
Definition: radius.h:56
32 Bit unsigned integer.
Definition: radius.h:34
#define PW_TYPE_FILE_OUTPUT
File matching value must exist, and must be writeable.
Definition: conffile.h:205
#define FR_CONF_OFFSET(_n, _t, _s, _f)
Definition: conffile.h:168
#define PW_TYPE_REQUIRED
Error out if no matching CONF_PAIR is found, and no dflt value is set.
Definition: conffile.h:200

Definition at line 1095 of file detail.c.

FR_NAME_NUMBER state_names[]
static
Initial value:
= {
{ "unopened", STATE_UNOPENED },
{ "unlocked", STATE_UNLOCKED },
{ "header", STATE_HEADER },
{ "reading", STATE_READING },
{ "queued", STATE_QUEUED },
{ "running", STATE_RUNNING },
{ "no-reply", STATE_NO_REPLY },
{ "replied", STATE_REPLIED },
{ NULL, 0 }
}

Definition at line 46 of file detail.c.