FD.io VPP  v17.04-9-g99c0734
Vector Packet Processing
builtin_server.c File Reference
+ Include dependency graph for builtin_server.c:

Go to the source code of this file.

Data Structures

struct  builtin_server_main_t
 

Functions

int builtin_session_accept_callback (stream_session_t *s)
 
void builtin_session_disconnect_callback (stream_session_t *s)
 
void builtin_session_reset_callback (stream_session_t *s)
 
int builtin_session_connected_callback (u32 client_index, stream_session_t *s, u8 is_fail)
 
int builtin_add_segment_callback (u32 client_index, const u8 *seg_name, u32 seg_size)
 
int builtin_redirect_connect_callback (u32 client_index, void *mp)
 
int builtin_server_rx_callback (stream_session_t *s, session_fifo_event_t *e)
 
static int server_create (vlib_main_t *vm)
 
static clib_error_tserver_create_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

builtin_server_main_t builtin_server_main
 
static session_cb_vft_t builtin_session_cb_vft
 
static vlib_cli_command_t server_create_command
 (constructor) VLIB_CLI_COMMAND (server_create_command) More...
 

Function Documentation

int builtin_add_segment_callback ( u32  client_index,
const u8 seg_name,
u32  seg_size 
)

Definition at line 69 of file builtin_server.c.

int builtin_redirect_connect_callback ( u32  client_index,
void *  mp 
)

Definition at line 77 of file builtin_server.c.

int builtin_server_rx_callback ( stream_session_t s,
session_fifo_event_t *  e 
)

Definition at line 84 of file builtin_server.c.

+ Here is the call graph for this function:

int builtin_session_accept_callback ( stream_session_t s)

Definition at line 32 of file builtin_server.c.

+ Here is the call graph for this function:

int builtin_session_connected_callback ( u32  client_index,
stream_session_t s,
u8  is_fail 
)

Definition at line 61 of file builtin_server.c.

void builtin_session_disconnect_callback ( stream_session_t s)

Definition at line 44 of file builtin_server.c.

+ Here is the call graph for this function:

void builtin_session_reset_callback ( stream_session_t s)

Definition at line 52 of file builtin_server.c.

+ Here is the call graph for this function:

static int server_create ( vlib_main_t vm)
static

Definition at line 149 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* server_create_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 177 of file builtin_server.c.

+ Here is the call graph for this function:

Variable Documentation

builtin_server_main_t builtin_server_main

Definition at line 28 of file builtin_server.c.

session_cb_vft_t builtin_session_cb_vft
static
Initial value:
= {
.session_accept_callback = builtin_session_accept_callback,
.session_disconnect_callback = builtin_session_disconnect_callback,
.session_connected_callback = builtin_session_connected_callback,
.add_segment_callback = builtin_add_segment_callback,
.redirect_connect_callback = builtin_redirect_connect_callback,
.builtin_server_rx_callback = builtin_server_rx_callback,
.session_reset_callback = builtin_session_reset_callback
}
int builtin_redirect_connect_callback(u32 client_index, void *mp)
void builtin_session_disconnect_callback(stream_session_t *s)
int builtin_add_segment_callback(u32 client_index, const u8 *seg_name, u32 seg_size)
int builtin_session_accept_callback(stream_session_t *s)
int builtin_server_rx_callback(stream_session_t *s, session_fifo_event_t *e)
int builtin_session_connected_callback(u32 client_index, stream_session_t *s, u8 is_fail)
void builtin_session_reset_callback(stream_session_t *s)

Definition at line 138 of file builtin_server.c.

vlib_cli_command_t server_create_command
static
Initial value:
=
{
.path = "test server",
.short_help = "test server",
}
static clib_error_t * server_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (server_create_command)

Definition at line 205 of file builtin_server.c.