Go to the source code of this file.
|
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, void *ctx) |
|
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 () |
|
◆ APP_NAME
#define APP_NAME "ICMP_Responder" |
◆ DBG
◆ IF_NAME
#define IF_NAME "memif_connection" |
◆ INFO
Value:do { \
printf ("INFO: "__VA_ARGS__); \
printf ("\n"); \
} while (0)
Definition at line 65 of file main.c.
◆ MAX_CONNS
◆ MAX_MEMIF_BUFS
#define MAX_MEMIF_BUFS 256 |
◆ MAX_QUEUES
◆ MAX_THREADS
◆ add_epoll_fd()
int add_epoll_fd |
( |
int |
epfd, |
|
|
int |
fd, |
|
|
uint32_t |
events |
|
) |
| |
◆ control_fd_update()
int control_fd_update |
( |
int |
fd, |
|
|
uint8_t |
events, |
|
|
void * |
ctx |
|
) |
| |
◆ del_epoll_fd()
int del_epoll_fd |
( |
int |
epfd, |
|
|
int |
fd |
|
) |
| |
◆ icmpr_free()
◆ icmpr_memif_create()
int icmpr_memif_create |
( |
long |
index | ) |
|
◆ icmpr_memif_delete()
int icmpr_memif_delete |
( |
long |
index | ) |
|
◆ icmpr_set_ip()
int icmpr_set_ip |
( |
long |
index, |
|
|
char * |
ip |
|
) |
| |
◆ main()
◆ memif_rx_interrupt()
void* memif_rx_interrupt |
( |
void * |
ptr | ) |
|
◆ memif_rx_poll()
void* memif_rx_poll |
( |
void * |
ptr | ) |
|
◆ mod_epoll_fd()
int mod_epoll_fd |
( |
int |
epfd, |
|
|
int |
fd, |
|
|
uint32_t |
events |
|
) |
| |
◆ on_connect()
◆ on_disconnect()
◆ poll_event()
int poll_event |
( |
int |
timeout | ) |
|
◆ print_help()
◆ print_memif_details()
static void print_memif_details |
( |
| ) |
|
|
static |
◆ user_input_handler()
int user_input_handler |
( |
| ) |
|
◆ user_signal_handler()
void user_signal_handler |
( |
int |
sig | ) |
|
◆ ctx
◆ main_epfd
◆ memif_connection
◆ thread
◆ thread_data