Module test framework.
More...
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/map_proc.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/rand.h>
#include <freeradius-devel/util/value.h>
#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/util/sbuff.h>
#include <freeradius-devel/io/listen.h>
#include <freeradius-devel/tls/base.h>
#include <freeradius-devel/tls/version.h>
#include <freeradius-devel/unlang/base.h>
#include <freeradius-devel/protocol/freeradius/freeradius.internal.h>
#include <freeradius-devel/radius/radius.h>
Go to the source code of this file.
|
static void | cancel_request (UNUSED fr_event_list_t *el, UNUSED fr_time_t when, void *uctx) |
|
static fr_client_t * | client_alloc (TALLOC_CTX *ctx, char const *ip, char const *name) |
|
static bool | do_xlats (fr_event_list_t *el, request_t *request, char const *filename, FILE *fp) |
|
int | main (int argc, char *argv[]) |
|
static int | map_proc_verify (CONF_SECTION *cs, UNUSED void const *mod_inst, UNUSED void *proc_inst, tmpl_t const *src, UNUSED map_list_t const *maps) |
|
static unlang_action_t | mod_map_proc (rlm_rcode_t *p_result, UNUSED void const *mod_inst, UNUSED void *proc_inst, UNUSED request_t *request, UNUSED fr_value_box_list_t *src, UNUSED map_list_t const *maps) |
|
static void | pair_mutable (fr_pair_t *vp) |
|
static void | print_packet (FILE *fp, fr_packet_t *packet, fr_pair_list_t *list) |
|
static request_t * | request_clone (request_t *old, int number, CONF_SECTION *server_cs) |
|
static request_t * | request_from_file (TALLOC_CTX *ctx, FILE *fp, fr_client_t *client, CONF_SECTION *server_cs) |
|
static request_t * | request_from_internal (TALLOC_CTX *ctx) |
|
static void | too_much_text (fr_sbuff_t *out, ssize_t slen, fr_sbuff_t *line) |
|
static void | usage (main_config_t const *config, int status) |
|
Module test framework.
- Id
- 77df6d1b75938de60756e83fea402f4745cf737f
- Copyright
- 2000-2018 The FreeRADIUS server project
-
2013 Alan DeKok (aland.nosp@m.@fre.nosp@m.eradi.nosp@m.us.o.nosp@m.rg)
-
2018 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
Definition in file unit_test_module.c.
◆ EXIT_WITH_FAILURE
◆ PROTOCOL_NAME
◆ cancel_request()
◆ client_alloc()
static fr_client_t * client_alloc |
( |
TALLOC_CTX * |
ctx, |
|
|
char const * |
ip, |
|
|
char const * |
name |
|
) |
| |
|
static |
◆ do_xlats()
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ map_proc_verify()
◆ mod_map_proc()
◆ pair_mutable()
◆ print_packet()
◆ request_clone()
◆ request_from_file()
◆ request_from_internal()
static request_t * request_from_internal |
( |
TALLOC_CTX * |
ctx | ) |
|
|
static |
◆ too_much_text()
◆ usage()
◆ attr_net
◆ attr_packet_type
◆ dict_freeradius
◆ dict_protocol
◆ filedone
◆ my_debug_lvl
◆ radiusd_version
◆ unit_test_module_dict
Initial value:= {
{ NULL }
}
static fr_dict_t const * dict_freeradius
static fr_dict_t const * dict_protocol
Definition at line 70 of file unit_test_module.c.
◆ unit_test_module_dict_attr
Initial value:= {
{ NULL }
}
@ FR_TYPE_TLV
Contains nested attributes.
@ FR_TYPE_UINT32
32 Bit unsigned integer.
static fr_dict_attr_t const * attr_packet_type
static fr_dict_attr_t const * attr_net
Definition at line 80 of file unit_test_module.c.