FD.io VPP  v16.06
Vector Packet Processing
ip_frag.c File Reference
+ Include dependency graph for ip_frag.c:

Go to the source code of this file.

Data Structures

struct  ip_frag_trace_t
 

Functions

static u8format_ip_frag_trace (u8 *s, va_list *args)
 
static void ip4_frag_do_fragment (vlib_main_t *vm, u32 pi, u32 **buffer, ip_frag_error_t *error)
 
void ip_frag_set_vnet_buffer (vlib_buffer_t *b, u16 offset, u16 mtu, u8 next_index, u8 flags)
 
static uword ip4_frag (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static void ip6_frag_do_fragment (vlib_main_t *vm, u32 pi, u32 **buffer, ip_frag_error_t *error)
 
static uword ip6_frag (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static u32 running_fragment_id
 
static char * ip4_frag_error_strings []
 
vlib_node_registration_t ip4_frag_node
 (constructor) VLIB_REGISTER_NODE (ip4_frag_node) More...
 
vlib_node_registration_t ip6_frag_node
 (constructor) VLIB_REGISTER_NODE (ip6_frag_node) More...
 

Function Documentation

static u8* format_ip_frag_trace ( u8 s,
va_list *  args 
)
static

Definition at line 35 of file ip_frag.c.

+ Here is the call graph for this function:

static uword ip4_frag ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 158 of file ip_frag.c.

+ Here is the call graph for this function:

static void ip4_frag_do_fragment ( vlib_main_t vm,
u32  pi,
u32 **  buffer,
ip_frag_error_t error 
)
static

Definition at line 48 of file ip_frag.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword ip6_frag ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 356 of file ip_frag.c.

+ Here is the call graph for this function:

static void ip6_frag_do_fragment ( vlib_main_t vm,
u32  pi,
u32 **  buffer,
ip_frag_error_t error 
)
static

Definition at line 249 of file ip_frag.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip_frag_set_vnet_buffer ( vlib_buffer_t b,
u16  offset,
u16  mtu,
u8  next_index,
u8  flags 
)

Definition at line 149 of file ip_frag.c.

+ Here is the caller graph for this function:

Variable Documentation

char* ip4_frag_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ip_frag_error
Definition: ip_frag.h:64

Definition at line 429 of file ip_frag.c.

vlib_node_registration_t ip4_frag_node
Initial value:
= {
.function = ip4_frag,
.vector_size = sizeof (u32),
.format_trace = format_ip_frag_trace,
.n_errors = IP_FRAG_N_ERROR,
.error_strings = ip4_frag_error_strings,
.n_next_nodes = IP4_FRAG_N_NEXT,
.next_nodes = {
[IP4_FRAG_NEXT_IP4_LOOKUP] = "ip4-lookup",
[IP4_FRAG_NEXT_IP6_LOOKUP] = "ip6-lookup",
[IP4_FRAG_NEXT_ICMP_ERROR] = "ip4-icmp-error",
[IP4_FRAG_NEXT_DROP] = "error-drop"
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static u8 * format_ip_frag_trace(u8 *s, va_list *args)
Definition: ip_frag.c:35
static uword ip4_frag(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip_frag.c:158
#define IP4_FRAG_NODE_NAME
Definition: ip_frag.h:43
unsigned int u32
Definition: types.h:88
static char * ip4_frag_error_strings[]
Definition: ip_frag.c:429

(constructor) VLIB_REGISTER_NODE (ip4_frag_node)

Definition at line 435 of file ip_frag.c.

vlib_node_registration_t ip6_frag_node
Initial value:
= {
.function = ip6_frag,
.vector_size = sizeof (u32),
.format_trace = format_ip_frag_trace,
.n_errors = IP_FRAG_N_ERROR,
.error_strings = ip4_frag_error_strings,
.n_next_nodes = IP6_FRAG_N_NEXT,
.next_nodes = {
[IP6_FRAG_NEXT_IP4_LOOKUP] = "ip4-lookup",
[IP6_FRAG_NEXT_IP6_LOOKUP] = "ip6-lookup",
[IP6_FRAG_NEXT_DROP] = "error-drop"
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
#define IP6_FRAG_NODE_NAME
Definition: ip_frag.h:44
static u8 * format_ip_frag_trace(u8 *s, va_list *args)
Definition: ip_frag.c:35
unsigned int u32
Definition: types.h:88
static char * ip4_frag_error_strings[]
Definition: ip_frag.c:429
static uword ip6_frag(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip_frag.c:356

(constructor) VLIB_REGISTER_NODE (ip6_frag_node)

Definition at line 454 of file ip_frag.c.

u32 running_fragment_id
static

Definition at line 45 of file ip_frag.c.