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

Go to the source code of this file.

Macros

#define MAX_COMMANDS   (4)
 

Functions

static int client_socket (char const *server)
 
static ssize_t do_challenge (int sockfd)
 
static int do_connect (int *out, char const *file, char const *server)
 
static ssize_t flush_channels (int sockfd, char *buffer, size_t bufsize)
 
int main (int argc, char **argv)
 
pid_t rad_fork (void)
 
static ssize_t run_command (int sockfd, char const *command, char *buffer, size_t bufsize)
 
static void NEVER_RETURNS usage (int status)
 

Variables

static bool echo = false
 
main_config_t main_config
 Main server configuration. More...
 
static char const * progname = "radmin"
 
static char const * radmin_version
 
static char const * secret = "testing123"
 
static bool unbuffered = false
 

Macro Definition Documentation

#define MAX_COMMANDS   (4)

Definition at line 345 of file radmin.c.

Function Documentation

static int client_socket ( char const *  server)
static

Definition at line 116 of file radmin.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ssize_t do_challenge ( int  sockfd)
static

Definition at line 149 of file radmin.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int do_connect ( int *  out,
char const *  file,
char const *  server 
)
static

Definition at line 259 of file radmin.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ssize_t flush_channels ( int  sockfd,
char *  buffer,
size_t  bufsize 
)
static

Definition at line 187 of file radmin.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 347 of file radmin.c.

+ Here is the call graph for this function:

pid_t rad_fork ( void  )

Definition at line 87 of file radmin.c.

static ssize_t run_command ( int  sockfd,
char const *  command,
char *  buffer,
size_t  bufsize 
)
static

Definition at line 241 of file radmin.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 99 of file radmin.c.

+ Here is the caller graph for this function:

Variable Documentation

bool echo = false
static

Definition at line 82 of file radmin.c.

Main server configuration.

Definition at line 80 of file radmin.c.

char const* progname = "radmin"
static

Definition at line 67 of file radmin.c.

char const* radmin_version
static
Initial value:
= "radmin version " RADIUSD_VERSION_STRING
", built on " __DATE__ " at " __TIME__

Definition at line 68 of file radmin.c.

char const* secret = "testing123"
static

Definition at line 83 of file radmin.c.

bool unbuffered = false
static

Definition at line 84 of file radmin.c.