FD.io VPP  v17.10-9-gd594711
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 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 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 94 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 122 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 152 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 42 of file builtin_server.c.

+ Here is the call graph for this function:

static int builtin_session_create_callback ( stream_session_t s)
static

Definition at line 28 of file builtin_server.c.

static void builtin_session_disconnect_callback ( stream_session_t s)
static

Definition at line 36 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 166 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 211 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 141 of file builtin_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

session_cb_vft_t builtin_server
static
Initial value:
= {
.session_accept_callback = builtin_session_create_callback,
.session_disconnect_callback = builtin_session_disconnect_callback,
.builtin_server_rx_callback = builtin_server_rx_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)

Definition at line 86 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 202 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 247 of file builtin_server.c.

u8** copy_buffers

per-worker built-in server copy buffers

Definition at line 25 of file builtin_server.c.