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

Go to the source code of this file.

Data Structures

struct  vac_main_t
 

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_endianfun   /* define message structures */
 

Functions

static void init (void)
 
static void cleanup (void)
 
void vlib_cli_output (struct vlib_main_t *vm, char *fmt,...)
 
void vac_free (void *msg)
 
static void vac_api_handler (void *msg)
 
static void * vac_rx_thread_fn (void *arg)
 
static void * vac_timeout_thread_fn (void *arg)
 
void vac_rx_suspend (void)
 
void vac_rx_resume (void)
 
static uwordvac_msg_table_get_hash (void)
 
int vac_msg_table_size (void)
 
int vac_connect (char *name, char *chroot_prefix, vac_callback_t cb, int rx_qlen)
 
int vac_disconnect (void)
 
static void set_timeout (unsigned short timeout)
 
static void unset_timeout (void)
 
int vac_read (char **p, int *l, u16 timeout)
 
typedef VL_API_PACKED (struct _vl_api_header{u16 _vl_msg_id;u32 client_index;})
 
int vac_write (char *p, int l)
 
int vac_get_msg_index (unsigned char *name)
 
int vac_msg_table_max_index (void)
 
void vac_set_error_handler (vac_error_callback_t cb)
 

Variables

vlib_main_t vlib_global_main
 
vlib_main_t ** vlib_mains
 
vac_main_t vac_main
 
vac_callback_t vac_callback
 
u16 read_timeout = 0
 
bool rx_is_running = false
 

Macro Definition Documentation

#define vl_endianfun   /* define message structures */

Definition at line 50 of file client.c.

#define vl_typedefs   /* define message structures */

Definition at line 46 of file client.c.

Function Documentation

static void cleanup ( void  )
static

Definition at line 90 of file client.c.

+ Here is the caller graph for this function:

static void init ( void  )
static

Definition at line 76 of file client.c.

+ Here is the caller graph for this function:

static void set_timeout ( unsigned short  timeout)
static

Definition at line 363 of file client.c.

+ Here is the caller graph for this function:

static void unset_timeout ( void  )
static

Definition at line 373 of file client.c.

+ Here is the caller graph for this function:

static void vac_api_handler ( void *  msg)
static

Definition at line 118 of file client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vac_connect ( char *  name,
char *  chroot_prefix,
vac_callback_t  cb,
int  rx_qlen 
)

Definition at line 274 of file client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vac_disconnect ( void  )

Definition at line 321 of file client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vac_free ( void *  msg)

Definition at line 112 of file client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vac_get_msg_index ( unsigned char *  name)

Definition at line 500 of file client.c.

+ Here is the call graph for this function:

static uword* vac_msg_table_get_hash ( void  )
static

Definition at line 260 of file client.c.

+ Here is the caller graph for this function:

int vac_msg_table_max_index ( void  )

Definition at line 506 of file client.c.

+ Here is the call graph for this function:

int vac_msg_table_size ( void  )

Definition at line 267 of file client.c.

+ Here is the call graph for this function:

int vac_read ( char **  p,
int *  l,
u16  timeout 
)

Definition at line 382 of file client.c.

+ Here is the call graph for this function:

void vac_rx_resume ( void  )

Definition at line 247 of file client.c.

+ Here is the caller graph for this function:

void vac_rx_suspend ( void  )

Definition at line 226 of file client.c.

+ Here is the call graph for this function:

static void* vac_rx_thread_fn ( void *  arg)
static

Definition at line 133 of file client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vac_set_error_handler ( vac_error_callback_t  cb)

Definition at line 521 of file client.c.

+ Here is the call graph for this function:

static void* vac_timeout_thread_fn ( void *  arg)
static

Definition at line 193 of file client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vac_write ( char *  p,
int  l 
)

Definition at line 476 of file client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

typedef VL_API_PACKED ( struct _vl_api_header{u16 _vl_msg_id;u32 client_index;}  )

Definition at line 464 of file client.c.

void vlib_cli_output ( struct vlib_main_t vm,
char *  fmt,
  ... 
)

Definition at line 106 of file client.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

u16 read_timeout = 0

Definition at line 72 of file client.c.

bool rx_is_running = false

Definition at line 73 of file client.c.

vac_callback_t vac_callback

Definition at line 71 of file client.c.

vac_main_t vac_main

Definition at line 70 of file client.c.

vlib_main_t vlib_global_main

Definition at line 54 of file client.c.

vlib_main_t** vlib_mains

Definition at line 55 of file client.c.