40 #ifndef included_vlib_error_funcs_h 41 #define included_vlib_error_funcs_h 61 ASSERT (counter < n->n_errors);
75 u32 next_buffer_stride,
78 u32 error_node,
u32 error_code);
static void vlib_error_count(vlib_main_t *vm, uword node_index, uword counter, uword increment)
uword vlib_error_drop_buffers(vlib_main_t *vm, vlib_node_runtime_t *node, u32 *buffers, u32 next_buffer_stride, u32 n_buffers, u32 error_next_index, u32 error_node, u32 error_code)
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
elog_event_type_t * error_elog_event_types
vlib_error_main_t error_main
static void elog(elog_main_t *em, elog_event_type_t *type, u32 data)
#define VLIB_ELOG_MAIN_LOOP
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
static void vlib_error_elog_count(vlib_main_t *vm, uword counter, uword increment)
static vlib_node_t * vlib_get_node(vlib_main_t *vm, u32 i)
Get vlib node by index.