FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
vppapiclient.h File Reference
+ Include dependency graph for vppapiclient.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* vac_callback_t) (unsigned char *data, int len)
 
typedef void(* vac_error_callback_t) (void *, unsigned char *, int)
 

Enumerations

enum  vac_errno_t {
  VAC_SVM_QUEUE_SUB_1 = -1, VAC_SVM_QUEUE_SUB_2 = -2, VAC_NOT_CONNECTED = -3, VAC_SHM_NOT_READY = -4,
  VAC_TIMEOUT = -5
}
 

Functions

int vac_connect (char *name, char *chroot_prefix, vac_callback_t cb, int rx_qlen)
 
int vac_disconnect (void)
 
int vac_read (char **data, int *l, unsigned short timeout)
 
int vac_write (char *data, int len)
 
void vac_free (void *msg)
 
int vac_get_msg_index (char *name)
 
int vac_msg_table_size (void)
 
int vac_msg_table_max_index (void)
 
void vac_rx_suspend (void)
 
void vac_rx_resume (void)
 
void vac_set_error_handler (vac_error_callback_t)
 
void vac_mem_init (size_t size)
 

Typedef Documentation

◆ vac_callback_t

typedef void(* vac_callback_t) (unsigned char *data, int len)

Definition at line 30 of file vppapiclient.h.

◆ vac_error_callback_t

typedef void(* vac_error_callback_t) (void *, unsigned char *, int)

Definition at line 31 of file vppapiclient.h.

Enumeration Type Documentation

◆ vac_errno_t

Enumerator
VAC_SVM_QUEUE_SUB_1 
VAC_SVM_QUEUE_SUB_2 
VAC_NOT_CONNECTED 
VAC_SHM_NOT_READY 
VAC_TIMEOUT 

Definition at line 21 of file vppapiclient.h.

Function Documentation

◆ vac_connect()

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

Definition at line 288 of file client.c.

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

◆ vac_disconnect()

int vac_disconnect ( void  )

Definition at line 359 of file client.c.

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

◆ vac_free()

void vac_free ( void *  msg)

Definition at line 120 of file client.c.

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

◆ vac_get_msg_index()

int vac_get_msg_index ( char *  name)

Definition at line 537 of file client.c.

+ Here is the call graph for this function:

◆ vac_mem_init()

void vac_mem_init ( size_t  size)

Definition at line 568 of file client.c.

+ Here is the call graph for this function:

◆ vac_msg_table_max_index()

int vac_msg_table_max_index ( void  )

Definition at line 543 of file client.c.

+ Here is the call graph for this function:

◆ vac_msg_table_size()

int vac_msg_table_size ( void  )

Definition at line 281 of file client.c.

+ Here is the call graph for this function:

◆ vac_read()

int vac_read ( char **  data,
int *  l,
unsigned short  timeout 
)

Definition at line 410 of file client.c.

+ Here is the call graph for this function:

◆ vac_rx_resume()

void vac_rx_resume ( void  )

Definition at line 261 of file client.c.

+ Here is the caller graph for this function:

◆ vac_rx_suspend()

void vac_rx_suspend ( void  )

Definition at line 240 of file client.c.

+ Here is the call graph for this function:

◆ vac_set_error_handler()

void vac_set_error_handler ( vac_error_callback_t  )

Definition at line 558 of file client.c.

+ Here is the call graph for this function:

◆ vac_write()

int vac_write ( char *  data,
int  len 
)

Definition at line 512 of file client.c.

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