FD.io VPP  v17.10-9-gd594711
Vector Packet Processing
main.c File Reference
+ Include dependency graph for main.c:

Go to the source code of this file.

Data Structures

struct  memif_connection_t
 

Macros

#define APP_NAME   "ICMP_Responder"
 
#define IF_NAME   "memif_connection"
 
#define DBG(...)
 
#define INFO(...)
 
#define MAX_MEMIF_BUFS   256
 

Functions

static void print_memif_details ()
 
int on_connect (memif_conn_handle_t conn, void *private_ctx)
 
int on_disconnect (memif_conn_handle_t conn, void *private_ctx)
 
int icmpr_memif_delete ()
 
void print_help ()
 
int icmpr_buffer_alloc (long n, uint16_t qid)
 
int icmpr_tx_burst (uint16_t qid)
 
int icmpr_free ()
 
void icmpr_exit (int sig)
 
int on_interrupt (memif_conn_handle_t conn, void *private_ctx, uint16_t qid)
 
int icmpr_memif_create (int is_master)
 
int main (int argc, char *argv[])
 

Variables

memif_connection_t memif_connection
 
int epfd
 

Macro Definition Documentation

#define APP_NAME   "ICMP_Responder"

Definition at line 50 of file main.c.

#define DBG (   ...)

Definition at line 61 of file main.c.

#define IF_NAME   "memif_connection"

Definition at line 51 of file main.c.

#define INFO (   ...)
Value:
do { \
printf ("INFO: "__VA_ARGS__); \
printf ("\n"); \
} while (0)

Definition at line 64 of file main.c.

#define MAX_MEMIF_BUFS   256

Definition at line 70 of file main.c.

Function Documentation

int icmpr_buffer_alloc ( long  n,
uint16_t  qid 
)

Definition at line 222 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void icmpr_exit ( int  sig)

Definition at line 276 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int icmpr_free ( )

Definition at line 258 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int icmpr_memif_create ( int  is_master)

Definition at line 337 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int icmpr_memif_delete ( )

Definition at line 193 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int icmpr_tx_burst ( uint16_t  qid)

Definition at line 242 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 367 of file main.c.

+ Here is the call graph for this function:

int on_connect ( memif_conn_handle_t  conn,
void *  private_ctx 
)

Definition at line 177 of file main.c.

+ Here is the caller graph for this function:

int on_disconnect ( memif_conn_handle_t  conn,
void *  private_ctx 
)

Definition at line 186 of file main.c.

+ Here is the caller graph for this function:

int on_interrupt ( memif_conn_handle_t  conn,
void *  private_ctx,
uint16_t  qid 
)

Definition at line 287 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void print_help ( )

Definition at line 204 of file main.c.

+ Here is the caller graph for this function:

static void print_memif_details ( )
static

Definition at line 97 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

int epfd

Definition at line 94 of file main.c.

Definition at line 93 of file main.c.