udpreplay is a lightweight alternative to tcpreplay for replaying UDP unicast and multicast streams from a pcap file.
udpreplay [-i iface] [-l] [-s speed] [-t ttl] pcap
-i iface interface to send packets through
-l enable loopback
-s speed replay speed relative to pcap timestamps
-t ttl packet ttl
$ udpreplay -i eth0 example.pcap
udpreplay requires CMake 3.2 or higher and libpcap-dev to build and install.
sudo apt install cmake libpcap-dev
Building:
$ cd udpreplay
$ mkdir build
$ cd build
$ cmake ..
$ make
Installing:
$ make install
This project was created by Erik Rigtorp <erik@rigtorp.se>.