|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
31 #define foreach_nsh_md2_ioam_encap_transit_error \
32 _(ENCAPSULATED, "good packets encapsulated")
35 #define _(sym,string) string,
42 #define _(sym,str) NSH_MD2_IOAM_ENCAP_TRANSIT_IOAM_ERROR_##sym,
59 .arc_name =
"ip4-output",
60 .node_name =
"nsh-md2-ioam-encap-transit",
100 iph_offset =
vnet_buffer (b0)->ip.save_rewrite_length;
111 ((ip0->
protocol == IP_PROTOCOL_UDP) &&
112 (clib_net_to_host_u16 (udp_hdr0->
dst_port) ==
113 UDP_DST_PORT_lisp_gpe)))
119 nsh_base_header_t *nsh_hdr =
120 (nsh_base_header_t *) (lisp_gpe_hdr0 + 1);
155 n_left_to_next, bi0, next0);
168 .name =
"nsh-md2-ioam-encap-transit",
169 .vector_size =
sizeof (
u32),
@ NSH_MD2_IOAM_ENCAP_TRANSIT_IOAM_NEXT_OUTPUT
u8 * format_nsh_node_map_trace(u8 *s, va_list *args)
nat44_ei_hairpin_src_next_t next_index
VNET_FEATURE_INIT(nsh_md2_ioam_encap_transit, static)
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
@ VLIB_NODE_TYPE_INTERNAL
vlib_main_t vlib_node_runtime_t * node
nsh_md2_ioam_encap_transit_next_t
@ LISP_GPE_NEXT_PROTO_NSH
#define foreach_nsh_md2_ioam_encap_transit_error
@ NSH_MD2_IOAM_ENCAP_TRANSIT_IOAM_NEXT_DROP
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
vlib_main_t vlib_node_runtime_t vlib_frame_t * from_frame
static uword nsh_md2_ioam_encap_transit(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
@ NSH_MD2_IOAM_ENCAP_TRANSIT_IOAM_N_NEXT
static void nsh_md2_ioam_encap_decap_ioam_v4_one_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_buffer_t *b0, u32 *next0, u32 drop_node_val, u8 use_adj)
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
nsh_md2_ioam_main_t nsh_md2_ioam_main
vlib_node_registration_t nsh_md2_ioam_encap_transit_node
(constructor) VLIB_REGISTER_NODE (nsh_md2_ioam_encap_transit_node)
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
struct _vlib_node_registration vlib_node_registration_t
ip46_address_t fp_addr
The address type is not deriveable from the fp_addr member.
#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 hash_get_mem(h, key)
vlib_put_next_frame(vm, node, next_index, 0)
LISP-GPE packet header structure.
static char * nsh_md2_ioam_encap_transit_error_strings[]
fib_protocol_t fp_proto
protocol type
@ NSH_MD2_IOAM_ENCAP_TRANSIT_IOAM_N_ERROR
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
#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).
nsh_md2_ioam_encap_transit_error_t
Aggregate type for a prefix.
vl_api_fib_path_type_t type
VLIB buffer representation.
#define VLIB_REGISTER_NODE(x,...)