The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Functions | Variables
radwho.c File Reference
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/cf_parse.h>
#include <freeradius-devel/server/radutmp.h>
#include <freeradius-devel/server/sysutmp.h>
#include <freeradius-devel/util/conf.h>
#include <pwd.h>
#include <sys/stat.h>
#include <ctype.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)
 
static NEVER_RETURNS void usage (int status)
 

Variables

static char const * eol = "\n"
 
static char const * hdr1
 
static char const * hdr2
 
static const conf_parser_t module_config []
 
static char const * progname = "radwho"
 
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

◆ radutmp_config_t

struct radutmp_config_t

Definition at line 55 of file radwho.c.

Data Fields
char const * radutmp_fn

Function Documentation

◆ dotime()

static char* dotime ( time_t  t)
static

Definition at line 108 of file radwho.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fullname()

static char* fullname ( char *  username)
static

Definition at line 67 of file radwho.c.

+ Here is the caller graph for this function:

◆ hostname()

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

Definition at line 133 of file radwho.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 177 of file radwho.c.

◆ proto()

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

Definition at line 85 of file radwho.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ usage()

static NEVER_RETURNS void usage ( int  status)
static

Definition at line 149 of file radwho.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ eol

char const* eol = "\n"
static

Definition at line 47 of file radwho.c.

◆ hdr1

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

Definition at line 41 of file radwho.c.

◆ hdr2

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

Definition at line 44 of file radwho.c.

◆ module_config

const conf_parser_t module_config[]
static
Initial value:
= {
}
#define CONF_PARSER_TERMINATOR
Definition: cf_parse.h:627
#define FR_CONF_POINTER(_name, _type, _flags, _res_p)
conf_parser_t which parses a single CONF_PAIR producing a single global result
Definition: cf_parse.h:310
@ CONF_FLAG_FILE_INPUT
File matching value must exist, and must be readable.
Definition: cf_parse.h:411
@ FR_TYPE_STRING
String of printable characters.
Definition: merged_model.c:83
static struct radutmp_config_t radutmpconfig
char const * radutmp_fn
Definition: radwho.c:56
#define RADUTMP
Definition: conf.h:13

Definition at line 59 of file radwho.c.

◆ progname

char const* progname = "radwho"
static

Definition at line 51 of file radwho.c.

◆ radutmp_file

char const* radutmp_file = NULL
static

Definition at line 53 of file radwho.c.

◆ radutmpconfig

struct radutmp_config_t radutmpconfig
static

◆ showcid

int showcid = 0
static

Definition at line 50 of file radwho.c.

◆ showname

int showname = -1
static

Definition at line 48 of file radwho.c.

◆ showptype

int showptype = 0
static

Definition at line 49 of file radwho.c.