The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
src
lib
server
radmin.h
Go to the documentation of this file.
1
#pragma once
2
/*
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation; either version 2 of the License, or
6
* (at your option) any later version.
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16
*/
17
18
/**
19
* $Id: 3e37f74ef5fb9904217d4d5a722128c3181f288b $
20
*
21
* @file lib/server/radmin.h
22
* @brief Administration tools
23
*
24
* @copyright 2018 The FreeRADIUS server project
25
* @copyright 2018 Alan DeKok (aland@freeradius.org)
26
*/
27
RCSIDH
(radmin_h,
"$Id: 3e37f74ef5fb9904217d4d5a722128c3181f288b $"
)
28
29
#include <freeradius-devel/server/command.h>
30
#include <freeradius-devel/server/main_config.h>
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
36
/*
37
* For radmin over TCP.
38
*/
39
#define FR_RADMIN_PORT 18120
40
41
int
fr_radmin_start
(
main_config_t
*
config
,
bool
cli);
42
void
fr_radmin_stop
(
void
);
43
44
int
fr_radmin_register
(TALLOC_CTX *talloc_ctx,
char
const
*
name
,
void
*ctx,
fr_cmd_table_t
*table);
45
int
fr_radmin_run
(
fr_cmd_info_t
*info, FILE *fp, FILE *fp_err,
char
*command,
bool
read_only);
46
void
fr_radmin_help
(FILE *fp,
char
const
*text);
47
void
fr_radmin_complete
(FILE *fp,
const
char
*text,
int
start);
48
49
#ifdef __cplusplus
50
}
51
#endif
RCSIDH
#define RCSIDH(h, id)
Definition:
build.h:482
fr_cmd_info_t
Definition:
command.h:38
fr_cmd_table_t
Definition:
command.h:51
main_config_s
Main server configuration.
Definition:
main_config.h:51
config
static const conf_parser_t config[]
Definition:
base.c:183
fr_radmin_stop
void fr_radmin_stop(void)
Definition:
radmin.c:1101
fr_radmin_start
int fr_radmin_start(main_config_t *config, bool cli)
Definition:
radmin.c:1064
fr_radmin_run
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.
Definition:
radmin.c:1135
fr_radmin_complete
void fr_radmin_complete(FILE *fp, const char *text, int start)
Definition:
radmin.c:1171
fr_radmin_help
void fr_radmin_help(FILE *fp, char const *text)
Definition:
radmin.c:1166
fr_radmin_register
int fr_radmin_register(TALLOC_CTX *talloc_ctx, char const *name, void *ctx, fr_cmd_table_t *table)
name
static char const * name
Definition:
rlm_redis_ippool_tool.c:156
Generated by
1.9.1