![]() |
The FreeRADIUS server $Id: a4e7f8c94e8038b7627bcf52356b7ed15955c1d7 $
|
Write plaintext versions of packets to flatfiles. More...
#include <freeradius-devel/server/base.h>#include <freeradius-devel/server/module_rlm.h>#include <freeradius-devel/util/debug.h>#include <freeradius-devel/util/perm.h>#include <fcntl.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, ...) |
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 59 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 43 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 313 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 170 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 138 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 183 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 214 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 120 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 90 of file rlm_detail.c.
|
static |
Definition at line 92 of file rlm_detail.c.
|
static |
Definition at line 94 of file rlm_detail.c.
|
static |
Definition at line 91 of file rlm_detail.c.
|
static |
Definition at line 93 of file rlm_detail.c.
|
static |
Definition at line 80 of file rlm_detail.c.
|
static |
Definition at line 81 of file rlm_detail.c.
|
static |
Definition at line 486 of file rlm_detail.c.
|
static |
Definition at line 70 of file rlm_detail.c.
| module_rlm_t rlm_detail |
Definition at line 500 of file rlm_detail.c.
| fr_dict_autoload_t rlm_detail_dict |
Definition at line 84 of file rlm_detail.c.
| fr_dict_attr_autoload_t rlm_detail_dict_attr |
Definition at line 97 of file rlm_detail.c.
1.9.8