FD.io VPP  v19.04.4-rc0-5-ge88582fac
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

◆ APP_NAME

#define APP_NAME   "ICMP_Responder"

Definition at line 50 of file main.c.

◆ DBG

#define DBG (   ...)

Definition at line 61 of file main.c.

◆ IF_NAME

#define IF_NAME   "memif_connection"

Definition at line 51 of file main.c.

◆ INFO

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

Definition at line 64 of file main.c.

◆ MAX_MEMIF_BUFS

#define MAX_MEMIF_BUFS   256

Definition at line 70 of file main.c.

Function Documentation

◆ icmpr_buffer_alloc()

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:

◆ icmpr_exit()

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:

◆ icmpr_free()

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:

◆ icmpr_memif_create()

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:

◆ icmpr_memif_delete()

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:

◆ icmpr_tx_burst()

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:

◆ main()

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

Definition at line 366 of file main.c.

+ Here is the call graph for this function:

◆ on_connect()

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:

◆ on_disconnect()

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:

◆ on_interrupt()

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:

◆ print_help()

void print_help ( )

Definition at line 204 of file main.c.

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

◆ print_memif_details()

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

◆ epfd

int epfd

Definition at line 94 of file main.c.

◆ memif_connection

Definition at line 93 of file main.c.