79 u32 n_left_from, * from, * to_next;
97 while (n_left_from > 0)
102 to_next, n_left_to_next);
104 while (n_left_from >= 4 && n_left_to_next >= 2)
109 u32 pi0, sw_if_index0, next0;
110 u32 pi1, sw_if_index1, next1;
111 u8 error0, error1, cast0, cast1;
170 error0 = error1 = IP6_ERROR_NONE;
180 error0 = ip0->
hop_limit <= 1 ? IP6_ERROR_TIME_EXPIRED : error0;
181 error1 = ip1->
hop_limit <= 1 ? IP6_ERROR_TIME_EXPIRED : error1;
184 error0 = p0->
current_length <
sizeof (ip0[0]) ? IP6_ERROR_TOO_SHORT : error0;
185 error1 = p1->
current_length <
sizeof (ip1[0]) ? IP6_ERROR_TOO_SHORT : error1;
189 if (error0 == IP6_ERROR_TIME_EXPIRED) {
191 ICMP6_time_exceeded_ttl_exceeded_in_transit, 0);
199 if (error1 == IP6_ERROR_TIME_EXPIRED) {
201 ICMP6_time_exceeded_ttl_exceeded_in_transit, 0);
212 to_next, n_left_to_next,
213 pi0, pi1, next0, next1);
216 while (n_left_from > 0 && n_left_to_next > 0)
221 u32 pi0, sw_if_index0, next0;
246 error0 = IP6_ERROR_NONE;
255 error0 = ip0->
hop_limit <= 1 ? IP6_ERROR_TIME_EXPIRED : error0;
258 error0 = p0->
current_length <
sizeof (ip0[0]) ? IP6_ERROR_TOO_SHORT : error0;
262 if (error0 == IP6_ERROR_TIME_EXPIRED) {
264 ICMP6_time_exceeded_ttl_exceeded_in_transit, 0);
273 to_next, n_left_to_next,
284 #define _(sym,string) string, 292 .vector_size =
sizeof (
u32),
void vlib_put_next_frame(vlib_main_t *vm, vlib_node_runtime_t *r, u32 next_index, u32 n_vectors_left)
u32 * config_index_by_sw_if_index
always_inline pg_node_t * pg_get_node(uword node_index)
vnet_interface_main_t interface_main
ip_config_main_t rx_config_mains[VNET_N_CAST]
always_inline uword ip6_address_is_multicast(ip6_address_t *a)
always_inline void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
vnet_main_t * vnet_get_main(void)
#define VLIB_INIT_FUNCTION(x)
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
struct ip6_main_t::@108 host_config
always_inline void * vlib_frame_vector_args(vlib_frame_t *f)
void ppp_register_input_protocol(vlib_main_t *vm, ppp_protocol_t protocol, u32 node_index)
void icmp6_error_set_vnet_buffer(vlib_buffer_t *b, u8 type, u8 code, u32 data)
u16 current_length
Nbytes between current data and the end of this buffer.
always_inline void vlib_increment_simple_counter(vlib_simple_counter_main_t *cm, u32 cpu_index, u32 index, u32 increment)
uword os_get_cpu_number(void)
vlib_simple_counter_main_t * sw_if_counters
#define vlib_validate_buffer_enqueue_x2(vm, node, next_index, to_next, n_left_to_next, bi0, bi1, next0, next1)
#define vlib_validate_buffer_enqueue_x1(vm, node, next_index, to_next, n_left_to_next, bi0, next0)
#define vlib_get_next_frame(vm, node, next_index, vectors, n_vectors_left)
vlib_error_t error
Error code for buffers to be enqueued to error handler.
#define CLIB_PREFETCH(addr, size, type)
unformat_function_t * unformat_edit
void hdlc_register_input_protocol(vlib_main_t *vm, hdlc_protocol_t protocol, u32 node_index)
ip_lookup_main_t lookup_main
#define VLIB_NODE_FLAG_TRACE
void ethernet_register_input_type(vlib_main_t *vm, ethernet_type_t type, u32 node_index)
#define vec_elt(v, i)
Get vector value at index i.
void vlib_trace_frame_buffers_only(vlib_main_t *vm, vlib_node_runtime_t *node, u32 *buffers, uword n_buffers, uword next_buffer_stride, uword n_buffer_data_bytes_in_trace)
#define foreach_ip6_error
#define vlib_prefetch_buffer_header(b, type)
Prefetch buffer metadata.
#define VLIB_REGISTER_NODE(x,...)
always_inline vlib_node_runtime_t * vlib_node_get_runtime(vlib_main_t *vm, u32 node_index)
always_inline void * vnet_get_config_data(vnet_config_main_t *cm, u32 *config_index, u32 *next_index, u32 n_data_bytes)
always_inline vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
vnet_config_main_t config_main