37 s =
format (s,
"DNS46_REPLY: pool index %d, disposition %d",
45 #define _(sym,string) string, 61 u32 n_left_from, *from, *to_next;
69 while (n_left_from > 0)
76 while (n_left_from >= 4 && n_left_to_next >= 2)
78 u32 next0 = DNS46_REPLY_NEXT_INTERFACE_OUTPUT;
79 u32 next1 = DNS46_REPLY_NEXT_INTERFACE_OUTPUT;
80 u32 sw_if_index0, sw_if_index1;
101 to_next[0] = bi0 = from[0];
102 to_next[1] = bi1 = from[1];
115 if (b0->
flags & VLIB_BUFFER_IS_TRACED)
119 t->sw_if_index = sw_if_index0;
120 t->next_index = next0;
122 if (b1->
flags & VLIB_BUFFER_IS_TRACED)
126 t->sw_if_index = sw_if_index1;
127 t->next_index = next1;
133 to_next, n_left_to_next,
134 bi0, bi1, next0, next1);
138 while (n_left_from > 0 && n_left_to_next > 0)
144 u32 pool_index0 = ~0;
161 error0 = DNS46_REPLY_ERROR_DISABLED;
165 pool_index0 = clib_host_to_net_u16 (d0->id);
177 error0 = DNS46_REPLY_ERROR_PROCESSED;
183 && (b0->
flags & VLIB_BUFFER_IS_TRACED)))
193 to_next, n_left_to_next,
207 .name =
"dns46_reply",
208 .vector_size =
sizeof (
u32),
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment) ...
vlib_error_t * errors
Vector of errors for this node.
static uword vlib_buffer_length_in_chain(vlib_main_t *vm, vlib_buffer_t *b)
Get length in bytes of the buffer chain.
#define vlib_prefetch_buffer_header(b, type)
Prefetch buffer metadata.
static uword dns46_reply_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u8 * format_dns46_reply_trace(u8 *s, va_list *args)
#define foreach_dns46_reply_error
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
#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.
static char * dns46_reply_error_strings[]
#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 VLIB_REGISTER_NODE(x,...)
#define CLIB_PREFETCH(addr, size, type)
static void vlib_process_signal_event_mt(vlib_main_t *vm, uword node_index, uword type_opaque, uword data)
Signal event to process from any thread.
#define clib_memcpy(a, b, c)
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.
u16 cached_next_index
Next frame index that vector arguments were last enqueued to last time this node ran.
#define DNS_RESOLVER_EVENT_RESOLVED
vlib_node_registration_t dns_resolver_node
(constructor) VLIB_REGISTER_NODE (dns_resolver_node)
static void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
struct _vlib_node_registration vlib_node_registration_t
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
vlib_node_registration_t dns46_reply_node
(constructor) VLIB_REGISTER_NODE (dns46_reply_node)
u16 flags
Copy of main node flags.
#define VLIB_NODE_FLAG_TRACE
#define CLIB_CACHE_LINE_BYTES
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index, VLIB_BUFFER_IS_TRACED: trace this buffer.
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
int is_enabled
enable / disable flag