|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
25 #define _(sym,string) string,
53 u8 error0 = DSLITE_ERROR_CE_ENCAP;
72 error0 = DSLITE_ERROR_UNSUPPORTED_PROTOCOL;
81 clib_host_to_net_u32 ((6 << 28) + (ip40->
tos << 20));
83 ip60->
protocol = IP_PROTOCOL_IP_IN_IP;
92 && (b0->
flags & VLIB_BUFFER_IS_TRACED)))
102 n_left_to_next, bi0, next0);
107 return frame->n_vectors;
112 .name =
"dslite-ce-encap",
113 .vector_size =
sizeof (
u32),
#define foreach_dslite_error
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
nat44_ei_hairpin_src_next_t next_index
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
static nat_protocol_t ip_proto_to_nat_proto(u8 ip_proto)
Common NAT inline functions.
@ VLIB_NODE_TYPE_INTERNAL
vlib_main_t vlib_node_runtime_t * node
vlib_node_registration_t dslite_ce_encap_node
(constructor) VLIB_REGISTER_NODE (dslite_ce_encap_node)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
ip6_address_t aftr_ip6_addr
@ DSLITE_CE_ENCAP_NEXT_DROP
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
vlib_error_t error
Error code for buffers to be enqueued to error handler.
#define VLIB_NODE_FN(node)
#define VLIB_NODE_FLAG_TRACE
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
@ DSLITE_CE_ENCAP_NEXT_IP6_LOOKUP
struct _vlib_node_registration vlib_node_registration_t
#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.
vlib_put_next_frame(vm, node, next_index, 0)
ip6_address_t b4_ip6_addr
u8 * format_dslite_ce_trace(u8 *s, va_list *args)
void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
dslite_main_t dslite_main
static char * dslite_ce_encap_error_strings[]
#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).
vl_api_fib_path_type_t type
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index,...
VLIB buffer representation.
#define VLIB_REGISTER_NODE(x,...)