FD.io VPP  v18.01.2-1-g9b554f3
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

udp_connection_tudp_connection_alloc (u32 thread_index)
 
void udp_connection_free (udp_connection_t *uc)
 
u32 udp_session_bind (u32 session_index, transport_endpoint_t *lcl)
 
u32 udp_session_unbind (u32 listener_index)
 
transport_connection_tudp_session_get_listener (u32 listener_index)
 
u32 udp_push_header (transport_connection_t *tc, vlib_buffer_t *b)
 
transport_connection_tudp_session_get (u32 connection_index, u32 thread_index)
 
void udp_session_close (u32 connection_index, u32 thread_index)
 
void udp_session_cleanup (u32 connection_index, u32 thread_index)
 
u8format_udp_connection_id (u8 *s, va_list *args)
 
u8format_udp_connection (u8 *s, va_list *args)
 
u8format_udp_session (u8 *s, va_list *args)
 
u8format_udp_half_open_session (u8 *s, va_list *args)
 
u8format_udp_listener_session (u8 *s, va_list *args)
 
u16 udp_send_mss (transport_connection_t *t)
 
u32 udp_send_space (transport_connection_t *t)
 
int udp_open_connection (transport_endpoint_t *rmt)
 
transport_connection_tudp_half_open_session_get_transport (u32 conn_index)
 
static clib_error_tudp_init (vlib_main_t *vm)
 

Variables

static const transport_proto_vft_t udp_proto
 

Detailed Description

udp state machine, etc.

Definition in file udp.c.

Function Documentation

u8* format_udp_connection ( u8 s,
va_list *  args 
)

Definition at line 203 of file udp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_udp_connection_id ( u8 s,
va_list *  args 
)

Definition at line 184 of file udp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_udp_half_open_session ( u8 s,
va_list *  args 
)

Definition at line 233 of file udp.c.

u8* format_udp_listener_session ( u8 s,
va_list *  args 
)

Definition at line 240 of file udp.c.

+ Here is the call graph for this function:

u8* format_udp_session ( u8 s,
va_list *  args 
)

Definition at line 221 of file udp.c.

+ Here is the call graph for this function:

udp_connection_t* udp_connection_alloc ( u32  thread_index)

Definition at line 26 of file udp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void udp_connection_free ( udp_connection_t uc)

Definition at line 56 of file udp.c.

+ Here is the caller graph for this function:

transport_connection_t* udp_half_open_session_get_transport ( u32  conn_index)

Definition at line 302 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 329 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 rmt)

Definition at line 262 of file udp.c.

+ Here is the call graph for this function:

u32 udp_push_header ( transport_connection_t tc,
vlib_buffer_t b 
)

Definition at line 124 of file udp.c.

+ Here is the call graph for this function:

u16 udp_send_mss ( transport_connection_t t)

Definition at line 248 of file udp.c.

u32 udp_send_space ( transport_connection_t t)

Definition at line 255 of file udp.c.

u32 udp_session_bind ( u32  session_index,
transport_endpoint_t lcl 
)

Definition at line 64 of file udp.c.

+ Here is the call graph for this function:

void udp_session_cleanup ( u32  connection_index,
u32  thread_index 
)

Definition at line 175 of file udp.c.

+ Here is the call graph for this function:

void udp_session_close ( u32  connection_index,
u32  thread_index 
)

Definition at line 160 of file udp.c.

+ Here is the call graph for this function:

transport_connection_t* udp_session_get ( u32  connection_index,
u32  thread_index 
)

Definition at line 150 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 115 of file udp.c.

+ Here is the call graph for this function:

u32 udp_session_unbind ( u32  listener_index)

Definition at line 103 of file udp.c.

+ Here is the call graph for this function:

Variable Documentation

const transport_proto_vft_t udp_proto
static
Initial value:
= {
.unbind = udp_session_unbind,
.push_header = udp_push_header,
.get_connection = udp_session_get,
.get_listener = udp_session_get_listener,
.cleanup = udp_session_cleanup,
.send_mss = udp_send_mss,
.send_space = udp_send_space,
.format_connection = format_udp_session,
.format_half_open = format_udp_half_open_session,
.format_listener = format_udp_listener_session
}
void udp_session_cleanup(u32 connection_index, u32 thread_index)
Definition: udp.c:175
u8 * format_udp_session(u8 *s, va_list *args)
Definition: udp.c:221
transport_connection_t * udp_session_get_listener(u32 listener_index)
Definition: udp.c:115
u32 udp_push_header(transport_connection_t *tc, vlib_buffer_t *b)
Definition: udp.c:124
u32 udp_session_bind(u32 session_index, transport_endpoint_t *lcl)
Definition: udp.c:64
u32 udp_session_unbind(u32 listener_index)
Definition: udp.c:103
u16 udp_send_mss(transport_connection_t *t)
Definition: udp.c:248
int udp_open_connection(transport_endpoint_t *rmt)
Definition: udp.c:262
transport_connection_t * udp_half_open_session_get_transport(u32 conn_index)
Definition: udp.c:302
void udp_session_close(u32 connection_index, u32 thread_index)
Definition: udp.c:160
u8 * format_udp_half_open_session(u8 *s, va_list *args)
Definition: udp.c:233
transport_connection_t * udp_session_get(u32 connection_index, u32 thread_index)
Definition: udp.c:150
u32 udp_send_space(transport_connection_t *t)
Definition: udp.c:255
u8 * format_udp_listener_session(u8 *s, va_list *args)
Definition: udp.c:240

Definition at line 310 of file udp.c.