35 *error = SIXRD_ERROR_SEC_CHECK;
46 u32 n_left_from, *from, next_index, *to_next, n_left_to_next;
53 while (n_left_from > 0) {
57 while (n_left_from > 0 && n_left_to_next > 0) {
60 u8 error0 = SIXRD_ERROR_NONE;
64 u32 sixrd_domain_index0 = ~0;
67 pi0 = to_next[0] = from[0];
81 &sixrd_domain_index0, &error0);
83 error0 = SIXRD_ERROR_BAD_PROTOCOL;
110 #define _(sym,string) string, 118 .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)
static uword ip4_sixrd(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static_always_inline sixrd_domain_t * ip4_sixrd_get_domain(u32 adj_index, ip6_address_t *addr, u32 *sixrd_domain_index, u8 *error)
struct _vlib_node_registration vlib_node_registration_t
static_always_inline u32 sixrd_get_addr(sixrd_domain_t *d, u64 dal)
always_inline void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
static char * sixrd_error_strings[]
#define static_always_inline
#define clib_warning(format, args...)
always_inline void * vlib_frame_vector_args(vlib_frame_t *f)
static vlib_node_registration_t ip4_sixrd_node
(constructor) VLIB_REGISTER_NODE (ip4_sixrd_node)
#define foreach_sixrd_error
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)
vlib_error_t error
Error code for buffers to be enqueued to error handler.
#define VLIB_BUFFER_IS_TRACED
u8 * format_sixrd_trace(u8 *s, va_list *args)
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,...)
always_inline vlib_node_runtime_t * vlib_node_get_runtime(vlib_main_t *vm, u32 node_index)
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_always_inline void ip4_sixrd_sec_check(sixrd_domain_t *d, ip4_address_t sa4, ip6_address_t sa6, u8 *error)