FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
builtin_proxy.c File Reference
+ Include dependency graph for builtin_proxy.c:

Go to the source code of this file.

Functions

static void delete_proxy_session (stream_session_t *s, int is_active_open)
 
static int server_accept_callback (stream_session_t *s)
 
static void server_disconnect_callback (stream_session_t *s)
 
static void server_reset_callback (stream_session_t *s)
 
static int server_connected_callback (u32 app_index, u32 api_context, stream_session_t *s, u8 is_fail)
 
static int server_add_segment_callback (u32 client_index, const u8 *seg_name, u32 seg_size)
 
static int server_redirect_connect_callback (u32 client_index, void *mp)
 
static int server_rx_callback (stream_session_t *s)
 
static int active_open_connected_callback (u32 app_index, u32 opaque, stream_session_t *s, u8 is_fail)
 
static void active_open_reset_callback (stream_session_t *s)
 
static int active_open_create_callback (stream_session_t *s)
 
static void active_open_disconnect_callback (stream_session_t *s)
 
static int active_open_rx_callback (stream_session_t *s)
 
static void create_api_loopbacks (vlib_main_t *vm)
 
static int server_attach ()
 
static int active_open_attach (void)
 
static int server_listen ()
 
static int server_create (vlib_main_t *vm)
 
static clib_error_tproxy_server_create_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tbuiltin_tcp_proxy_main_init (vlib_main_t *vm)
 

Variables

builtin_proxy_main_t builtin_proxy_main
 
static session_cb_vft_t builtin_session_cb_vft
 
static session_cb_vft_t builtin_clients
 
static vlib_cli_command_t server_create_command
 (constructor) VLIB_CLI_COMMAND (server_create_command) More...
 

Function Documentation

static int active_open_attach ( void  )
static

Definition at line 421 of file builtin_proxy.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int active_open_connected_callback ( u32  app_index,
u32  opaque,
stream_session_t s,
u8  is_fail 
)
static

Definition at line 250 of file builtin_proxy.c.

+ Here is the call graph for this function:

static int active_open_create_callback ( stream_session_t s)
static

Definition at line 318 of file builtin_proxy.c.

static void active_open_disconnect_callback ( stream_session_t s)
static

Definition at line 324 of file builtin_proxy.c.

+ Here is the call graph for this function:

static void active_open_reset_callback ( stream_session_t s)
static

Definition at line 312 of file builtin_proxy.c.

+ Here is the call graph for this function:

static int active_open_rx_callback ( stream_session_t s)
static

Definition at line 330 of file builtin_proxy.c.

+ Here is the call graph for this function:

clib_error_t* builtin_tcp_proxy_main_init ( vlib_main_t vm)

Definition at line 581 of file builtin_proxy.c.

static void create_api_loopbacks ( vlib_main_t vm)
static

Definition at line 367 of file builtin_proxy.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void delete_proxy_session ( stream_session_t s,
int  is_active_open 
)
static

Definition at line 25 of file builtin_proxy.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 520 of file builtin_proxy.c.

+ Here is the call graph for this function:

static int server_accept_callback ( stream_session_t s)
static

Definition at line 109 of file builtin_proxy.c.

+ Here is the call graph for this function:

static int server_add_segment_callback ( u32  client_index,
const u8 seg_name,
u32  seg_size 
)
static

Definition at line 142 of file builtin_proxy.c.

static int server_attach ( )
static

Definition at line 382 of file builtin_proxy.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 134 of file builtin_proxy.c.

static int server_create ( vlib_main_t vm)
static

Definition at line 472 of file builtin_proxy.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void server_disconnect_callback ( stream_session_t s)
static

Definition at line 121 of file builtin_proxy.c.

+ Here is the call graph for this function:

static int server_listen ( )
static

Definition at line 461 of file builtin_proxy.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int server_redirect_connect_callback ( u32  client_index,
void *  mp 
)
static

Definition at line 150 of file builtin_proxy.c.

static void server_reset_callback ( stream_session_t s)
static

Definition at line 127 of file builtin_proxy.c.

+ Here is the call graph for this function:

static int server_rx_callback ( stream_session_t s)
static

Definition at line 157 of file builtin_proxy.c.

+ Here is the call graph for this function:

Variable Documentation

session_cb_vft_t builtin_clients
static
Initial value:
= {
.session_reset_callback = active_open_reset_callback,
.session_connected_callback = active_open_connected_callback,
.session_accept_callback = active_open_create_callback,
.session_disconnect_callback = active_open_disconnect_callback,
.builtin_server_rx_callback = active_open_rx_callback
}
static int active_open_connected_callback(u32 app_index, u32 opaque, stream_session_t *s, u8 is_fail)
static void active_open_disconnect_callback(stream_session_t *s)
static int active_open_create_callback(stream_session_t *s)
static void active_open_reset_callback(stream_session_t *s)
static int active_open_rx_callback(stream_session_t *s)

Definition at line 356 of file builtin_proxy.c.

builtin_proxy_main_t builtin_proxy_main

Definition at line 22 of file builtin_proxy.c.

session_cb_vft_t builtin_session_cb_vft
static
Initial value:
= {
.session_accept_callback = server_accept_callback,
.session_disconnect_callback = server_disconnect_callback,
.session_connected_callback = server_connected_callback,
.add_segment_callback = server_add_segment_callback,
.redirect_connect_callback = server_redirect_connect_callback,
.builtin_server_rx_callback = server_rx_callback,
.session_reset_callback = server_reset_callback
}
static void server_disconnect_callback(stream_session_t *s)
static int server_rx_callback(stream_session_t *s)
static int server_add_segment_callback(u32 client_index, const u8 *seg_name, u32 seg_size)
static void server_reset_callback(stream_session_t *s)
static int server_connected_callback(u32 app_index, u32 api_context, stream_session_t *s, u8 is_fail)
static int server_redirect_connect_callback(u32 client_index, void *mp)
static int server_accept_callback(stream_session_t *s)

Definition at line 239 of file builtin_proxy.c.

vlib_cli_command_t server_create_command
static
Initial value:
=
{
.path = "test proxy server",
.short_help = "test proxy server",
}
static clib_error_t * proxy_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 572 of file builtin_proxy.c.