FD.io VPP  v17.10-9-gd594711
Vector Packet Processing
udp.c File Reference

udp state machine, etc. More...

+ Include dependency graph for udp.c:

Go to the source code of this file.

Functions

u32 udp_session_bind_ip4 (u32 session_index, transport_endpoint_t *lcl)
 
u32 udp_session_bind_ip6 (u32 session_index, transport_endpoint_t *lcl)
 
u32 udp_session_unbind_ip4 (u32 listener_index)
 
u32 udp_session_unbind_ip6 (u32 listener_index)
 
transport_connection_tudp_session_get_listener (u32 listener_index)
 
u32 udp_push_header (transport_connection_t *tconn, vlib_buffer_t *b)
 
transport_connection_tudp_session_get (u32 connection_index, u32 my_thread_index)
 
void udp_session_close (u32 connection_index, u32 my_thread_index)
 
u8format_udp_session_ip4 (u8 *s, va_list *args)
 
u8format_udp_session_ip6 (u8 *s, va_list *args)
 
u8format_udp_listener_session_ip4 (u8 *s, va_list *args)
 
u8format_udp_listener_session_ip6 (u8 *s, va_list *args)
 
u16 udp_send_mss_uri (transport_connection_t *t)
 
u32 udp_send_space_uri (transport_connection_t *t)
 
int udp_open_connection (transport_endpoint_t *tep)
 
static clib_error_tudp_init (vlib_main_t *vm)
 

Variables

udp_uri_main_t udp_uri_main
 
static const transport_proto_vft_t udp4_proto
 
static const transport_proto_vft_t udp6_proto
 

Detailed Description

udp state machine, etc.

Definition in file udp.c.

Function Documentation

u8* format_udp_listener_session_ip4 ( u8 s,
va_list *  args 
)

Definition at line 214 of file udp.c.

+ Here is the call graph for this function:

u8* format_udp_listener_session_ip6 ( u8 s,
va_list *  args 
)

Definition at line 226 of file udp.c.

+ Here is the call graph for this function:

u8* format_udp_session_ip4 ( u8 s,
va_list *  args 
)

Definition at line 185 of file udp.c.

+ Here is the call graph for this function:

u8* format_udp_session_ip6 ( u8 s,
va_list *  args 
)

Definition at line 201 of file udp.c.

+ Here is the call graph for this function:

static clib_error_t* udp_init ( vlib_main_t vm)
static

Definition at line 289 of file udp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int udp_open_connection ( transport_endpoint_t tep)

Definition at line 252 of file udp.c.

u32 udp_push_header ( transport_connection_t tconn,
vlib_buffer_t b 
)

Definition at line 93 of file udp.c.

+ Here is the call graph for this function:

u16 udp_send_mss_uri ( transport_connection_t t)

Definition at line 238 of file udp.c.

u32 udp_send_space_uri ( transport_connection_t t)

Definition at line 245 of file udp.c.

u32 udp_session_bind_ip4 ( u32  session_index,
transport_endpoint_t lcl 
)

Definition at line 28 of file udp.c.

+ Here is the call graph for this function:

u32 udp_session_bind_ip6 ( u32  session_index,
transport_endpoint_t lcl 
)

Definition at line 44 of file udp.c.

+ Here is the call graph for this function:

void udp_session_close ( u32  connection_index,
u32  my_thread_index 
)

Definition at line 178 of file udp.c.

+ Here is the call graph for this function:

transport_connection_t* udp_session_get ( u32  connection_index,
u32  my_thread_index 
)

Definition at line 167 of file udp.c.

+ Here is the call graph for this function:

transport_connection_t* udp_session_get_listener ( u32  listener_index)

Definition at line 84 of file udp.c.

+ Here is the call graph for this function:

u32 udp_session_unbind_ip4 ( u32  listener_index)

Definition at line 59 of file udp.c.

+ Here is the call graph for this function:

u32 udp_session_unbind_ip6 ( u32  listener_index)

Definition at line 71 of file udp.c.

+ Here is the call graph for this function:

Variable Documentation

const transport_proto_vft_t udp4_proto
static
Initial value:
= {
.push_header = udp_push_header,
.get_connection = udp_session_get,
.get_listener = udp_session_get_listener,
.send_mss = udp_send_mss_uri,
.send_space = udp_send_space_uri,
.format_connection = format_udp_session_ip4,
}
int udp_open_connection(transport_endpoint_t *tep)
Definition: udp.c:252
transport_connection_t * udp_session_get_listener(u32 listener_index)
Definition: udp.c:84
u32 udp_send_space_uri(transport_connection_t *t)
Definition: udp.c:245
u8 * format_udp_listener_session_ip4(u8 *s, va_list *args)
Definition: udp.c:214
u16 udp_send_mss_uri(transport_connection_t *t)
Definition: udp.c:238
void udp_session_close(u32 connection_index, u32 my_thread_index)
Definition: udp.c:178
u32 udp_push_header(transport_connection_t *tconn, vlib_buffer_t *b)
Definition: udp.c:93
u32 udp_session_bind_ip4(u32 session_index, transport_endpoint_t *lcl)
Definition: udp.c:28
u8 * format_udp_session_ip4(u8 *s, va_list *args)
Definition: udp.c:185
transport_connection_t * udp_session_get(u32 connection_index, u32 my_thread_index)
Definition: udp.c:167
u32 udp_session_unbind_ip4(u32 listener_index)
Definition: udp.c:59

Definition at line 259 of file udp.c.

const transport_proto_vft_t udp6_proto
static
Initial value:
= {
.push_header = udp_push_header,
.get_connection = udp_session_get,
.get_listener = udp_session_get_listener,
.send_mss = udp_send_mss_uri,
.send_space = udp_send_space_uri,
.format_connection = format_udp_session_ip6,
}
int udp_open_connection(transport_endpoint_t *tep)
Definition: udp.c:252
transport_connection_t * udp_session_get_listener(u32 listener_index)
Definition: udp.c:84
u32 udp_send_space_uri(transport_connection_t *t)
Definition: udp.c:245
u16 udp_send_mss_uri(transport_connection_t *t)
Definition: udp.c:238
u32 udp_session_bind_ip6(u32 session_index, transport_endpoint_t *lcl)
Definition: udp.c:44
void udp_session_close(u32 connection_index, u32 my_thread_index)
Definition: udp.c:178
u8 * format_udp_session_ip6(u8 *s, va_list *args)
Definition: udp.c:201
u32 udp_push_header(transport_connection_t *tconn, vlib_buffer_t *b)
Definition: udp.c:93
u8 * format_udp_listener_session_ip6(u8 *s, va_list *args)
Definition: udp.c:226
transport_connection_t * udp_session_get(u32 connection_index, u32 my_thread_index)
Definition: udp.c:167
u32 udp_session_unbind_ip6(u32 listener_index)
Definition: udp.c:71

Definition at line 273 of file udp.c.

udp_uri_main_t udp_uri_main

Definition at line 25 of file udp.c.