Write plaintext versions of packets to flatfiles. More...
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/rad_assert.h>
#include <freeradius-devel/detail.h>
#include <freeradius-devel/exfile.h>
#include <ctype.h>
#include <fcntl.h>
#include <sys/stat.h>
Go to the source code of this file.
Data Structures | |
struct | detail_instance |
Instance configuration for rlm_detail. More... | |
Macros | |
#define | DIRLEN 8192 |
Maximum path length. More... | |
#define | WRITE(fmt,...) |
Typedefs | |
typedef struct detail_instance | rlm_detail_t |
Instance configuration for rlm_detail. More... | |
Functions | |
static rlm_rcode_t | CC_HINT (nonnull) |
static int | detail_cmp (void const *a, void const *b) |
static void | detail_fr_pair_fprint (TALLOC_CTX *ctx, FILE *out, VALUE_PAIR const *stacked) |
static uint32_t | detail_hash (void const *data) |
static int | detail_write (FILE *out, rlm_detail_t *inst, REQUEST *request, RADIUS_PACKET *packet, bool compat) |
Write a single detail entry to file pointer. More... | |
static int | mod_detach (void *instance) |
static int | mod_instantiate (CONF_SECTION *conf, void *instance) |
Variables | |
static const CONF_PARSER | module_config [] |
module_t | rlm_detail |
Write plaintext versions of packets to flatfiles.
Definition in file rlm_detail.c.
struct detail_instance |
Instance configuration for rlm_detail.
Holds the configuration and preparsed data for a instance of rlm_detail.
Definition at line 54 of file rlm_detail.c.
Data Fields | ||
---|---|---|
exfile_t * | ef | Log file handler. |
bool | escape | do filename escaping, yes / no |
xlat_escape_t | escape_func | escape function |
char const * | filename | File/path to write to. |
char const * | group | Group to use for new files. |
char const * | header | Header format. |
fr_hash_table_t * | ht | Holds suppressed attributes. |
bool | locking | Whether the file should be locked. |
bool | log_srcdst | Add IP src/dst attributes to entries. |
char const * | name | Instance name. |
uint32_t | perm | Permissions to use for new files. |
#define DIRLEN 8192 |
Maximum path length.
Definition at line 48 of file rlm_detail.c.
#define WRITE | ( | fmt, | |
... | |||
) |
typedef struct detail_instance rlm_detail_t |
Instance configuration for rlm_detail.
Holds the configuration and preparsed data for a instance of rlm_detail.
|
static |
|
static |
|
static |
Definition at line 198 of file rlm_detail.c.
|
static |
Definition at line 97 of file rlm_detail.c.
|
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] | packet | associated with the request (request, reply, proxy-request, proxy-reply...). |
[in] | compat | Write out entry in compatibility mode. |
Definition at line 220 of file rlm_detail.c.
|
static |
|
static |
|
static |
Definition at line 74 of file rlm_detail.c.
module_t rlm_detail |
Definition at line 527 of file rlm_detail.c.