FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
vcl_test_server.c File Reference
+ Include dependency graph for vcl_test_server.c:

Go to the source code of this file.

Data Structures

struct  vcl_test_server_conn_t
 
struct  vcl_test_server_cfg_t
 
struct  vcl_test_server_worker_t
 
struct  vcl_test_server_main_t
 

Functions

static void conn_pool_expand (vcl_test_server_worker_t *wrk, size_t expand_size)
 
static vcl_test_server_conn_tconn_pool_alloc (vcl_test_server_worker_t *wrk)
 
static void conn_pool_free (vcl_test_server_conn_t *conn)
 
static void sync_config_and_reply (vcl_test_server_conn_t *conn, vcl_test_cfg_t *rx_cfg)
 
static void vts_server_start_stop (vcl_test_server_worker_t *wrk, vcl_test_server_conn_t *conn, vcl_test_cfg_t *rx_cfg)
 
static void vts_server_rx (vcl_test_server_conn_t *conn, int rx_bytes)
 
static void vts_server_echo (vcl_test_server_conn_t *conn, int rx_bytes)
 
static void vts_new_client (vcl_test_server_worker_t *wrk, int listen_fd)
 
static void print_usage_and_exit (void)
 
static void vcl_test_init_endpoint_addr (vcl_test_server_main_t *vsm)
 
static void vcl_test_server_process_opts (vcl_test_server_main_t *vsm, int argc, char **argv)
 
static void vts_clean_connected_listeners (vcl_test_server_worker_t *wrk, int listener_fd)
 
int vts_handle_cfg (vcl_test_server_worker_t *wrk, vcl_test_cfg_t *rx_cfg, vcl_test_server_conn_t *conn, int rx_bytes)
 
static void vts_worker_init (vcl_test_server_worker_t *wrk)
 
static int vts_conn_expect_config (vcl_test_server_conn_t *conn)
 
static vcl_test_cfg_tvts_conn_read_config (vcl_test_server_conn_t *conn)
 
static int vts_conn_read (vcl_test_server_conn_t *conn)
 
static int vts_conn_has_ascii (vcl_test_server_conn_t *conn)
 
static void * vts_worker_loop (void *arg)
 
int main (int argc, char **argv)
 

Variables

static vcl_test_server_main_t vcl_server_main
 

Function Documentation

◆ conn_pool_alloc()

static vcl_test_server_conn_t* conn_pool_alloc ( vcl_test_server_worker_t wrk)
inlinestatic

Definition at line 110 of file vcl_test_server.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ conn_pool_expand()

static void conn_pool_expand ( vcl_test_server_worker_t wrk,
size_t  expand_size 
)
inlinestatic

Definition at line 81 of file vcl_test_server.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ conn_pool_free()

static void conn_pool_free ( vcl_test_server_conn_t conn)
inlinestatic

Definition at line 136 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 743 of file vcl_test_server.c.

+ Here is the call graph for this function:

◆ print_usage_and_exit()

static void print_usage_and_exit ( void  )
static

Definition at line 316 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ sync_config_and_reply()

static void sync_config_and_reply ( vcl_test_server_conn_t conn,
vcl_test_cfg_t rx_cfg 
)
inlinestatic

Definition at line 143 of file vcl_test_server.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vcl_test_init_endpoint_addr()

static void vcl_test_init_endpoint_addr ( vcl_test_server_main_t vsm)
static

Definition at line 331 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ vcl_test_server_process_opts()

static void vcl_test_server_process_opts ( vcl_test_server_main_t vsm,
int  argc,
char **  argv 
)
static

Definition at line 368 of file vcl_test_server.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vts_clean_connected_listeners()

static void vts_clean_connected_listeners ( vcl_test_server_worker_t wrk,
int  listener_fd 
)
static

Definition at line 443 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ vts_conn_expect_config()

static int vts_conn_expect_config ( vcl_test_server_conn_t conn)
static

Definition at line 575 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ vts_conn_has_ascii()

static int vts_conn_has_ascii ( vcl_test_server_conn_t conn)
inlinestatic

Definition at line 609 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ vts_conn_read()

static int vts_conn_read ( vcl_test_server_conn_t conn)
inlinestatic

Definition at line 599 of file vcl_test_server.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vts_conn_read_config()

static vcl_test_cfg_t* vts_conn_read_config ( vcl_test_server_conn_t conn)
static

Definition at line 585 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ vts_handle_cfg()

int vts_handle_cfg ( vcl_test_server_worker_t wrk,
vcl_test_cfg_t rx_cfg,
vcl_test_server_conn_t conn,
int  rx_bytes 
)

Definition at line 456 of file vcl_test_server.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vts_new_client()

static void vts_new_client ( vcl_test_server_worker_t wrk,
int  listen_fd 
)
static

Definition at line 280 of file vcl_test_server.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vts_server_echo()

static void vts_server_echo ( vcl_test_server_conn_t conn,
int  rx_bytes 
)
static

Definition at line 256 of file vcl_test_server.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vts_server_rx()

static void vts_server_rx ( vcl_test_server_conn_t conn,
int  rx_bytes 
)
inlinestatic

Definition at line 227 of file vcl_test_server.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vts_server_start_stop()

static void vts_server_start_stop ( vcl_test_server_worker_t wrk,
vcl_test_server_conn_t conn,
vcl_test_cfg_t rx_cfg 
)
static

Definition at line 160 of file vcl_test_server.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vts_worker_init()

static void vts_worker_init ( vcl_test_server_worker_t wrk)
static

Definition at line 514 of file vcl_test_server.c.

+ Here is the caller graph for this function:

◆ vts_worker_loop()

static void* vts_worker_loop ( void *  arg)
static

Definition at line 620 of file vcl_test_server.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ vcl_server_main

vcl_test_server_main_t vcl_server_main
static

Definition at line 78 of file vcl_test_server.c.