RADIUS master protocol handler.
More...
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/server/virtual_servers.h>
#include <freeradius-devel/server/packet.h>
#include <freeradius-devel/util/debug.h>
#include "proto_arp.h"
Go to the source code of this file.
RADIUS master protocol handler.
- Id
- 714962d09bfaa9026ded2101fef0c2f7dc817d1c
- Copyright
- 2017 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
-
2016 Alan DeKok (aland.nosp@m.@fre.nosp@m.eradi.nosp@m.us.o.nosp@m.rg)
Definition in file proto_arp.c.
◆ mod_decode()
◆ mod_encode()
◆ mod_instantiate()
Instantiate the application.
Instantiate I/O and type submodules.
- Returns
- 0 on success.
- -1 on failure.
Definition at line 224 of file proto_arp.c.
◆ mod_load()
static int mod_load |
( |
void |
| ) |
|
|
static |
◆ 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 161 of file proto_arp.c.
◆ mod_unload()
static void mod_unload |
( |
void |
| ) |
|
|
static |
◆ dict_arp
◆ proto_arp
Initial value:= {
.common = {
.name = "arp",
},
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
static int mod_load(void)
static ssize_t mod_encode(void const *instance, request_t *request, uint8_t *buffer, size_t buffer_len)
static void mod_unload(void)
static conf_parser_t const proto_arp_config[]
How to parse an ARP listen section.
static fr_dict_t const * dict_arp
static int mod_decode(UNUSED void const *instance, request_t *request, uint8_t *const data, size_t data_len)
Decode the packet.
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 257 of file proto_arp.c.
◆ proto_arp_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
How to parse an ARP listen section.
Definition at line 36 of file proto_arp.c.
◆ proto_arp_dict
◆ zeros