|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
52 u32 frag_sent = 0, small_packets = 0;
67 u32 pi0, *frag_from, frag_left;
100 if (
AF_IP4 ==
af && error0 == IP_FRAG_ERROR_DONT_FRAGMENT_SET)
103 p0, ICMP4_destination_unreachable,
104 ICMP4_destination_unreachable_fragmentation_needed_and_dont_fragment_set,
114 if (error0 == IP_FRAG_ERROR_NONE)
131 while (frag_left > 0)
133 while (frag_left > 0 && n_left_to_next > 0)
136 i = to_next[0] = frag_from[0];
156 return frame->n_vectors;
176 .name =
"ip4-pmtu-dpo",
177 .vector_size =
sizeof (
u32),
187 .name =
"ip6-pmtu-dpo",
188 .vector_size =
sizeof (
u32),
#define vec_reset_length(v)
Reset vector length to zero NULL-pointer tolerant.
u16 dpoi_next_node
The next VLIB node to follow.
index_t dpoi_index
the index of objects of that type
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
vlib_node_registration_t ip4_ip_pmtu_dpo_node
(constructor) VLIB_REGISTER_NODE (ip4_ip_pmtu_dpo_node)
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.
vlib_main_t vlib_node_runtime_t * node
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 void vlib_error_count(vlib_main_t *vm, uword node_index, uword counter, uword increment)
static uword vlib_buffer_length_in_chain(vlib_main_t *vm, vlib_buffer_t *b)
Get length in bytes of the buffer chain.
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
vlib_error_t error
Error code for buffers to be enqueued to error handler.
#define VLIB_NODE_FN(node)
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
ip_frag_error_t ip4_frag_do_fragment(vlib_main_t *vm, u32 from_bi, u16 mtu, u16 l2unfragmentablesize, u32 **buffer)
struct _vlib_node_registration vlib_node_registration_t
static_always_inline ip_pmtu_dpo_t * ip_pmtu_dpo_get(index_t index)
static_always_inline void icmp4_error_set_vnet_buffer(vlib_buffer_t *b, u8 type, u8 code, u32 data)
vlib_node_registration_t ip6_ip_pmtu_dpo_node
(constructor) VLIB_REGISTER_NODE (ip6_ip_pmtu_dpo_node)
struct ip_pmtu_trace_t_ ip_pmtu_trace_t
u16 ipm_pmtu
Configured Path Mtu.
dpo_id_t ipm_dpo
Stacked DPO.
#define vec_free(V)
Free vector's memory (no header).
#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.
description fragment has unexpected format
vlib_put_next_frame(vm, node, next_index, 0)
vl_api_address_family_t af
static uword ip_pmtu_dpo_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, ip_address_family_t af)
ip_frag_error_t ip6_frag_do_fragment(vlib_main_t *vm, u32 from_bi, u16 mtu, u16 l2unfragmentablesize, u32 **buffer)
void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
@ IP_FRAG_NEXT_ICMP_ERROR
static void vlib_buffer_free_one(vlib_main_t *vm, u32 buffer_index)
Free one buffer Shorthand to free a single buffer chain.
#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).
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index,...
enum ip_address_family_t_ ip_address_family_t
VLIB buffer representation.
static u8 * format_ip_pmtu_trace(u8 *s, va_list *args)
#define VLIB_REGISTER_NODE(x,...)