FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
udp.h File Reference
+ Include dependency graph for udp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  udp_dst_port_info_t
 
struct  udp_main_t
 

Macros

#define udp_error(n, s)   UDP_ERROR_##n,
 
#define foreach_udp4_dst_port
 
#define foreach_udp6_dst_port
 

Enumerations

enum  udp_error_t { udp_error, udp_error }
 
enum  udp_dst_port_t { foreach_udp6_dst_port }
 
enum  udp6_dst_port_t { foreach_udp6_dst_port }
 
enum  udp_af_t { UDP_IP6 = 0, UDP_IP4, N_UDP_AF }
 

Functions

static udp_dst_port_info_tudp_get_dst_port_info (udp_main_t *um, udp_dst_port_t dst_port, u8 is_ip4)
 
void udp_register_dst_port (vlib_main_t *vm, udp_dst_port_t dst_port, u32 node_index, u8 is_ip4)
 
void udp_punt_unknown (vlib_main_t *vm, u8 is_ip4, u8 is_add)
 
static void ip_udp_fixup_one (vlib_main_t *vm, vlib_buffer_t *b0, u8 is_ip4)
 
static void ip_udp_encap_one (vlib_main_t *vm, vlib_buffer_t *b0, u8 *ec0, word ec_len, u8 is_ip4)
 
static void ip_udp_encap_two (vlib_main_t *vm, vlib_buffer_t *b0, vlib_buffer_t *b1, u8 *ec0, u8 *ec1, word ec_len, u8 is_v4)
 

Variables

format_function_t format_udp_header
 
format_function_t format_udp_rx_trace
 
unformat_function_t unformat_udp_header
 

Macro Definition Documentation

#define foreach_udp4_dst_port
Value:
_ (67, dhcp_to_server) \
_ (68, dhcp_to_client) \
_ (500, ikev2) \
_ (3784, bfd4) \
_ (4341, lisp_gpe) \
_ (4342, lisp_cp) \
_ (4739, ipfix) \
_ (4789, vxlan) \
_ (4789, vxlan6) \
_ (4790, vxlan_gpe) \
_ (6633, vpath_3)

Definition at line 37 of file udp.h.

foreach_udp6_dst_port
Value:
_ (547, dhcpv6_to_server) \
_ (546, dhcpv6_to_client) \
_ (3784, bfd6) \
_ (4341, lisp_gpe6) \
_ (4342, lisp_cp6) \
_ (4790, vxlan6_gpe) \
_ (6633, vpath6_3)

Definition at line 51 of file udp.h.

#define udp_error (   n,
 
)    UDP_ERROR_##n,

Definition at line 31 of file udp.h.

Enumeration Type Documentation

Enumerator
foreach_udp6_dst_port 

Definition at line 67 of file udp.h.

enum udp_af_t
Enumerator
UDP_IP6 
UDP_IP4 
N_UDP_AF 

Definition at line 89 of file udp.h.

Enumerator
foreach_udp6_dst_port 

Definition at line 60 of file udp.h.

Enumerator
udp_error 
udp_error 

Definition at line 29 of file udp.h.

Function Documentation

static void ip_udp_encap_one ( vlib_main_t vm,
vlib_buffer_t b0,
u8 ec0,
word  ec_len,
u8  is_ip4 
)
inlinestatic

Definition at line 181 of file udp.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void ip_udp_encap_two ( vlib_main_t vm,
vlib_buffer_t b0,
vlib_buffer_t b1,
u8 ec0,
u8 ec1,
word  ec_len,
u8  is_v4 
)
inlinestatic

Definition at line 209 of file udp.h.

+ Here is the call graph for this function:

static void ip_udp_fixup_one ( vlib_main_t vm,
vlib_buffer_t b0,
u8  is_ip4 
)
inlinestatic

Definition at line 127 of file udp.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static udp_dst_port_info_t* udp_get_dst_port_info ( udp_main_t um,
udp_dst_port_t  dst_port,
u8  is_ip4 
)
inlinestatic

Definition at line 109 of file udp.h.

+ Here is the caller graph for this function:

void udp_punt_unknown ( vlib_main_t vm,
u8  is_ip4,
u8  is_add 
)

Definition at line 531 of file udp_local.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void udp_register_dst_port ( vlib_main_t vm,
udp_dst_port_t  dst_port,
u32  node_index,
u8  is_ip4 
)

Definition at line 495 of file udp_local.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

format_function_t format_udp_header

Definition at line 115 of file udp.h.

format_function_t format_udp_rx_trace

Definition at line 116 of file udp.h.

unformat_function_t unformat_udp_header

Definition at line 118 of file udp.h.