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

Go to the source code of this file.

Functions

static RADCLIENTclient_alloc (void *ctx)
 
static bool do_xlats (char const *filename, FILE *fp)
 
static rad_listen_tlisten_alloc (void *ctx)
 
int listen_bootstrap (UNUSED CONF_SECTION *server, UNUSED CONF_SECTION *cs, UNUSED char const *server_name)
 
void listen_free (UNUSED rad_listen_t **head)
 
int main (int argc, char *argv[])
 
static rlm_rcode_t mod_map_proc (UNUSED void *mod_inst, UNUSED void *proc_inst, UNUSED REQUEST *request, UNUSED char const *src, UNUSED vp_map_t const *maps)
 
static void print_packet (FILE *fp, RADIUS_PACKET *packet)
 
static REQUESTrequest_setup (FILE *fp)
 
static void usage (int)
 
static ssize_t xlat_poke (char **out, size_t outlen, UNUSED void const *mod_inst, UNUSED void const *xlat_inst, REQUEST *request, char const *fmt)
 

Variables

static bool filedone = false
 
bool log_stripped_names = false
 
static bool memory_report = false
 
char const * radacct_dir = NULL
 
char const * radiusd_version
 
char const * radlog_dir = NULL
 

Function Documentation

static RADCLIENT* client_alloc ( void *  ctx)
static

Definition at line 97 of file unittest.c.

+ Here is the caller graph for this function:

static bool do_xlats ( char const *  filename,
FILE *  fp 
)
static

Definition at line 536 of file unittest.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static rad_listen_t* listen_alloc ( void *  ctx)
static

Definition at line 70 of file unittest.c.

+ Here is the caller graph for this function:

int listen_bootstrap ( UNUSED CONF_SECTION server,
UNUSED CONF_SECTION cs,
UNUSED char const *  server_name 
)

Definition at line 59 of file unittest.c.

void listen_free ( UNUSED rad_listen_t **  head)

Definition at line 64 of file unittest.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 646 of file unittest.c.

+ Here is the call graph for this function:

static rlm_rcode_t mod_map_proc ( UNUSED void *  mod_inst,
UNUSED void *  proc_inst,
UNUSED REQUEST request,
UNUSED char const *  src,
UNUSED vp_map_t const *  maps 
)
static

Definition at line 637 of file unittest.c.

+ Here is the caller graph for this function:

static void print_packet ( FILE *  fp,
RADIUS_PACKET packet 
)
static

Definition at line 384 of file unittest.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static REQUEST* request_setup ( FILE *  fp)
static

Definition at line 107 of file unittest.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void NEVER_RETURNS usage ( int  status)
static

Definition at line 991 of file unittest.c.

+ Here is the caller graph for this function:

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

Definition at line 420 of file unittest.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

bool filedone = false
static

Definition at line 46 of file unittest.c.

bool log_stripped_names = false

Definition at line 43 of file unittest.c.

bool memory_report = false
static

Definition at line 45 of file unittest.c.

char const* radacct_dir = NULL

Definition at line 41 of file unittest.c.

char const* radiusd_version
Initial value:
= "FreeRADIUS Version " RADIUSD_VERSION_STRING
", for host " HOSTINFO ", built on " __DATE__ " at " __TIME__

Definition at line 48 of file unittest.c.

char const* radlog_dir = NULL

Definition at line 42 of file unittest.c.