Install dependencies
https://github.com/xdp-project/xdp-tutorial/blob/master/setup_dependencies.org
- Install
bpftool
- Run
make
to compile - Run
sudo bash attach.sh <NIC name>
to attach to a network interface - Run
sudo bash trace.sh
to trace output of the program - Run
sudo bash detach.sh <NIC name>
to detach from a network interface