A packet sniffer that uses a producer/consumer multithreaded model to capture data about the bandwidth used by a device and compiles reports that are sent to the system administrator on a weekly basis.
libpcap
requires the following additional packages to be installed:
flex
bison
These packages can be installed using the following commands:
sudo apt install flex
sudo apt install bison
Then please make sure to pull the submodules using the following command:
git submodule update --init --recursive
To build the program, create a build
directory and navigate into it. Then run:
cmake ..
make
The program can now be run using:
sudo ./Bandwidth_Monitor
To run it as a background process use:
sudo ./Bandwidth_Monitor &