Go to the source code of this file.
|
static void | proxy_cb_fn (void *data, u32 data_len) |
|
static void | proxy_call_main_thread (vnet_connect_args_t *a) |
|
static proxy_session_t * | proxy_get_active_open (proxy_main_t *pm, session_handle_t handle) |
|
static proxy_session_t * | proxy_get_passive_open (proxy_main_t *pm, session_handle_t handle) |
|
static void | proxy_try_close_session (session_t *s, int is_active_open) |
|
static void | proxy_session_free (proxy_session_t *ps) |
|
static void | proxy_try_delete_session (session_t *s, u8 is_active_open) |
|
static int | common_fifo_tuning_callback (session_t *s, svm_fifo_t *f, session_ft_action_t act, u32 bytes) |
|
static int | proxy_accept_callback (session_t *s) |
|
static void | proxy_disconnect_callback (session_t *s) |
|
static void | proxy_reset_callback (session_t *s) |
|
static int | proxy_connected_callback (u32 app_index, u32 api_context, session_t *s, session_error_t err) |
|
static int | proxy_add_segment_callback (u32 client_index, u64 segment_handle) |
|
static int | proxy_rx_callback (session_t *s) |
|
static void | proxy_force_ack (void *handlep) |
|
static int | proxy_tx_callback (session_t *proxy_s) |
|
static void | proxy_cleanup_callback (session_t *s, session_cleanup_ntf_t ntf) |
|
static int | active_open_connected_callback (u32 app_index, u32 opaque, session_t *s, session_error_t err) |
|
static void | active_open_reset_callback (session_t *s) |
|
static int | active_open_create_callback (session_t *s) |
|
static void | active_open_disconnect_callback (session_t *s) |
|
static int | active_open_rx_callback (session_t *s) |
|
static int | active_open_tx_callback (session_t *ao_s) |
|
static void | active_open_cleanup_callback (session_t *s, session_cleanup_ntf_t ntf) |
|
static int | proxy_server_attach () |
|
static int | active_open_attach (void) |
|
static int | proxy_server_listen () |
|
static int | proxy_server_create (vlib_main_t *vm) |
|
static clib_error_t * | proxy_server_create_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
clib_error_t * | proxy_main_init (vlib_main_t *vm) |
|
◆ TCP_MSS
◆ active_open_attach()
static int active_open_attach |
( |
void |
| ) |
|
|
static |
◆ active_open_cleanup_callback()
◆ active_open_connected_callback()
◆ active_open_create_callback()
static int active_open_create_callback |
( |
session_t * |
s | ) |
|
|
static |
◆ active_open_disconnect_callback()
static void active_open_disconnect_callback |
( |
session_t * |
s | ) |
|
|
static |
◆ active_open_reset_callback()
static void active_open_reset_callback |
( |
session_t * |
s | ) |
|
|
static |
◆ active_open_rx_callback()
static int active_open_rx_callback |
( |
session_t * |
s | ) |
|
|
static |
◆ active_open_tx_callback()
static int active_open_tx_callback |
( |
session_t * |
ao_s | ) |
|
|
static |
◆ common_fifo_tuning_callback()
◆ proxy_accept_callback()
static int proxy_accept_callback |
( |
session_t * |
s | ) |
|
|
static |
◆ proxy_add_segment_callback()
static int proxy_add_segment_callback |
( |
u32 |
client_index, |
|
|
u64 |
segment_handle |
|
) |
| |
|
static |
◆ proxy_call_main_thread()
◆ proxy_cb_fn()
static void proxy_cb_fn |
( |
void * |
data, |
|
|
u32 |
data_len |
|
) |
| |
|
static |
◆ proxy_cleanup_callback()
◆ proxy_connected_callback()
◆ proxy_disconnect_callback()
static void proxy_disconnect_callback |
( |
session_t * |
s | ) |
|
|
static |
◆ proxy_force_ack()
static void proxy_force_ack |
( |
void * |
handlep | ) |
|
|
static |
◆ proxy_get_active_open()
◆ proxy_get_passive_open()
◆ proxy_main_init()
◆ proxy_reset_callback()
static void proxy_reset_callback |
( |
session_t * |
s | ) |
|
|
static |
◆ proxy_rx_callback()
static int proxy_rx_callback |
( |
session_t * |
s | ) |
|
|
static |
◆ proxy_server_attach()
static int proxy_server_attach |
( |
| ) |
|
|
static |
◆ proxy_server_create()
◆ proxy_server_create_command_fn()
◆ proxy_server_listen()
static int proxy_server_listen |
( |
| ) |
|
|
static |
◆ proxy_session_free()
◆ proxy_try_close_session()
static void proxy_try_close_session |
( |
session_t * |
s, |
|
|
int |
is_active_open |
|
) |
| |
|
static |
◆ proxy_try_delete_session()
static void proxy_try_delete_session |
( |
session_t * |
s, |
|
|
u8 |
is_active_open |
|
) |
| |
|
static |
◆ proxy_tx_callback()
static int proxy_tx_callback |
( |
session_t * |
proxy_s | ) |
|
|
static |
◆ active_open_clients
Initial value:= {
}
static int active_open_rx_callback(session_t *s)
static int active_open_create_callback(session_t *s)
static int common_fifo_tuning_callback(session_t *s, svm_fifo_t *f, session_ft_action_t act, u32 bytes)
static void active_open_disconnect_callback(session_t *s)
static int active_open_connected_callback(u32 app_index, u32 opaque, session_t *s, session_error_t err)
static void active_open_reset_callback(session_t *s)
static int active_open_tx_callback(session_t *ao_s)
static void active_open_cleanup_callback(session_t *s, session_cleanup_ntf_t ntf)
Definition at line 603 of file proxy.c.
◆ proxy_create_command
Initial value:=
{
.path = "test proxy server",
.short_help = "test proxy server [server-uri <tcp://ip/port>]"
"[client-uri <tcp://ip/port>][fifo-size <nn>[k|m]]"
"[max-fifo-size <nn>[k|m]][high-watermark <nn>]"
"[low-watermark <nn>][rcv-buf-size <nn>][prealloc-fifos <nn>]"
"[private-segment-size <mem>][private-segment-count <nn>]",
}
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 (proxy_create_command)
Definition at line 837 of file proxy.c.
◆ proxy_main
◆ proxy_session_cb_vft
Initial value:= {
}
static int proxy_accept_callback(session_t *s)
static void proxy_reset_callback(session_t *s)
static int proxy_connected_callback(u32 app_index, u32 api_context, session_t *s, session_error_t err)
static int proxy_tx_callback(session_t *proxy_s)
static int common_fifo_tuning_callback(session_t *s, svm_fifo_t *f, session_ft_action_t act, u32 bytes)
static int proxy_rx_callback(session_t *s)
static void proxy_disconnect_callback(session_t *s)
static int proxy_add_segment_callback(u32 client_index, u64 segment_handle)
static void proxy_cleanup_callback(session_t *s, session_cleanup_ntf_t ntf)
Definition at line 417 of file proxy.c.