2017-09-27 15:09:48 -04:00
## Build Instructions {#libmemif_build_doc}
2017-08-30 10:13:25 +02:00
2019-07-01 14:24:48 +02:00
#### Install dependencies
2017-08-30 10:13:25 +02:00
```
2019-07-01 14:24:48 +02:00
# sudo apt-get install -y git cmake autoconf pkg_config libtool check
2017-08-30 10:13:25 +02:00
```
2018-03-26 11:26:34 +02:00
Libmemif is now part of VPP repository. Follow fd.io wiki to pull source code from VPP repository.
[https://wiki.fd.io/view/VPP/Pulling,_Building,_Running,_Hacking_and_Pushing_VPP_Code#Pushing_Patches ](https://wiki.fd.io/view/VPP/Pulling,_Building,_Running,_Hacking_and_Pushing_VPP_Code#Pushing_Patches )
2017-08-30 10:13:25 +02:00
2019-07-01 14:24:48 +02:00
Libmemif is located under extras/libmemif. From extras/libmemif:
2017-08-30 10:13:25 +02:00
```
2019-07-01 14:24:48 +02:00
# mkdir build
# cd build
# cmake ..
2017-08-30 10:13:25 +02:00
# make install
```
2019-07-01 14:24:48 +02:00
#### Verify installation:
2017-08-30 10:13:25 +02:00
```
2019-07-01 14:24:48 +02:00
build# ./examples/icmpr-epoll
2017-08-30 10:13:25 +02:00
```
Use _help_ command to display build information and commands:
```
2019-07-01 14:24:48 +02:00
LIBMEMIF EXAMPLE APP: ICMP_Responder
2017-08-30 10:13:25 +02:00
==============================
2019-07-01 14:24:48 +02:00
libmemif version: 3.0
2018-03-26 11:26:34 +02:00
memif version: 512
2019-07-01 14:24:48 +02:00
use CTRL+C to exit
MEMIF DETAILS
==============================
interface name: memif_connection
app name: ICMP_Responder
remote interface name:
remote app name:
id: 0
secret: (null)
role: slave
mode: ethernet
socket filename: /run/vpp/memif.sock
socket filename: /run/vpp/memif.sock
rx queues:
tx queues:
link: down
2017-08-30 10:13:25 +02:00
```
2017-09-27 15:09:48 -04:00
2017-08-30 10:13:25 +02:00
#### Examples
2017-09-27 15:09:48 -04:00
Once the library is built/installed, refer to @ref libmemif_examples_doc and @ref libmemif_gettingstarted_doc for additional information on basic use cases and API usage.