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.
|
static int | mod_bootstrap (module_inst_ctx_t const *mctx) |
| Bootstrap the application. More...
|
|
static int | mod_instantiate (module_inst_ctx_t const *mctx) |
| Instantiate the application. More...
|
|
static int | mod_open (void *instance, fr_schedule_t *sc, UNUSED CONF_SECTION *conf) |
| Open listen sockets/connect to external event source. More...
|
|
static int | transport_parse (TALLOC_CTX *ctx, void *out, UNUSED void *parent, CONF_ITEM *ci, conf_parser_t const *rule) |
|
static int | transport_parse (TALLOC_CTX *ctx, void *out, UNUSED void *parent, CONF_ITEM *ci, UNUSED conf_parser_t const *rule) |
| Wrapper around dl_instance. More...
|
|
CONTROL master protocol handler.
- Id
- 42644eff2d460f5b67eb615c260158e51dfc4001
- 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_bootstrap()
Bootstrap the application.
Bootstrap I/O and type submodules.
- Returns
- 0 on success.
- -1 on failure.
Definition at line 181 of 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 146 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 127 of file proto_control.c.
◆ transport_parse() [1/2]
◆ transport_parse() [2/2]
Wrapper around dl_instance.
- Parameters
-
[in] | ctx | to allocate data in (instance of proto_control). |
[out] | out | Where to write a dl_module_inst_t containing the module handle and instance. |
[in] | parent | Base structure address. |
[in] | ci | CONF_PAIR specifying the name of the type module. |
[in] | rule | unused. |
- Returns
- 0 on success.
- -1 on failure.
Definition at line 79 of file proto_control.c.
◆ 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 32 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_bootstrap(module_inst_ctx_t const *mctx)
Bootstrap the application.
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 226 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, UNUSED void *parent, CONF_ITEM *ci, conf_parser_t const *rule)
How to parse a CONTROL listen section.
Definition at line 52 of file proto_control.c.
◆ proto_control_dict
Initial value:= {
{ NULL }
}
static fr_dict_t const * dict_control
Definition at line 63 of file proto_control.c.