Building and Installation
Requirements
To build fpnt, you need to install cmake and a modern C++ compiler (e.g., gcc). In Ubuntu, you can install them using:
sudo apt install cmake build-essential -y
Build Modes
You can build the fpnt source code in either Debug mode or Release mode.
Debug Mode
Debug mode provides detailed output during execution.
mkdir build cmake -DCMAKE_BUILD_TYPE=Debug -S. -Bbuild cmake --build ./build --config Debug
Release Mode
fpnt built in Release mode prints minimal output during execution for maximum performance.
mkdir build cmake -DCMAKE_BUILD_TYPE=Release -S. -Bbuild cmake --build ./build --config Release
Installation (Recommended)
If you want to install fpnt in your home directory, use the following commands. It will install into $HOME/fpnt_release.
sudo cmake --build build --target install cd $HOME/fpnt_release
If you want to change the root directory of fpnt to path-to-fpnt-root, use the following command for installing fpnt:
sudo cmake --build build --target install -DCMAKE_INSTALL_PREFIX=path-to-fpnt-root cd path-to-fpnt-root
Running FPNT
After copying your pcap files into the input_mta subdirectory, you can run fpnt with the default MTA configuration.
mkdir input_mta cp $HOME/traffic.pcap ./input_mta/ fpnt
If you have not installed fpnt, you can run the executable directly from the build directory:
build/standalone/fpnt [OPTIONS]