C++ implementation of a few network tools built around C sockets for educative purposes.
Building requires cmake
version 3.10 or higher.
mkdir build
cd build
cmake ..
make
Having built as above, run
ctest -V
Note that creating "raw" sockets (e.g. for ICMP) requires the appropriate rights,
so you might have to run sudo ctest -V
for these tests to pass.
To get code coverage metrics, compile as follows:
cmake -DCMAKE_BUILD_TYPE=Debug ..
make coverage
and view build/coverage/index.html
.