37 #define _(sym,string) string, 61 u32 n_left_from, * from;
67 while (n_left_from > 0)
107 .vector_size =
sizeof (
u32),
130 f64 poll_time_remaining;
131 uword event_type, * event_data = 0;
157 poll_time_remaining = 10.0 ;
160 poll_time_remaining =
164 switch (event_type) {
173 _vec_len (event_data) = 0;
178 poll_time_remaining = 10.0;
191 .name =
"cdp-process",
always_inline uword vlib_process_get_events(vlib_main_t *vm, uword **data_vector)
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static uword cdp_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
always_inline uword vlib_process_suspend_time_is_zero(f64 dt)
struct _vlib_node_registration vlib_node_registration_t
u32 cdp_process_node_index
always_inline void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
vlib_node_registration_t cdp_input_node
(constructor) VLIB_REGISTER_NODE (cdp_input_node)
#define clib_warning(format, args...)
always_inline void * vlib_frame_vector_args(vlib_frame_t *f)
#define foreach_cdp_error
u16 current_length
Nbytes between current data and the end of this buffer.
always_inline f64 vlib_process_wait_for_event_or_clock(vlib_main_t *vm, f64 dt)
static char * cdp_error_strings[]
vlib_error_t error
Error code for buffers to be enqueued to error handler.
void vnet_cdp_node_reference(void)
void cdp_periodic(vlib_main_t *vm)
#define clib_memcpy(a, b, c)
void hdlc_register_input_protocol(vlib_main_t *vm, hdlc_protocol_t protocol, u32 node_index)
static vlib_node_registration_t cdp_process_node
(constructor) VLIB_REGISTER_NODE (cdp_process_node)
#define VLIB_BUFFER_IS_TRACED
void ethernet_register_input_type(vlib_main_t *vm, ethernet_type_t type, u32 node_index)
always_inline void vlib_set_next_frame_buffer(vlib_main_t *vm, vlib_node_runtime_t *node, u32 next_index, u32 buffer_index)
always_inline void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
#define VLIB_REGISTER_NODE(x,...)
u32 flags
buffer flags: VLIB_BUFFER_IS_TRACED: trace this buffer.
always_inline vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
static uword cdp_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
void snap_register_input_protocol(vlib_main_t *vm, char *name, u32 ieee_oui, u16 protocol, u32 node_index)