Go to the source code of this file.
|
static void | print_memif_details () |
|
int | add_epoll_fd (int fd, uint32_t events) |
|
int | mod_epoll_fd (int fd, uint32_t events) |
|
int | del_epoll_fd (int fd) |
|
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_buffer_alloc (long index, long n, uint16_t *r, uint16_t i, uint16_t qid) |
|
int | icmpr_tx_burst (long index, uint16_t qid) |
|
int | on_interrupt (memif_conn_handle_t conn, void *private_ctx, uint16_t qid) |
|
int | on_interrupt0 (memif_conn_handle_t conn, void *private_ctx, uint16_t qid) |
|
int | on_interrupt1 (memif_conn_handle_t conn, void *private_ctx, uint16_t qid) |
|
int | icmpr_memif_create (long index, long mode, char *s) |
|
int | icmpr_memif_delete (long index) |
|
void | print_help () |
|
int | icmpr_free () |
|
int | icmpr_set_ip (long index, char *ip) |
|
int | icmpr_set_rx_mode (long index, long qid, char *mode) |
|
void | icmpr_print_counters () |
|
void | icmpr_reset_counters () |
|
void * | icmpr_send_proc (void *data) |
|
int | icmpr_send (long index, long packet_num, char *hw, char *ip) |
|
int | user_input_handler () |
|
int | poll_event (int timeout) |
|
int | main () |
|
◆ APP_NAME
#define APP_NAME "ICMP_Responder" |
◆ DBG
◆ ICMPR_HEADROOM
#define ICMPR_HEADROOM 64 |
◆ IF_NAME
#define IF_NAME "memif_connection" |
◆ INFO
Value:do { \
printf ("INFO: "__VA_ARGS__); \
printf ("\n"); \
} while (0)
Definition at line 79 of file main.c.
◆ LOG
◆ MAX_CONNS
◆ MAX_MEMIF_BUFS
#define MAX_MEMIF_BUFS 256 |
◆ TIME_UTC
◆ add_epoll_fd()
int add_epoll_fd |
( |
int |
fd, |
|
|
uint32_t |
events |
|
) |
| |
◆ control_fd_update()
int control_fd_update |
( |
int |
fd, |
|
|
uint8_t |
events |
|
) |
| |
◆ del_epoll_fd()
int del_epoll_fd |
( |
int |
fd | ) |
|
◆ icmpr_buffer_alloc()
int icmpr_buffer_alloc |
( |
long |
index, |
|
|
long |
n, |
|
|
uint16_t * |
r, |
|
|
uint16_t |
i, |
|
|
uint16_t |
qid |
|
) |
| |
◆ icmpr_free()
◆ icmpr_memif_create()
int icmpr_memif_create |
( |
long |
index, |
|
|
long |
mode, |
|
|
char * |
s |
|
) |
| |
◆ icmpr_memif_delete()
int icmpr_memif_delete |
( |
long |
index | ) |
|
◆ icmpr_print_counters()
void icmpr_print_counters |
( |
| ) |
|
◆ icmpr_reset_counters()
void icmpr_reset_counters |
( |
| ) |
|
◆ icmpr_send()
int icmpr_send |
( |
long |
index, |
|
|
long |
packet_num, |
|
|
char * |
hw, |
|
|
char * |
ip |
|
) |
| |
◆ icmpr_send_proc()
void* icmpr_send_proc |
( |
void * |
data | ) |
|
◆ icmpr_set_ip()
int icmpr_set_ip |
( |
long |
index, |
|
|
char * |
ip |
|
) |
| |
◆ icmpr_set_rx_mode()
int icmpr_set_rx_mode |
( |
long |
index, |
|
|
long |
qid, |
|
|
char * |
mode |
|
) |
| |
◆ icmpr_tx_burst()
int icmpr_tx_burst |
( |
long |
index, |
|
|
uint16_t |
qid |
|
) |
| |
◆ main()
◆ mod_epoll_fd()
int mod_epoll_fd |
( |
int |
fd, |
|
|
uint32_t |
events |
|
) |
| |
◆ on_connect()
◆ on_disconnect()
◆ on_interrupt()
◆ on_interrupt0()
◆ on_interrupt1()
◆ 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 |
( |
| ) |
|
◆ ctx
◆ enable_log
◆ epfd
◆ icmpr_thread_data
◆ memif_connection
◆ out_fd
◆ thread