FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
udp_input.c File Reference
+ Include dependency graph for udp_input.c:

Go to the source code of this file.

Data Structures

struct  udp_input_trace_t
 

Macros

#define udp_error(n, s)   s,
 
#define foreach_udp_input_next   _ (DROP, "error-drop")
 

Enumerations

enum  udp_input_next_t { UDP_INPUT_N_NEXT }
 

Functions

static u8format_udp_input_trace (u8 *s, va_list *args)
 
static void udp_input_inc_counter (vlib_main_t *vm, u8 is_ip4, u8 evt, u8 val)
 
static uword udp46_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u8 is_ip4)
 
static uword udp4_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword udp6_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static char * udp_error_strings []
 
vlib_node_registration_t udp4_input_node
 (constructor) VLIB_REGISTER_NODE (udp4_input_node) More...
 
vlib_node_registration_t udp6_input_node
 (constructor) VLIB_REGISTER_NODE (udp6_input_node) More...
 

Macro Definition Documentation

#define foreach_udp_input_next   _ (DROP, "error-drop")

Definition at line 57 of file udp_input.c.

#define udp_error (   n,
 
)    s,

Enumeration Type Documentation

Enumerator
UDP_INPUT_N_NEXT 

Definition at line 60 of file udp_input.c.

Function Documentation

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

Definition at line 46 of file udp_input.c.

+ Here is the call graph for this function:

static uword udp46_input_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
u8  is_ip4 
)
inlinestatic

Definition at line 81 of file udp_input.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 250 of file udp_input.c.

+ Here is the call graph for this function:

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

Definition at line 276 of file udp_input.c.

+ Here is the call graph for this function:

static void udp_input_inc_counter ( vlib_main_t vm,
u8  is_ip4,
u8  evt,
u8  val 
)
inlinestatic

Definition at line 69 of file udp_input.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_node_registration_t udp4_input_node
Initial value:
=
{
.function = udp4_input,
.name = "udp4-input",
.vector_size = sizeof (u32),
.format_trace = format_udp_input_trace,
.error_strings = udp_error_strings,
.n_next_nodes = UDP_INPUT_N_NEXT,
.next_nodes = {
#define _(s, n)
},
}
static uword udp4_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: udp_input.c:250
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static u8 * format_udp_input_trace(u8 *s, va_list *args)
Definition: udp_input.c:46
static char * udp_error_strings[]
Definition: udp_input.c:31
#define foreach_udp_input_next
Definition: udp_input.c:57

(constructor) VLIB_REGISTER_NODE (udp4_input_node)

Definition at line 246 of file udp_input.c.

vlib_node_registration_t udp6_input_node
Initial value:
=
{
.function = udp6_input,
.name = "udp6-input",
.vector_size = sizeof (u32),
.format_trace = format_udp_input_trace,
.error_strings = udp_error_strings,
.n_next_nodes = UDP_INPUT_N_NEXT,
.next_nodes = {
#define _(s, n)
},
}
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static u8 * format_udp_input_trace(u8 *s, va_list *args)
Definition: udp_input.c:46
static char * udp_error_strings[]
Definition: udp_input.c:31
#define foreach_udp_input_next
Definition: udp_input.c:57
static uword udp6_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: udp_input.c:276

(constructor) VLIB_REGISTER_NODE (udp6_input_node)

Definition at line 247 of file udp_input.c.

char* udp_error_strings[]
static
Initial value:
= {
#define udp_error(n,s)
udp_error (NONE, "no error")
udp_error (NO_LISTENER, "no listener for dst port")
udp_error (LENGTH_ERROR, "UDP packets with length errors")
udp_error (PUNT, "no listener punt")
udp_error (ENQUEUED, "UDP packets enqueued")
udp_error (FIFO_FULL, "UDP fifo full")
udp_error (NOT_READY, "UDP connection not ready")
udp_error (LISTENER, "UDP connected session")
udp_error (CREATE_SESSION, "Failed to create UDP session")
udp_error (EVENT_FIFO_FULL, "UDP session event fifo full")
}
for(i=1;i<=collision_buckets;i++)
#define udp_error(n, s)

Definition at line 31 of file udp_input.c.