Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 691 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 691 Bytes

nettools

C++ implementation of a few network tools built around C sockets for educative purposes.

Build Status

Build

Building requires cmake version 3.10 or higher.

mkdir build
cd build
cmake ..
make

Run Tests

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.