The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Macros | Functions
radmin.h File Reference

Administration tools. More...

#include <freeradius-devel/server/command.h>
+ Include dependency graph for radmin.h:

Go to the source code of this file.

Macros

#define FR_RADMIN_PORT   18120
 

Functions

void fr_radmin_complete (FILE *fp, const char *text, int start)
 
void fr_radmin_help (FILE *fp, char const *text)
 
int fr_radmin_register (TALLOC_CTX *talloc_ctx, char const *name, void *ctx, fr_cmd_table_t *table)
 
int fr_radmin_run (fr_cmd_info_t *info, FILE *fp, FILE *fp_err, char *command, bool read_only)
 Run a command from an input string. More...
 
int fr_radmin_start (main_config_t *config, bool cli)
 
void fr_radmin_stop (void)
 

Detailed Description

Administration tools.

Id
27d7a7f4febed089d1ef6ba15c4a2df74cc557eb

Definition in file radmin.h.

Macro Definition Documentation

◆ FR_RADMIN_PORT

#define FR_RADMIN_PORT   18120

Definition at line 38 of file radmin.h.

Function Documentation

◆ fr_radmin_complete()

void fr_radmin_complete ( FILE *  fp,
const char *  text,
int  start 
)

Definition at line 1171 of file radmin.c.

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

◆ fr_radmin_help()

void fr_radmin_help ( FILE *  fp,
char const *  text 
)

Definition at line 1166 of file radmin.c.

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

◆ fr_radmin_register()

int fr_radmin_register ( TALLOC_CTX *  talloc_ctx,
char const *  name,
void *  ctx,
fr_cmd_table_t table 
)

◆ fr_radmin_run()

int fr_radmin_run ( fr_cmd_info_t info,
FILE *  fp,
FILE *  fp_err,
char *  str,
bool  read_only 
)

Run a command from an input string.

Parameters
infoused to stor
fpstandard output
fp_errerror output
strthe command to run. Note that this command is mangled in-place!
read_onlypermissions for the administrator trying to run the command.
Returns
  • <0 on error
  • 0 on insufficient arguments to run command
  • 1 for successfully running the command

Definition at line 1135 of file radmin.c.

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

◆ fr_radmin_start()

int fr_radmin_start ( main_config_t config,
bool  cli 
)

Definition at line 1064 of file radmin.c.

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

◆ fr_radmin_stop()

void fr_radmin_stop ( void  )

Definition at line 1101 of file radmin.c.

+ Here is the caller graph for this function: