All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
radwho.c File Reference
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/sysutmp.h>
#include <freeradius-devel/radutmp.h>
#include <pwd.h>
#include <sys/stat.h>
#include <ctype.h>
#include <sys/wait.h>
+ Include dependency graph for radwho.c:

Go to the source code of this file.

Data Structures

struct  radutmp_config_t
 

Functions

static char * dotime (time_t t)
 
static char * fullname (char *username)
 
static char const * hostname (char *buf, size_t buflen, uint32_t ipaddr)
 
int main (int argc, char **argv)
 
static char const * proto (int id, int porttype)
 
pid_t rad_fork (void)
 
static void NEVER_RETURNS usage (int status)
 

Variables

static char const * dict_dir = DICTDIR
 
static char const * eol = "\n"
 
static char const * hdr1
 
static char const * hdr2
 
bool log_stripped_names
 
main_config_t main_config
 Main server configuration. More...
 
static const CONF_PARSER module_config []
 
static char const * progname = "radwho"
 
char const * radacct_dir = NULL
 
static char const * raddb_dir = RADDBDIR
 
char const * radlog_dir = NULL
 
static char const * radutmp_file = NULL
 
static struct radutmp_config_t radutmpconfig
 
static int showcid = 0
 
static int showname = -1
 
static int showptype = 0
 

Data Structure Documentation

struct radutmp_config_t

Definition at line 77 of file radwho.c.

Data Fields
char const * radutmp_fn

Function Documentation

static char* dotime ( time_t  t)
static

Definition at line 130 of file radwho.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static char* fullname ( char *  username)
static

Definition at line 89 of file radwho.c.

+ Here is the caller graph for this function:

static char const* hostname ( char *  buf,
size_t  buflen,
uint32_t  ipaddr 
)
static

Definition at line 149 of file radwho.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 193 of file radwho.c.

+ Here is the call graph for this function:

static char const* proto ( int  id,
int  porttype 
)
static

Definition at line 107 of file radwho.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

pid_t rad_fork ( void  )

Definition at line 65 of file radwho.c.

static void NEVER_RETURNS usage ( int  status)
static

Definition at line 165 of file radwho.c.

+ Here is the caller graph for this function:

Variable Documentation

char const* dict_dir = DICTDIR
static

Definition at line 53 of file radwho.c.

char const* eol = "\n"
static

Definition at line 44 of file radwho.c.

char const* hdr1
static
Initial value:
=
"Login Name What TTY When From Location"

Definition at line 38 of file radwho.c.

char const* hdr2
static
Initial value:
=
"Login Port What When From Location"

Definition at line 41 of file radwho.c.

bool log_stripped_names

Definition at line 57 of file radwho.c.

Main server configuration.

Definition at line 62 of file radwho.c.

const CONF_PARSER module_config[]
static
Initial value:
= {
}
#define PW_TYPE_FILE_INPUT
File matching value must exist, and must be readable.
Definition: conffile.h:204
char const * radutmp_fn
Definition: radwho.c:78
#define RADUTMP
Definition: conf.h:12
#define CONF_PARSER_TERMINATOR
Definition: conffile.h:289
static struct radutmp_config_t radutmpconfig
#define FR_CONF_POINTER(_n, _t, _p)
Definition: conffile.h:172

Definition at line 81 of file radwho.c.

char const* progname = "radwho"
static

Definition at line 48 of file radwho.c.

char const* radacct_dir = NULL

Definition at line 55 of file radwho.c.

char const* raddb_dir = RADDBDIR
static

Definition at line 52 of file radwho.c.

char const* radlog_dir = NULL

Definition at line 49 of file radwho.c.

char const* radutmp_file = NULL
static

Definition at line 51 of file radwho.c.

struct radutmp_config_t radutmpconfig
static
int showcid = 0
static

Definition at line 47 of file radwho.c.

int showname = -1
static

Definition at line 45 of file radwho.c.

int showptype = 0
static

Definition at line 46 of file radwho.c.