|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
25 #include <vnet/syslog/syslog.api_enum.h>
26 #include <vnet/syslog/syslog.api_types.h>
28 #define REPLY_MSG_ID_BASE syslog_main.msg_id_base
40 *s = SYSLOG_SEVERITY_EMERGENCY;
43 *s = SYSLOG_SEVERITY_ALERT;
46 *s = SYSLOG_SEVERITY_CRITICAL;
49 *s = SYSLOG_SEVERITY_ERROR;
52 *s = SYSLOG_SEVERITY_WARNING;
55 *s = SYSLOG_SEVERITY_NOTICE;
58 *s = SYSLOG_SEVERITY_INFORMATIONAL;
61 *s = SYSLOG_SEVERITY_DEBUG;
64 rv = VNET_API_ERROR_INVALID_VALUE;
76 case SYSLOG_SEVERITY_EMERGENCY:
79 case SYSLOG_SEVERITY_ALERT:
82 case SYSLOG_SEVERITY_CRITICAL:
85 case SYSLOG_SEVERITY_ERROR:
88 case SYSLOG_SEVERITY_WARNING:
91 case SYSLOG_SEVERITY_NOTICE:
94 case SYSLOG_SEVERITY_INFORMATIONAL:
97 case SYSLOG_SEVERITY_DEBUG:
101 rv = VNET_API_ERROR_INVALID_VALUE;
111 vl_api_syslog_set_sender_reply_t *rmp;
152 vl_api_syslog_set_filter_reply_t *rmp;
182 #include <vnet/syslog/syslog.api.c>
#define REPLY_MACRO2(t, body)
@ SYSLOG_API_SEVERITY_CRIT
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.
#define clib_memcpy(d, s, n)
u32 fib_table_get_table_id(u32 fib_index, fib_protocol_t proto)
Get the Table-ID of the FIB from protocol and index.
ip4_address_t src_address
IPv4 address of sender (source)
u16 collector_port[default=514]
@ SYSLOG_API_SEVERITY_DBG
static int syslog_severity_decode(vl_api_syslog_severity_t v, syslog_severity_t *s)
Get syslog sender configuration reply.
@ SYSLOG_API_SEVERITY_NOTICE
#define REPLY_MSG_ID_BASE
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
@ SYSLOG_API_SEVERITY_EMERG
VLIB_API_INIT_FUNCTION(syslog_api_hookup)
syslog_severity_t severity_filter
severity filter (specified severity and greater match)
vl_api_ip4_address_t src_address
static void vl_api_syslog_set_sender_t_handler(vl_api_syslog_set_sender_t *mp)
vl_api_ip4_address_t collector_address
syslog_main_t syslog_main
u16 collector_port
UDP port number of remote host (destination)
static int syslog_severity_encode(syslog_severity_t v, vl_api_syslog_severity_t *s)
static void setup_message_id_table(api_main_t *am)
vl_api_ip4_address_t collector_address
u32 max_msg_size
message size limit
@ SYSLOG_API_SEVERITY_ERR
@ SYSLOG_API_SEVERITY_WARN
static clib_error_t * syslog_api_hookup(vlib_main_t *vm)
Set syslog sender configuration.
ip4_address_t collector
IPv4 address of remote host (destination)
vl_api_ip4_address_t src_address
static void vl_api_syslog_set_filter_t_handler(vl_api_syslog_set_filter_t *mp)
u32 max_msg_size[default=480]
@ SYSLOG_API_SEVERITY_ALERT
static void vl_api_syslog_get_filter_t_handler(vl_api_syslog_get_filter_t *mp)
vl_api_syslog_severity_t severity
@ SYSLOG_API_SEVERITY_INFO
Get syslog sender configuration.
u32 fib_index
FIB table index.
vl_api_syslog_severity_t severity
static void vl_api_syslog_get_sender_t_handler(vl_api_syslog_get_sender_t *mp)