This is a simple xdp based packet generator.
clone the repo, you can update the git submodule with following commands:
git submodule update --init --recursive
For dependencies, it varies from distribution to distribution. You can refer to shell.nix and dockerfile for installation.
On Ubuntu, you may run make install
or
sudo apt-get install -y --no-install-recommends \
libelf1 libelf-dev zlib1g-dev \
make clang llvm
to install dependencies.
To build the project, run the following command:
make build
This will compile your code and create the necessary binaries. You can you the Github Code space
or Github Action
to build the project as well.
You can run the binary with:
sudo src/xdp-pktgen