FD.io VPP  v18.10-34-gcce845e
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 56 of file udp_input.c.

#define udp_error (   n,
 
)    s,

Enumeration Type Documentation

Enumerator
UDP_INPUT_N_NEXT 

Definition at line 59 of file udp_input.c.

Function Documentation

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

Definition at line 45 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 80 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 300 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 326 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 68 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:300
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:61
static u8 * format_udp_input_trace(u8 *s, va_list *args)
Definition: udp_input.c:45
static char * udp_error_strings[]
Definition: udp_input.c:30
#define foreach_udp_input_next
Definition: udp_input.c:56

(constructor) VLIB_REGISTER_NODE (udp4_input_node)

Definition at line 307 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)
},
}
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:61
static u8 * format_udp_input_trace(u8 *s, va_list *args)
Definition: udp_input.c:45
static char * udp_error_strings[]
Definition: udp_input.c:30
#define foreach_udp_input_next
Definition: udp_input.c:56
static uword udp6_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: udp_input.c:326

(constructor) VLIB_REGISTER_NODE (udp6_input_node)

Definition at line 333 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)
vl_api_address_t dst
Definition: vxlan_gbp.api:34

Definition at line 30 of file udp_input.c.