79 u32 n_left_from, *from, *to_next;
98 while (n_left_from > 0)
104 while (n_left_from >= 4 && n_left_to_next >= 2)
108 u32 pi0, sw_if_index0, next0 = 0;
109 u32 pi1, sw_if_index1, next1 = 0;
110 u8 error0, error1, arc0, arc1;
161 error0 = error1 = IP6_ERROR_NONE;
165 (clib_net_to_host_u32
167 6 ? IP6_ERROR_VERSION : error0;
169 (clib_net_to_host_u32
171 6 ? IP6_ERROR_VERSION : error1;
177 error0 = ip0->
hop_limit < 1 ? IP6_ERROR_TIME_EXPIRED : error0;
178 error1 = ip1->
hop_limit < 1 ? IP6_ERROR_TIME_EXPIRED : error1;
183 sizeof (ip0[0]) ? IP6_ERROR_TOO_SHORT : error0;
186 sizeof (ip1[0]) ? IP6_ERROR_TOO_SHORT : error1;
190 if (error0 == IP6_ERROR_TIME_EXPIRED)
193 ICMP6_time_exceeded_ttl_exceeded_in_transit,
204 if (error1 == IP6_ERROR_TIME_EXPIRED)
207 ICMP6_time_exceeded_ttl_exceeded_in_transit,
221 to_next, n_left_to_next,
222 pi0, pi1, next0, next1);
225 while (n_left_from > 0 && n_left_to_next > 0)
229 u32 pi0, sw_if_index0, next0 = 0;
250 error0 = IP6_ERROR_NONE;
254 (clib_net_to_host_u32
256 6 ? IP6_ERROR_VERSION : error0;
262 error0 = ip0->
hop_limit < 1 ? IP6_ERROR_TIME_EXPIRED : error0;
267 sizeof (ip0[0]) ? IP6_ERROR_TOO_SHORT : error0;
271 if (error0 == IP6_ERROR_TIME_EXPIRED)
274 ICMP6_time_exceeded_ttl_exceeded_in_transit,
286 to_next, n_left_to_next,
297 #define _(sym,string) string, 306 .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)
Release pointer to next frame vector data.
static void vlib_increment_simple_counter(vlib_simple_counter_main_t *cm, u32 cpu_index, u32 index, u32 increment)
Increment a simple counter.
vnet_interface_main_t interface_main
u8 mcast_feature_arc_index
Feature arc indices.
struct ip6_main_t::@169 host_config
static pg_node_t * pg_get_node(uword node_index)
vnet_main_t * vnet_get_main(void)
#define VLIB_INIT_FUNCTION(x)
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
A collection of simple counters.
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.
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)
Finish enqueueing two buffers forward in the graph.
#define vlib_validate_buffer_enqueue_x1(vm, node, next_index, to_next, n_left_to_next, bi0, next0)
Finish enqueueing one buffer forward in the graph.
#define vlib_get_next_frame(vm, node, next_index, vectors, n_vectors_left)
Get pointer to next frame vector data by (vlib_node_runtime_t, next_index).
vlib_error_t error
Error code for buffers to be enqueued to error handler.
#define CLIB_PREFETCH(addr, size, type)
static vlib_node_runtime_t * vlib_node_get_runtime(vlib_main_t *vm, u32 node_index)
Get node runtime by node index.
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)
u8 ucast_feature_arc_index
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)
static uword ip6_address_is_multicast(ip6_address_t *a)
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
#define foreach_ip6_error
#define vlib_prefetch_buffer_header(b, type)
Prefetch buffer metadata.
#define VLIB_NODE_FUNCTION_MULTIARCH(node, fn)
#define VLIB_REGISTER_NODE(x,...)
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
static_always_inline void vnet_feature_arc_start(u8 arc, u32 sw_if_index, u32 *next0, vlib_buffer_t *b0)