FD.io VPP
v17.10-9-gd594711
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | memif_thread_data_t |
struct | memif_connection_t |
Macros | |
#define | APP_NAME "ICMP_Responder" |
#define | IF_NAME "memif_connection" |
#define | DBG(...) |
#define | INFO(...) |
#define | MAX_MEMIF_BUFS 256 |
#define | MAX_CONNS 50 |
#define | MAX_QUEUES 2 |
#define | MAX_THREADS ((MAX_CONNS) * (MAX_QUEUES)) |
Functions | |
void | user_signal_handler (int sig) |
static void | print_memif_details () |
int | add_epoll_fd (int epfd, int fd, uint32_t events) |
int | mod_epoll_fd (int epfd, int fd, uint32_t events) |
int | del_epoll_fd (int epfd, int fd) |
void * | memif_rx_poll (void *ptr) |
void * | memif_rx_interrupt (void *ptr) |
int | on_connect (memif_conn_handle_t conn, void *private_ctx) |
int | on_disconnect (memif_conn_handle_t conn, void *private_ctx) |
int | control_fd_update (int fd, uint8_t events) |
int | icmpr_memif_create (long index) |
int | icmpr_memif_delete (long index) |
void | print_help () |
int | icmpr_free () |
int | icmpr_set_ip (long index, char *ip) |
int | user_input_handler () |
int | poll_event (int timeout) |
int | main () |
Variables | |
int | main_epfd |
memif_connection_t | memif_connection [MAX_CONNS] |
long | ctx [MAX_CONNS] |
memif_thread_data_t | thread_data [MAX_THREADS] |
pthread_t | thread [MAX_THREADS] |
#define INFO | ( | ... | ) |
#define MAX_THREADS ((MAX_CONNS) * (MAX_QUEUES)) |
int control_fd_update | ( | int | fd, |
uint8_t | events | ||
) |
int icmpr_memif_create | ( | long | index | ) |
int icmpr_memif_delete | ( | long | index | ) |
void* memif_rx_interrupt | ( | void * | ptr | ) |
void* memif_rx_poll | ( | void * | ptr | ) |
int on_connect | ( | memif_conn_handle_t | conn, |
void * | private_ctx | ||
) |
int on_disconnect | ( | memif_conn_handle_t | conn, |
void * | private_ctx | ||
) |
int poll_event | ( | int | timeout | ) |
|
static |
int user_input_handler | ( | ) |
void user_signal_handler | ( | int | sig | ) |
pthread_t thread[MAX_THREADS] |
memif_thread_data_t thread_data[MAX_THREADS] |