![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
#include <freeradius-devel/server/base.h>#include <freeradius-devel/server/exfile.h>#include <freeradius-devel/server/module_rlm.h>#include <freeradius-devel/server/tmpl_dcursor.h>#include <freeradius-devel/server/rcode.h>#include <freeradius-devel/server/tmpl.h>#include <freeradius-devel/unlang/call_env.h>#include <freeradius-devel/unlang/tmpl.h>#include <freeradius-devel/unlang/module.h>#include <freeradius-devel/util/debug.h>#include <freeradius-devel/util/iovec.h>#include <freeradius-devel/util/perm.h>#include <freeradius-devel/util/print.h>#include <freeradius-devel/util/value.h>#include <freeradius-devel/util/types.h>#include <freeradius-devel/unlang/xlat_func.h>#include <sys/uio.h>#include "file.h"
Include dependency graph for rlm_linelog.c:Go to the source code of this file.
Data Structures | |
| struct | linelog_conn_t |
| struct | rlm_linelog_rctx_t |
Macros | |
| #define | LINELOG_BOX_ESCAPE |
| #define | VECTOR_INCREMENT 20 |
Functions | |
| static int | _mod_conn_free (linelog_conn_t *conn) |
| 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 | linelog_escape_func (fr_value_box_t *vb, UNUSED void *uctx) |
| Escape unprintable characters. | |
| static void | linelog_hexdump (request_t *request, struct iovec *vector_p, size_t vector_len, char const *msg) |
| static int | linelog_write (rlm_linelog_t const *inst, linelog_call_env_t const *call_env, request_t *request, struct iovec *vector_p, size_t vector_len, bool with_delim) |
| static xlat_action_t | linelog_xlat (TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| static int | mod_bootstrap (module_inst_ctx_t const *mctx) |
| static void * | mod_conn_create (TALLOC_CTX *ctx, void *instance, fr_time_delta_t timeout) |
| static int | mod_detach (module_detach_ctx_t const *mctx) |
| static unlang_action_t | mod_do_linelog (unlang_result_t *p_result, module_ctx_t const *mctx, request_t *request) |
| Write a linelog message. | |
| static unlang_action_t | mod_do_linelog_resume (unlang_result_t *p_result, module_ctx_t const *mctx, request_t *request) |
| static int | mod_instantiate (module_inst_ctx_t const *mctx) |
| static int | mod_thread_instantiate (module_thread_inst_ctx_t const *mctx) |
| Initialise thread specific data strcuture. | |
Variables | |
| static const conf_parser_t | file_config [] |
| static fr_table_num_sorted_t const | linefr_log_dst_table [] |
| static size_t | linefr_log_dst_table_len = NUM_ELEMENTS(linefr_log_dst_table) |
| static const call_env_method_t | linelog_method_env |
| static const call_env_method_t | linelog_xlat_method_env |
| static const conf_parser_t | module_config [] |
| module_rlm_t | rlm_linelog |
| static const conf_parser_t | syslog_config [] |
| static const conf_parser_t | tcp_config [] |
| static const conf_parser_t | udp_config [] |
| static const conf_parser_t | unix_config [] |
| struct linelog_conn_t |
Definition at line 84 of file rlm_linelog.c.
| Data Fields | ||
|---|---|---|
| int | sockfd | File descriptor associated with socket. |
| struct rlm_linelog_rctx_t |
Definition at line 579 of file rlm_linelog.c.
| Data Fields | ||
|---|---|---|
| fr_value_box_list_t | expanded | The result of expanding the fmt tmpl. |
| bool | with_delim | Whether to add a delimiter. |
| #define LINELOG_BOX_ESCAPE |
Definition at line 153 of file rlm_linelog.c.
| #define VECTOR_INCREMENT 20 |
|
static |
Definition at line 189 of file rlm_linelog.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Escape unprintable characters.
\\n.\\r.\<oct><oct><oct>.
| vb | Value box to escape. |
| uctx | unused. |
Definition at line 288 of file rlm_linelog.c.
Here is the call graph for this function:
|
static |
Definition at line 300 of file rlm_linelog.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 310 of file rlm_linelog.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 525 of file rlm_linelog.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Definition at line 197 of file rlm_linelog.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Write a linelog message.
Write a log message to syslog or a flat file.
| [in] | p_result | the result of the module call:
|
| [in] | mctx | module calling context. |
| [in] | request | The current request. |
Definition at line 666 of file rlm_linelog.c.
Here is the call graph for this function:
|
static |
Definition at line 584 of file rlm_linelog.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Initialise thread specific data strcuture.
Definition at line 1078 of file rlm_linelog.c.
Here is the call graph for this function:
|
static |
Definition at line 89 of file rlm_linelog.c.
|
static |
Definition at line 71 of file rlm_linelog.c.
|
static |
Definition at line 82 of file rlm_linelog.c.
|
static |
Definition at line 159 of file rlm_linelog.c.
|
static |
Definition at line 175 of file rlm_linelog.c.
|
static |
Definition at line 126 of file rlm_linelog.c.
| module_rlm_t rlm_linelog |
Definition at line 1094 of file rlm_linelog.c.
|
static |
Definition at line 101 of file rlm_linelog.c.
|
static |
Definition at line 119 of file rlm_linelog.c.
|
static |
Definition at line 112 of file rlm_linelog.c.
|
static |
Definition at line 107 of file rlm_linelog.c.
1.9.8