FD.io VPP
v19.04.1-1-ge4a0f9f
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | syslog_header_t |
syslog header More... | |
struct | syslog_msg_t |
syslog message More... | |
struct | syslog_main_t |
Macros | |
#define | foreach_syslog_facility |
#define | foreach_syslog_severity |
Enumerations | |
enum | syslog_facility_t { foreach_syslog_facility } |
enum | syslog_severity_t { foreach_syslog_severity } |
Functions | |
void | syslog_msg_init (syslog_msg_t *syslog_msg, syslog_facility_t facility, syslog_severity_t severity, char *app_name, char *msgid) |
Initialize syslog message header. More... | |
void | syslog_msg_sd_init (syslog_msg_t *syslog_msg, char *sd_id) |
Initialize structured data element. More... | |
void | syslog_msg_add_sd_param (syslog_msg_t *syslog_msg, char *name, char *fmt,...) |
Add structured data elemnt parameter name-value pair RFC5424 6.3.3. More... | |
void | syslog_msg_add_msg (syslog_msg_t *syslog_msg, char *fmt,...) |
Add free-form message RFC5424 6.4. More... | |
int | syslog_msg_send (syslog_msg_t *syslog_msg) |
Send syslog message. More... | |
vnet_api_error_t | set_syslog_sender (ip4_address_t *collector, u16 collector_port, ip4_address_t *src, u32 vrf_id, u32 max_msg_size) |
Set syslog sender configuration. More... | |
static int | syslog_is_enabled (void) |
Check if syslog logging is enabled. More... | |
static int | syslog_severity_filter_block (syslog_severity_t s) |
Severity filter test. More... | |
Variables | |
syslog_main_t | syslog_main |
#define foreach_syslog_facility |
#define foreach_syslog_severity |
enum syslog_facility_t |
enum syslog_severity_t |
vnet_api_error_t set_syslog_sender | ( | ip4_address_t * | collector, |
u16 | collector_port, | ||
ip4_address_t * | src, | ||
u32 | vrf_id, | ||
u32 | max_msg_size | ||
) |
Set syslog sender configuration.
collector | IPv4 address of syslog collector (destination) |
collector_port | UDP port of syslog colector (destination) |
src | IPv4 address of syslog sender (source) |
vrf_id | VRF/FIB table ID |
max_msg_size | maximum message length |
Definition at line 248 of file syslog.c.
|
inlinestatic |
void syslog_msg_add_msg | ( | syslog_msg_t * | syslog_msg, |
char * | fmt, | ||
... | |||
) |
void syslog_msg_add_sd_param | ( | syslog_msg_t * | syslog_msg, |
char * | name, | ||
char * | fmt, | ||
... | |||
) |
void syslog_msg_init | ( | syslog_msg_t * | syslog_msg, |
syslog_facility_t | facility, | ||
syslog_severity_t | severity, | ||
char * | app_name, | ||
char * | msgid | ||
) |
Initialize syslog message header.
facility | facility value |
severity | severity level |
app_name | application that originated message RFC424 6.2.5. (optional) |
msgid | identify the type of message RFC5424 6.2.7. (optional) |
Definition at line 142 of file syslog.c.
void syslog_msg_sd_init | ( | syslog_msg_t * | syslog_msg, |
char * | sd_id | ||
) |
int syslog_msg_send | ( | syslog_msg_t * | syslog_msg | ) |
|
inlinestatic |
syslog_main_t syslog_main |