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 | 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 () | 
|  | 
| int | icmpr_send (long index, long packet_num, char *input) | 
|  | 
| int | user_input_handler () | 
|  | 
| int | poll_event (int timeout) | 
|  | 
| int | main () | 
|  | 
◆ APP_NAME
      
        
          | #define APP_NAME   "ICMP_Responder" | 
      
 
 
◆ DBG
◆ ENCAP
◆ HEADROOM
      
        
          | #define HEADROOM   0x80		/* 128b */ | 
      
 
 
◆ IF_NAME
      
        
          | #define IF_NAME   "memif_connection" | 
      
 
 
◆ INFO
Value:do {                                              \
                    printf ("INFO: "__VA_ARGS__);                   \
                    printf ("\n");                                  \
                } while (0)
Definition at line 76 of file main.c.
 
 
◆ LOG
◆ MAX_CONNS
◆ MAX_MEMIF_BUFS
      
        
          | #define MAX_MEMIF_BUFS   256 | 
      
 
 
◆ 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_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 * | input | 
        
          |  | ) |  |  | 
      
 
 
◆ icmpr_send_proc()
◆ 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 | 
        
          |  | ) |  |  | 
      
 
 
◆ 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
◆ flow
◆ memif_connection
◆ out_fd