Learn about some tools you can use and watch our OFP how-to videos
Generate code coverage report from unit tests by passing ‘–coverage’ during building, and use lcov to view the results:
./configure <typical-ofp-flags> CFLAGS='-g -O0 --coverage' LDFLAGS='-g -O0 --coverage' make check cd test/cunit lcov --directory . --directory ../../src --capture --output-file coverage.info genhtml coverage.info --output-directory out .. view out/index.html ..
TUTORIAL: UDP FORWARDING APPLICATION
This short tutorial shows some of the available OpenFastPath functionality including an UDP forwarding application using BSD sockets on a real ARMv8 system. The UDP echo application is available as an example in the git repository (location: example/udpecho).
The setup of the tutorial is represented in the image below
Let’s get to the action, shall we?
Steps taken in the video