FD.io VPP  v20.09-64-g4f7b92f0a
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)
 
static void test_stats (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);
#define ntohs(x)
Definition: af_xdp.bpf.c:29

Definition at line 54 of file test.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 40 of file test.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 188 of file test.c.

+ Here is the call graph for this function:

◆ test_connect()

static void test_connect ( )
static

Definition at line 72 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 86 of file test.c.

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

◆ test_stats()

static void test_stats ( void  )
static

Definition at line 137 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 65 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 50 of file test.c.

◆ result_ready

volatile u32 result_ready

Definition at line 49 of file test.c.

◆ sigterm_received

volatile int sigterm_received = 0

Definition at line 48 of file test.c.

◆ vlib_global_main

vlib_main_t vlib_global_main

Definition at line 45 of file test.c.

◆ vlib_mains

vlib_main_t** vlib_mains

Definition at line 46 of file test.c.