FD.io VPP  v21.10.1-2-g0a485f517
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

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 50 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 184 of file test.c.

+ Here is the call graph for this function:

◆ test_connect()

static void test_connect ( )
static

Definition at line 68 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 82 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 133 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 61 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 46 of file test.c.

◆ result_ready

volatile u32 result_ready

Definition at line 45 of file test.c.

◆ sigterm_received

volatile int sigterm_received = 0

Definition at line 44 of file test.c.

ntohs
#define ntohs(x)
Definition: af_xdp.bpf.c:29
am
app_main_t * am
Definition: application.c:489