Go to the source code of this file.
|
static int | memfd_create (const char *name, unsigned int flags) |
|
static void | print_help () |
|
static void | print_memif_details () |
|
void | icmpr_print_counters () |
|
void | icmpr_reset_counters () |
|
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_memif_delete (long index) |
|
int | icmpr_free () |
|
int | icmpr_add_external_region (void **addr, uint32_t size, int *fd, void *private_ctx) |
|
void * | icmpr_get_external_region_addr (uint32_t size, int fd, void *private_ctx) |
|
int | icmpr_del_external_region (void *addr, uint32_t size, int fd, void *private_ctx) |
|
int | on_interrupt (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) |
|
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
◆ F_ADD_SEALS
◆ F_GET_SEALS
◆ F_LINUX_SPECIFIC_BASE
#define F_LINUX_SPECIFIC_BASE 1024 |
◆ F_SEAL_GROW
#define F_SEAL_GROW 0x0004 /* prevent file from growing */ |
◆ F_SEAL_SEAL
#define F_SEAL_SEAL 0x0001 /* prevent further seals from being set */ |
◆ F_SEAL_SHRINK
#define F_SEAL_SHRINK 0x0002 /* prevent file from shrinking */ |
◆ F_SEAL_WRITE
#define F_SEAL_WRITE 0x0008 /* prevent writes */ |
◆ IF_NAME
#define IF_NAME "memif_connection" |
◆ INFO
Value:do { \
printf("INFO: "__VA_ARGS__); \
printf("\n"); \
} while (0)
Definition at line 70 of file main.c.
◆ MAX_CONNS
◆ MAX_MEMIF_BUFS
#define MAX_MEMIF_BUFS 256 |
◆ MFD_ALLOW_SEALING
#define MFD_ALLOW_SEALING 0x0002U |
◆ 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_add_external_region()
int icmpr_add_external_region |
( |
void ** |
addr, |
|
|
uint32_t |
size, |
|
|
int * |
fd, |
|
|
void * |
private_ctx |
|
) |
| |
◆ icmpr_del_external_region()
int icmpr_del_external_region |
( |
void * |
addr, |
|
|
uint32_t |
size, |
|
|
int |
fd, |
|
|
void * |
private_ctx |
|
) |
| |
◆ icmpr_free()
◆ icmpr_get_external_region_addr()
void* icmpr_get_external_region_addr |
( |
uint32_t |
size, |
|
|
int |
fd, |
|
|
void * |
private_ctx |
|
) |
| |
◆ 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 | ) |
|
◆ main()
◆ memfd_create()
static int memfd_create |
( |
const char * |
name, |
|
|
unsigned int |
flags |
|
) |
| |
|
inlinestatic |
◆ mod_epoll_fd()
int mod_epoll_fd |
( |
int |
fd, |
|
|
uint32_t |
events |
|
) |
| |
◆ on_connect()
◆ on_disconnect()
◆ on_interrupt()
◆ on_interrupt1()
◆ poll_event()
int poll_event |
( |
int |
timeout | ) |
|
◆ print_help()
static void print_help |
( |
| ) |
|
|
static |
◆ print_memif_details()
static void print_memif_details |
( |
| ) |
|
|
static |
◆ user_input_handler()
int user_input_handler |
( |
| ) |
|
◆ ctx
◆ epfd
◆ icmpr_thread_data
◆ memif_connection
◆ thread