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

Go to the source code of this file.

Data Structures

struct  ip4_input_trace_t
 

Enumerations

enum  ip4_input_next_t {
  IP4_INPUT_NEXT_DROP, IP4_INPUT_NEXT_PUNT, IP4_INPUT_NEXT_LOOKUP, IP4_INPUT_NEXT_LOOKUP_MULTICAST,
  IP4_INPUT_NEXT_ICMP_ERROR, IP4_INPUT_N_NEXT
}
 

Functions

static u8format_ip4_input_trace (u8 *s, va_list *va)
 
always_inline uword ip4_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int verify_checksum)
 
static uword ip4_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword ip4_input_no_checksum (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tip4_init (vlib_main_t *vm)
 

Variables

static char * ip4_error_strings []
 
vlib_node_registration_t ip4_input_node
 (constructor) VLIB_REGISTER_NODE (ip4_input_node) More...
 
vlib_node_registration_t ip4_input_no_checksum_node
 (constructor) VLIB_REGISTER_NODE (ip4_input_no_checksum_node) More...
 

Enumeration Type Documentation

Enumerator
IP4_INPUT_NEXT_DROP 
IP4_INPUT_NEXT_PUNT 
IP4_INPUT_NEXT_LOOKUP 
IP4_INPUT_NEXT_LOOKUP_MULTICAST 
IP4_INPUT_NEXT_ICMP_ERROR 
IP4_INPUT_N_NEXT 

Definition at line 62 of file ip4_input.c.

Function Documentation

static u8* format_ip4_input_trace ( u8 s,
va_list *  va 
)
static

Definition at line 49 of file ip4_input.c.

+ Here is the call graph for this function:

static clib_error_t* ip4_init ( vlib_main_t vm)
static

Definition at line 392 of file ip4_input.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 332 of file ip4_input.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline uword ip4_input_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  verify_checksum 
)

Definition at line 74 of file ip4_input.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 340 of file ip4_input.c.

+ Here is the call graph for this function:

Variable Documentation

char* ip4_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ip4_error
Definition: ip4_error.h:43

Definition at line 347 of file ip4_input.c.

vlib_node_registration_t ip4_input_no_checksum_node
Initial value:
= {
.function = ip4_input_no_checksum,
.name = "ip4-input-no-checksum",
.vector_size = sizeof (u32),
.n_next_nodes = IP4_INPUT_N_NEXT,
.next_nodes = {
[IP4_INPUT_NEXT_DROP] = "error-drop",
[IP4_INPUT_NEXT_PUNT] = "error-punt",
[IP4_INPUT_NEXT_LOOKUP] = "ip4-lookup",
[IP4_INPUT_NEXT_LOOKUP_MULTICAST] = "ip4-lookup-multicast",
[IP4_INPUT_NEXT_ICMP_ERROR] = "ip4-icmp-error",
},
.format_buffer = format_ip4_header,
.format_trace = format_ip4_input_trace,
}
static u8 * format_ip4_input_trace(u8 *s, va_list *va)
Definition: ip4_input.c:49
static uword ip4_input_no_checksum(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip4_input.c:340
format_function_t format_ip4_header
Definition: format.h:78
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (ip4_input_no_checksum_node)

Definition at line 374 of file ip4_input.c.

vlib_node_registration_t ip4_input_node
Initial value:
= {
.function = ip4_input,
.name = "ip4-input",
.vector_size = sizeof (u32),
.n_errors = IP4_N_ERROR,
.error_strings = ip4_error_strings,
.n_next_nodes = IP4_INPUT_N_NEXT,
.next_nodes = {
[IP4_INPUT_NEXT_DROP] = "error-drop",
[IP4_INPUT_NEXT_PUNT] = "error-punt",
[IP4_INPUT_NEXT_LOOKUP] = "ip4-lookup",
[IP4_INPUT_NEXT_LOOKUP_MULTICAST] = "ip4-lookup-multicast",
[IP4_INPUT_NEXT_ICMP_ERROR] = "ip4-icmp-error",
},
.format_buffer = format_ip4_header,
.format_trace = format_ip4_input_trace,
}
static uword ip4_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip4_input.c:332
static char * ip4_error_strings[]
Definition: ip4_input.c:347
static u8 * format_ip4_input_trace(u8 *s, va_list *va)
Definition: ip4_input.c:49
format_function_t format_ip4_header
Definition: format.h:78
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (ip4_input_node)

Definition at line 353 of file ip4_input.c.