FD.io VPP  v17.07-30-g839fa73
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, ip46_address_t *ip, u16 port_number_host_byte_order)
 
u32 udp_session_bind_ip6 (u32 session_index, ip46_address_t *ip, u16 port_number_host_byte_order)
 
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 (ip46_address_t *addr, u16 port)
 
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 216 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 228 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 187 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 203 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 291 of file udp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int udp_open_connection ( ip46_address_t *  addr,
u16  port 
)

Definition at line 254 of file udp.c.

u32 udp_push_header ( transport_connection_t tconn,
vlib_buffer_t b 
)

Definition at line 95 of file udp.c.

+ Here is the call graph for this function:

u16 udp_send_mss_uri ( transport_connection_t t)

Definition at line 240 of file udp.c.

u32 udp_send_space_uri ( transport_connection_t t)

Definition at line 247 of file udp.c.

u32 udp_session_bind_ip4 ( u32  session_index,
ip46_address_t *  ip,
u16  port_number_host_byte_order 
)

Definition at line 28 of file udp.c.

+ Here is the call graph for this function:

u32 udp_session_bind_ip6 ( u32  session_index,
ip46_address_t *  ip,
u16  port_number_host_byte_order 
)

Definition at line 45 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 180 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 169 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 86 of file udp.c.

+ Here is the call graph for this function:

u32 udp_session_unbind_ip4 ( u32  listener_index)

Definition at line 61 of file udp.c.

+ Here is the call graph for this function:

u32 udp_session_unbind_ip6 ( u32  listener_index)

Definition at line 73 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,
}
transport_connection_t * udp_session_get_listener(u32 listener_index)
Definition: udp.c:86
u32 udp_send_space_uri(transport_connection_t *t)
Definition: udp.c:247
u32 udp_session_bind_ip4(u32 session_index, ip46_address_t *ip, u16 port_number_host_byte_order)
Definition: udp.c:28
u8 * format_udp_listener_session_ip4(u8 *s, va_list *args)
Definition: udp.c:216
u16 udp_send_mss_uri(transport_connection_t *t)
Definition: udp.c:240
void udp_session_close(u32 connection_index, u32 my_thread_index)
Definition: udp.c:180
u32 udp_push_header(transport_connection_t *tconn, vlib_buffer_t *b)
Definition: udp.c:95
u8 * format_udp_session_ip4(u8 *s, va_list *args)
Definition: udp.c:187
int udp_open_connection(ip46_address_t *addr, u16 port)
Definition: udp.c:254
transport_connection_t * udp_session_get(u32 connection_index, u32 my_thread_index)
Definition: udp.c:169
u32 udp_session_unbind_ip4(u32 listener_index)
Definition: udp.c:61

Definition at line 261 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,
}
transport_connection_t * udp_session_get_listener(u32 listener_index)
Definition: udp.c:86
u32 udp_send_space_uri(transport_connection_t *t)
Definition: udp.c:247
u16 udp_send_mss_uri(transport_connection_t *t)
Definition: udp.c:240
void udp_session_close(u32 connection_index, u32 my_thread_index)
Definition: udp.c:180
u8 * format_udp_session_ip6(u8 *s, va_list *args)
Definition: udp.c:203
u32 udp_push_header(transport_connection_t *tconn, vlib_buffer_t *b)
Definition: udp.c:95
u8 * format_udp_listener_session_ip6(u8 *s, va_list *args)
Definition: udp.c:228
int udp_open_connection(ip46_address_t *addr, u16 port)
Definition: udp.c:254
u32 udp_session_bind_ip6(u32 session_index, ip46_address_t *ip, u16 port_number_host_byte_order)
Definition: udp.c:45
transport_connection_t * udp_session_get(u32 connection_index, u32 my_thread_index)
Definition: udp.c:169
u32 udp_session_unbind_ip6(u32 listener_index)
Definition: udp.c:73

Definition at line 275 of file udp.c.

udp_uri_main_t udp_uri_main

Definition at line 25 of file udp.c.