![]() |
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the source code of this file.
Macros | |
#define | SYSLOG_VERSION "1" |
#define | NILVALUE "-" |
#define | DEFAULT_UDP_PORT 514 |
#define | DEFAULT_MAX_MSG_SIZE 480 |
#define | encode_priority(f, p) ((f << 3) | p) |
Variables | |
syslog_main_t | syslog_main |
static vlib_cli_command_t | set_syslog_sender_command |
(constructor) VLIB_CLI_COMMAND (set_syslog_sender_command) More... | |
static vlib_cli_command_t | show_syslog_sender_command |
(constructor) VLIB_CLI_COMMAND (show_syslog_sender_command) More... | |
static vlib_cli_command_t | test_syslog_command |
(constructor) VLIB_CLI_COMMAND (test_syslog_command) More... | |
static vlib_cli_command_t | set_syslog_filter_command |
(constructor) VLIB_CLI_COMMAND (set_syslog_filter_command) More... | |
static vlib_cli_command_t | show_syslog_filter_command |
(constructor) VLIB_CLI_COMMAND (show_syslog_filter_command) More... | |
RFC5424 syslog protocol implementation
Definition in file syslog.c.
|
static |
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 247 of file syslog.c.
|
static |
|
static |
|
static |
|
static |
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 143 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 | ) |
|
static |
|
static |
|
static |
|
static |
(constructor) VLIB_CLI_COMMAND (set_syslog_filter_command)
|
static |
(constructor) VLIB_CLI_COMMAND (set_syslog_sender_command)
|
static |
(constructor) VLIB_CLI_COMMAND (show_syslog_filter_command)
|
static |
(constructor) VLIB_CLI_COMMAND (show_syslog_sender_command)
syslog_main_t syslog_main |
|
static |
(constructor) VLIB_CLI_COMMAND (test_syslog_command)