CONTROL master protocol handler.
More...
#include <freeradius-devel/io/listen.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/util/debug.h>
#include "proto_control.h"
Go to the source code of this file.
CONTROL master protocol handler.
- Id
- 02a03b73a0767342f10dac6d38bb9c8c4730f3db
- Copyright
- 2018 Alan DeKok (aland.nosp@m.@fre.nosp@m.eradi.nosp@m.us.o.nosp@m.rg)
Definition in file proto_control.c.
◆ mod_instantiate()
Instantiate the application.
Instantiate I/O and type submodules.
- Returns
- 0 on success.
- -1 on failure.
Definition at line 114 of file proto_control.c.
◆ mod_open()
Open listen sockets/connect to external event source.
- Parameters
-
[in] | instance | Ctx data for this application. |
[in] | sc | to add our file descriptor to. |
[in] | conf | Listen section parsed to give us instance. |
- Returns
- 0 on success.
- -1 on failure.
Definition at line 95 of file proto_control.c.
◆ transport_parse()
static int transport_parse |
( |
TALLOC_CTX * |
ctx, |
|
|
void * |
out, |
|
|
void * |
parent, |
|
|
CONF_ITEM * |
ci, |
|
|
conf_parser_t const * |
rule |
|
) |
| |
|
static |
◆ dict_control
◆ limit_config
Initial value:= {
}
#define CONF_PARSER_TERMINATOR
#define FR_CONF_OFFSET(_name, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
An instance of a proto_control listen section.
Definition at line 33 of file proto_control.c.
◆ proto_control
Initial value:= {
.common = {
.name = "control",
},
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
static conf_parser_t const proto_control_config[]
How to parse a CONTROL listen section.
static int mod_instantiate(module_inst_ctx_t const *mctx)
Instantiate the application.
static int mod_open(void *instance, fr_schedule_t *sc, UNUSED CONF_SECTION *conf)
Open listen sockets/connect to external event source.
static int instantiate(module_inst_ctx_t const *mctx)
Definition at line 178 of file proto_control.c.
◆ proto_control_config
Initial value:= {
}
#define FR_CONF_POINTER(_name, _type, _flags, _res_p)
conf_parser_t which parses a single CONF_PAIR producing a single global result
@ CONF_FLAG_SUBSECTION
Instead of putting the information into a configuration structure, the configuration file routines MA...
#define FR_CONF_OFFSET_TYPE_FLAGS(_name, _type, _flags, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
static conf_parser_t const limit_config[]
static int transport_parse(TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, conf_parser_t const *rule)
How to parse a CONTROL listen section.
Definition at line 53 of file proto_control.c.
◆ proto_control_dict
Initial value:= {
{ NULL }
}
static fr_dict_t const * dict_control
Definition at line 64 of file proto_control.c.