Install dependencies
1 # sudo apt-get install -y git autoconf pkg_config libtool check
Clone repository to your local machine.
1 # git clone https://github.com/JakubGrajciar/libmemif.git
From root directory execute: For debug build:
For release build:
Verify installation:
Make sure to run the binary file from ./.libs. File ./icmp_responder in libmemif root directory is script that links the library, so it only verifies successful build. Default install path is /usr/lib.
Use help command to display build information and commands:
1 ICMP_Responder:add_epoll_fd:204: fd 0 added to epoll
2 MEMIF_DEBUG:src/main.c:memif_init:383: app name: ICMP_Responder
3 ICMP_Responder:add_epoll_fd:204: fd 4 added to epoll
4 LIBMEMIF EXAMPLE APP: ICMP_Responder (debug)
5 ==============================
6 libmemif version: 1.0 (debug)
9 help - prints this help
11 conn <index> - create memif (slave-mode)
12 del <index> - delete memif
13 show - show connection details
14 ip-set <index> <ip-addr> - set interface ip address
15 rx-mode <index> <qid> <polling|interrupt> - set queue rx mode
Examples
Once the library is built/installed, refer to Examples and Getting started for additional information on basic use cases and API usage.