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 () |
|
#define APP_NAME "ICMP_Responder" |
#define ICMPR_HEADROOM 64 |
#define IF_NAME "memif_connection" |
Value:do { \
printf ("INFO: "__VA_ARGS__); \
printf ("\n"); \
} while (0)
Definition at line 79 of file main.c.
#define MAX_MEMIF_BUFS 256 |
int add_epoll_fd |
( |
int |
fd, |
|
|
uint32_t |
events |
|
) |
| |
int control_fd_update |
( |
int |
fd, |
|
|
uint8_t |
events |
|
) |
| |
int del_epoll_fd |
( |
int |
fd | ) |
|
int icmpr_buffer_alloc |
( |
long |
index, |
|
|
long |
n, |
|
|
uint16_t * |
r, |
|
|
uint16_t |
i, |
|
|
uint16_t |
qid |
|
) |
| |
int icmpr_memif_create |
( |
long |
index, |
|
|
long |
mode, |
|
|
char * |
s |
|
) |
| |
int icmpr_memif_delete |
( |
long |
index | ) |
|
void icmpr_print_counters |
( |
| ) |
|
void icmpr_reset_counters |
( |
| ) |
|
int icmpr_send |
( |
long |
index, |
|
|
long |
packet_num, |
|
|
char * |
hw, |
|
|
char * |
ip |
|
) |
| |
void* icmpr_send_proc |
( |
void * |
data | ) |
|
int icmpr_set_ip |
( |
long |
index, |
|
|
char * |
ip |
|
) |
| |
int icmpr_set_rx_mode |
( |
long |
index, |
|
|
long |
qid, |
|
|
char * |
mode |
|
) |
| |
int icmpr_tx_burst |
( |
long |
index, |
|
|
uint16_t |
qid |
|
) |
| |
int mod_epoll_fd |
( |
int |
fd, |
|
|
uint32_t |
events |
|
) |
| |
int poll_event |
( |
int |
timeout | ) |
|
static void print_memif_details |
( |
| ) |
|
|
static |
int user_input_handler |
( |
| ) |
|