FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
builtin_server.c File Reference

udp builtin server More...

+ Include dependency graph for builtin_server.c:

Go to the source code of this file.

Functions

static int builtin_session_create_callback (stream_session_t *s)
 
static void builtin_session_disconnect_callback (stream_session_t *s)
 
static void builtin_session_reset_callback (stream_session_t *s)
 
static int builtin_session_connected_callback (u32 app_index, u32 api_context, stream_session_t *s, u8 is_fail)
 
static int builtin_server_rx_callback (stream_session_t *s)
 
static int attach_builtin_uri_server ()
 
static int bind_builtin_uri_server (u8 *uri)
 
static int unbind_builtin_uri_server (u8 *uri)
 
static clib_error_tbuiltin_server_init (vlib_main_t *vm)
 
static clib_error_tbuiltin_uri_bind_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tbuiltin_uri_unbind_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

u8 ** copy_buffers
 per-worker built-in server copy buffers More...
 
static int app_index = ~0
 
static session_cb_vft_t builtin_server
 
static vlib_cli_command_t builtin_uri_bind_command
 (constructor) VLIB_CLI_COMMAND (builtin_uri_bind_command) More...
 
static vlib_cli_command_t builtin_uri_unbind_command
 (constructor) VLIB_CLI_COMMAND (builtin_uri_unbind_command) More...
 

Detailed Description

udp builtin server

Definition in file builtin_server.c.

Function Documentation

static int attach_builtin_uri_server ( )
static

Definition at line 111 of file builtin_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int bind_builtin_uri_server ( u8 uri)
static

Definition at line 143 of file builtin_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* builtin_server_init ( vlib_main_t vm)
static

Definition at line 173 of file builtin_server.c.

+ Here is the call graph for this function:

static int builtin_server_rx_callback ( stream_session_t s)
static

Definition at line 58 of file builtin_server.c.

+ Here is the call graph for this function:

static int builtin_session_connected_callback ( u32  app_index,
u32  api_context,
stream_session_t s,
u8  is_fail 
)
static

Definition at line 50 of file builtin_server.c.

static int builtin_session_create_callback ( stream_session_t s)
static

Definition at line 29 of file builtin_server.c.

static void builtin_session_disconnect_callback ( stream_session_t s)
static

Definition at line 37 of file builtin_server.c.

+ Here is the call graph for this function:

static void builtin_session_reset_callback ( stream_session_t s)
static

Definition at line 43 of file builtin_server.c.

+ Here is the call graph for this function:

static clib_error_t* builtin_uri_bind_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 187 of file builtin_server.c.

+ Here is the call graph for this function:

static clib_error_t* builtin_uri_unbind_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 234 of file builtin_server.c.

+ Here is the call graph for this function:

static int unbind_builtin_uri_server ( u8 uri)
static

Definition at line 162 of file builtin_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

int app_index = ~0
static

Definition at line 26 of file builtin_server.c.

session_cb_vft_t builtin_server
static
Initial value:
= {
.session_accept_callback = builtin_session_create_callback,
.session_connected_callback = builtin_session_connected_callback,
.session_disconnect_callback = builtin_session_disconnect_callback,
.builtin_server_rx_callback = builtin_server_rx_callback,
.session_reset_callback = builtin_session_reset_callback
}
static int builtin_session_create_callback(stream_session_t *s)
void builtin_session_disconnect_callback(stream_session_t *s)
int builtin_server_rx_callback(stream_session_t *s)
void builtin_session_reset_callback(stream_session_t *s)
int builtin_session_connected_callback(u32 app_index, u32 api_context, stream_session_t *s, u8 is_fail)

Definition at line 101 of file builtin_server.c.

vlib_cli_command_t builtin_uri_bind_command
static
Initial value:
=
{
.path = "builtin uri bind",
.short_help = "builtin uri bind",
}
static clib_error_t * builtin_uri_bind_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (builtin_uri_bind_command)

Definition at line 225 of file builtin_server.c.

vlib_cli_command_t builtin_uri_unbind_command
static
Initial value:
=
{
.path = "builtin uri unbind",
.short_help = "builtin uri unbind",
}
static clib_error_t * builtin_uri_unbind_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (builtin_uri_unbind_command)

Definition at line 270 of file builtin_server.c.

u8** copy_buffers

per-worker built-in server copy buffers

Definition at line 25 of file builtin_server.c.