FD.io VPP  v19.01.3-6-g70449b9b9
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

◆ foreach_udp_input_next

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

Definition at line 56 of file udp_input.c.

◆ udp_error

#define udp_error (   n,
 
)    s,

Enumeration Type Documentation

◆ udp_input_next_t

Enumerator
UDP_INPUT_N_NEXT 

Definition at line 59 of file udp_input.c.

Function Documentation

◆ format_udp_input_trace()

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:

◆ udp46_input_inline()

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:

◆ udp4_input()

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:

◆ udp6_input()

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:

◆ udp_input_inc_counter()

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

◆ udp4_input_node

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:62
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.

◆ udp6_input_node

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:62
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.

◆ udp_error_strings

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:33

Definition at line 30 of file udp_input.c.