FD.io VPP  v19.08.1-401-g8e4ed521a
Vector Packet Processing
test.c File Reference
+ Include dependency graph for test.c:

Go to the source code of this file.

Macros

#define vl_typedefs   /* define message structures */
 
#define M_NOALLOC(T, t)
 

Functions

void wrap_vac_callback (unsigned char *data, int len)
 
static void test_connect ()
 
static void test_messages (void)
 
int main (int argc, char **argv)
 

Variables

vlib_main_t vlib_global_main
 
vlib_main_t ** vlib_mains
 
volatile int sigterm_received = 0
 
volatile u32 result_ready
 
volatile u16 result_msg_id
 

Macro Definition Documentation

◆ M_NOALLOC

#define M_NOALLOC (   T,
 
)
Value:
do { \
result_ready = 0; \
clib_memset (mp, 0, sizeof (*mp)); \
mp->_vl_msg_id = ntohs (VL_API_##T); \
mp->client_index = am->my_client_index; \
} while(0);

Definition at line 55 of file test.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 41 of file test.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 154 of file test.c.

+ Here is the call graph for this function:

◆ test_connect()

static void test_connect ( )
static

Definition at line 74 of file test.c.

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

◆ test_messages()

static void test_messages ( void  )
static

Definition at line 88 of file test.c.

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

◆ wrap_vac_callback()

void wrap_vac_callback ( unsigned char *  data,
int  len 
)

Definition at line 66 of file test.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ result_msg_id

volatile u16 result_msg_id

Definition at line 51 of file test.c.

◆ result_ready

volatile u32 result_ready

Definition at line 50 of file test.c.

◆ sigterm_received

volatile int sigterm_received = 0

Definition at line 49 of file test.c.

◆ vlib_global_main

vlib_main_t vlib_global_main

Definition at line 46 of file test.c.

◆ vlib_mains

vlib_main_t** vlib_mains

Definition at line 47 of file test.c.