FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
Build Instructions

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:

1 # ./bootstrap
2 # ./configure
3 # make
4 # make install

For release build:

1 # ./bootstrap
2 # ./configure
3 # make release
4 # make install

Verify installation:

1 # ./.libs/icmpr-epoll

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)
7 memif version: 256
8 commands:
9  help - prints this help
10  exit - exit app
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.