26 #define foreach_ipsec_if_input_error \ 27 _(RX, "good packets received") 30 #define _(sym,string) string, 36 #define _(sym,str) IPSEC_IF_INPUT_ERROR_##sym, 70 u32 * from, * to_next = 0, next_index;
77 while (n_left_from > 0)
83 while (n_left_from > 0 && n_left_to_next > 0)
91 bi0 = to_next[0] = from[0];
103 (
u64) clib_net_to_host_u32(esp0->
spi);
118 tr->
spi = clib_host_to_net_u32(esp0->
spi);
119 tr->
seq = clib_host_to_net_u32(esp0->
seq);
123 n_left_to_next, bi0, next0);
129 IPSEC_IF_INPUT_ERROR_RX,
137 .name =
"ipsec-if-input",
138 .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)
ipsec_tunnel_if_t * tunnel_interfaces
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
#define foreach_ipsec_if_input_error
u8 * format_ipsec_if_input_trace(u8 *s, va_list *args)
static uword ipsec_if_input_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
uword * ipsec_if_pool_index_by_key
always_inline void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
vlib_node_registration_t ipsec_if_input_node
always_inline int ip4_header_bytes(ip4_header_t *i)
always_inline void * vlib_frame_vector_args(vlib_frame_t *f)
#define pool_elt_at_index(p, i)
always_inline void vlib_node_increment_counter(vlib_main_t *vm, u32 node_index, u32 counter_index, u64 increment)
#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)
static char * ipsec_if_input_error_strings[]
#define VLIB_BUFFER_IS_TRACED
always_inline void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
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.