FD.io VPP  v19.08-24-ge6a5712
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

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:

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:

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:

int main ( int  argc,
char **  argv 
)

Definition at line 739 of file vcl_test_server.c.

+ Here is the call graph for this function:

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:

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:

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:

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:

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:

static int vts_conn_expect_config ( vcl_test_server_conn_t conn)
static

Definition at line 571 of file vcl_test_server.c.

+ Here is the caller graph for this function:

static int vts_conn_has_ascii ( vcl_test_server_conn_t conn)
inlinestatic

Definition at line 605 of file vcl_test_server.c.

+ Here is the caller graph for this function:

static int vts_conn_read ( vcl_test_server_conn_t conn)
inlinestatic

Definition at line 595 of file vcl_test_server.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static vcl_test_cfg_t* vts_conn_read_config ( vcl_test_server_conn_t conn)
static

Definition at line 581 of file vcl_test_server.c.

+ Here is the caller graph for this function:

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:

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:

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:

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:

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:

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 call graph for this function:

+ Here is the caller graph for this function:

static void* vts_worker_loop ( void *  arg)
static

Definition at line 616 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_test_server_main_t vcl_server_main
static

Definition at line 78 of file vcl_test_server.c.