![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Write plaintext versions of packets to flatfiles. More...
#include <freeradius-devel/server/base.h>#include <freeradius-devel/server/cf_util.h>#include <freeradius-devel/server/exfile.h>#include <freeradius-devel/server/module_rlm.h>#include <freeradius-devel/util/debug.h>#include <freeradius-devel/util/perm.h>#include <ctype.h>#include <fcntl.h>#include <sys/stat.h>
Include dependency graph for rlm_detail.c:Go to the source code of this file.
Data Structures | |
| struct | rlm_detail_env_t |
| struct | rlm_detail_t |
| Instance configuration for rlm_detail. More... | |
Macros | |
| #define | WRITE(fmt, ...) |
Functions | |
| static int | call_env_filename_parse (TALLOC_CTX *ctx, void *out, tmpl_rules_t const *t_rules, CONF_ITEM *ci, call_env_ctx_t const *cec, UNUSED call_env_parser_t const *rule) |
| static int | call_env_suppress_parse (TALLOC_CTX *ctx, call_env_parsed_head_t *out, tmpl_rules_t const *t_rules, CONF_ITEM *ci, UNUSED call_env_ctx_t const *cec, UNUSED call_env_parser_t const *rule) |
| static int8_t | detail_cmp (void const *a, void const *b) |
| static unlang_action_t | detail_do (unlang_result_t *p_result, module_ctx_t const *mctx, request_t *request, fr_packet_t *packet, fr_pair_list_t *list) |
| static void | detail_fr_pair_fprint (TALLOC_CTX *ctx, FILE *out, fr_pair_t const *stacked) |
| static uint32_t | detail_hash (void const *data) |
| static int | detail_recurse (FILE *out, fr_hash_table_t *ht, fr_pair_list_t *list) |
| static int | detail_write (FILE *out, rlm_detail_t const *inst, request_t *request, fr_value_box_t *header, fr_packet_t *packet, fr_pair_list_t *list, fr_hash_table_t *ht) |
| Write a single detail entry to file pointer. | |
| static int | fr_pair_fprint (FILE *fp, fr_pair_t const *vp) |
| Print one attribute and value to FP. | |
| static unlang_action_t | mod_accounting (unlang_result_t *p_result, module_ctx_t const *mctx, request_t *request) |
| static unlang_action_t | mod_authorize (unlang_result_t *p_result, module_ctx_t const *mctx, request_t *request) |
| static int | mod_instantiate (module_inst_ctx_t const *mctx) |
| static unlang_action_t | mod_post_auth (unlang_result_t *p_result, module_ctx_t const *mctx, request_t *request) |
Variables | |
| static fr_dict_attr_t const * | attr_net |
| static fr_dict_attr_t const * | attr_net_dst_address |
| static fr_dict_attr_t const * | attr_net_dst_port |
| static fr_dict_attr_t const * | attr_net_src_address |
| static fr_dict_attr_t const * | attr_net_src_port |
| static fr_dict_t const * | dict_freeradius |
| static fr_dict_t const * | dict_radius |
| static const call_env_method_t | method_env |
| static const conf_parser_t | module_config [] |
| module_rlm_t | rlm_detail |
| fr_dict_autoload_t | rlm_detail_dict [] |
| fr_dict_attr_autoload_t | rlm_detail_dict_attr [] |
Write plaintext versions of packets to flatfiles.
Definition in file rlm_detail.c.
| struct rlm_detail_env_t |
Definition at line 65 of file rlm_detail.c.
Collaboration diagram for rlm_detail_env_t:| Data Fields | ||
|---|---|---|
| fr_value_box_t | filename | File / path to write to. |
| tmpl_t * | filename_tmpl | tmpl used to expand filename (for debug output) |
| fr_value_box_t | header | Header format. |
| fr_hash_table_t * | ht | Holds suppressed attributes. |
| struct rlm_detail_t |
Instance configuration for rlm_detail.
Holds the configuration and preparsed data for a instance of rlm_detail.
Definition at line 49 of file rlm_detail.c.
Collaboration diagram for rlm_detail_t:| Data Fields | ||
|---|---|---|
| exfile_t * | ef | Log file handler. |
| bool | escape | do filename escaping, yes / no |
| gid_t | group | Resolved group. |
| bool | group_is_set | Whether group was set. |
| bool | locking | Whether the file should be locked. |
| bool | log_srcdst | Add IP src/dst attributes to entries. |
| mode_t | perm | Permissions to use for new files. |
| bool | triggers | Do we run triggers. |
|
static |
|
static |
|
static |
|
static |
Definition at line 311 of file rlm_detail.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 176 of file rlm_detail.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 144 of file rlm_detail.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 189 of file rlm_detail.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Write a single detail entry to file pointer.
| [in] | out | Where to write entry. |
| [in] | inst | Instance of rlm_detail. |
| [in] | request | The current request. |
| [in] | header | To print above packet |
| [in] | packet | associated with the request (request, reply...). |
| [in] | list | of pairs to write. |
| [in] | ht | Hash table containing attributes to be suppressed in the output. |
Definition at line 217 of file rlm_detail.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Print one attribute and value to FP.
Complete string with '\t' and '\n' is written to buffer before printing to avoid issues when running with multiple threads.
| fp | to output to. |
| vp | to print. |
Definition at line 126 of file rlm_detail.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 96 of file rlm_detail.c.
|
static |
Definition at line 98 of file rlm_detail.c.
|
static |
Definition at line 100 of file rlm_detail.c.
|
static |
Definition at line 97 of file rlm_detail.c.
|
static |
Definition at line 99 of file rlm_detail.c.
|
static |
Definition at line 86 of file rlm_detail.c.
|
static |
Definition at line 87 of file rlm_detail.c.
|
static |
Definition at line 480 of file rlm_detail.c.
|
static |
Definition at line 76 of file rlm_detail.c.
| module_rlm_t rlm_detail |
Definition at line 494 of file rlm_detail.c.
| fr_dict_autoload_t rlm_detail_dict |
Definition at line 90 of file rlm_detail.c.
| fr_dict_attr_autoload_t rlm_detail_dict_attr |
Definition at line 103 of file rlm_detail.c.
1.9.8