The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Data Structures | Enumerations
rlm_linelog.h File Reference
#include <freeradius-devel/server/base.h>
+ Include dependency graph for rlm_linelog.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  linelog_call_env_t
 
struct  linelog_net_t
 
struct  rlm_linelog_t
 linelog module instance More...
 
struct  rlm_linelog_t.file
 
struct  rlm_linelog_t.syslog
 
struct  rlm_linelog_t.unix_sock
 

Enumerations

enum  linefr_log_dst_t {
  LINELOG_DST_INVALID = 0 ,
  LINELOG_DST_FILE ,
  LINELOG_DST_REQUEST ,
  LINELOG_DST_SYSLOG ,
  LINELOG_DST_UNIX ,
  LINELOG_DST_UDP ,
  LINELOG_DST_TCP ,
  LINELOG_DST_STDOUT ,
  LINELOG_DST_STDERR
}
 

Data Structure Documentation

◆ linelog_call_env_t

struct linelog_call_env_t

Definition at line 91 of file rlm_linelog.h.

+ Collaboration diagram for linelog_call_env_t:
Data Fields
fr_value_box_t * filename File name, if output is to a file.
fr_value_box_t * log_head Header to add to each new log file.
fr_value_box_t * log_ref Path to a CONF_PAIR (to use as the source of log messages).
tmpl_t * log_src Source of log messages.

◆ linelog_net_t

struct linelog_net_t

Definition at line 38 of file rlm_linelog.h.

+ Collaboration diagram for linelog_net_t:
Data Fields
fr_ipaddr_t dst_ipaddr Network server.
uint16_t port Network port.
fr_ipaddr_t src_ipaddr Send requests from a given src_ipaddr.
fr_time_delta_t timeout How long to wait for read/write operations.

◆ rlm_linelog_t

struct rlm_linelog_t

linelog module instance

Definition at line 47 of file rlm_linelog.h.

+ Collaboration diagram for rlm_linelog_t:
Data Fields
CONF_SECTION * cs CONF_SECTION to use as the root for #log_ref lookups.
char const * delimiter Line termination string (usually
).
size_t delimiter_len Length of line termination string.
struct rlm_linelog_t.file file
linefr_log_dst_t log_dst Logging destination.
char const * log_dst_str Logging destination string.
fr_pool_t * pool Connection pool instance.
struct rlm_linelog_t.syslog syslog
linelog_net_t tcp TCP server.
bool triggers Do we do triggers.
linelog_net_t udp UDP server.
struct rlm_linelog_t.unix_sock unix_sock

◆ rlm_linelog_t.file

struct rlm_linelog_t.file

Definition at line 62 of file rlm_linelog.h.

Data Fields
uint32_t buffer_count Max number of entries to buffer before writing.
fr_time_delta_t buffer_delay Max time to wait before flushing buffer.
bool buffer_delay_is_set Whether buffer_delay was explicitly set.
fr_time_delta_t buffer_expiry How long to keep file metadata around without activity.
bool buffer_expiry_is_set Whether buffer_expiry was explicitly set.
bool buffer_write Whether buffering is enabled.
exfile_t * ef Exclusive file access handle.
bool escape Do filename escaping, yes / no.
bool fsync fsync after each write.
gid_t group Resolved gid.
char const * group_str Group to set on new files.
fr_time_delta_t max_idle How long to keep file metadata around without activity.
mode_t permissions Permissions to use when creating new files.

◆ rlm_linelog_t.syslog

struct rlm_linelog_t.syslog

Definition at line 56 of file rlm_linelog.h.

Data Fields
char const * facility Syslog facility string.
int priority Bitwise | of severity and facility.
char const * severity Syslog severity string.

◆ rlm_linelog_t.unix_sock

struct rlm_linelog_t.unix_sock

Definition at line 78 of file rlm_linelog.h.

Data Fields
char const * path Where the UNIX socket lives.
fr_time_delta_t timeout How long to wait for read/write operations.

Enumeration Type Documentation

◆ linefr_log_dst_t

Enumerator
LINELOG_DST_INVALID 
LINELOG_DST_FILE 

Log to a file.

LINELOG_DST_REQUEST 

Log to the request->log.

LINELOG_DST_SYSLOG 

Log to syslog.

LINELOG_DST_UNIX 

Log via Unix socket.

LINELOG_DST_UDP 

Log via UDP.

LINELOG_DST_TCP 

Log via TCP.

LINELOG_DST_STDOUT 

Log to stdout.

LINELOG_DST_STDERR 

Log to stderr.

Definition at line 26 of file rlm_linelog.h.