The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
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 */
27RCSIDH(radmin_h, "$Id: 3e37f74ef5fb9904217d4d5a722128c3181f288b $")
28
29#include <freeradius-devel/server/command.h>
30#include <freeradius-devel/server/main_config.h>
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36/*
37 * For radmin over TCP.
38 */
39#define FR_RADMIN_PORT 18120
40
42void fr_radmin_stop(void);
43
44int fr_radmin_register(TALLOC_CTX *talloc_ctx, char const *name, void *ctx, fr_cmd_table_t *table);
45int fr_radmin_run(fr_cmd_info_t *info, FILE *fp, FILE *fp_err, char *command, bool read_only);
46void fr_radmin_help(FILE *fp, char const *text);
47void fr_radmin_complete(FILE *fp, const char *text, int start);
48
49#ifdef __cplusplus
50}
51#endif
#define RCSIDH(h, id)
Definition build.h:484
Main server configuration.
Definition main_config.h:51
static const conf_parser_t config[]
Definition base.c:183
void fr_radmin_stop(void)
Definition radmin.c:1101
int fr_radmin_start(main_config_t *config, bool cli)
Definition radmin.c:1064
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
void fr_radmin_complete(FILE *fp, const char *text, int start)
Definition radmin.c:1171
void fr_radmin_help(FILE *fp, char const *text)
Definition radmin.c:1166
int fr_radmin_register(TALLOC_CTX *talloc_ctx, char const *name, void *ctx, fr_cmd_table_t *table)
static char const * name