tree: b4c1c4a65fce691b15b801b13a169d7511232c90 [path history] [tgz]
  1. icmp_responder/
  2. icmp_responder-epoll/
  3. icmp_responder-mt/
  4. ExampleSetup.md
  5. README.md
extras/libmemif/examples/README.md

Examples

After build, root folder will contain scripts linking binary examples with library (same name as example apps). These scripts can be executed to run example apps without installing the library. Example apps binaries can be found in libs filder. To run binaries directly, make sure that libmemif library is installed.

Run in container

ligato/libmemif-sample-service image contains built and installed libmemf. To run different examples, override docker CMD to start container in bash:

# docker run -it --entrypoint=/bin/bash -i --rm --name icmp-responder --hostname icmp-responder --privileged -v "/run/vpp/:/run/vpp/" ligato/libmemif-sample-service

Current WORKDIR is set to root repository directory. Example apps can be run from this directory (a script linking binary with library), or browse to ./.libs folder and execute binary directly.

Example appDescription
icmprSimplest implementaion. Event polling is handled by libmemif. Single memif conenction in slave mode is created (id 0). Use Ctrl + C to exit app.
icmpr-epoll (run in container by default)Supports multiple connections and master mode. User can create/delete connections, set ip addresses, print connection information. Example setup contains instructions on basic connection use cases setups.
icmpr-mtMulti-thread example, very similar to icmpr-epoll. Packets are handled in threads assigned to specific queues. Slave mode only.