udpreplay
v1.1.0
udpreplay是 tcpreplay 的轻量级替代品,用于从 pcap 文件重放 UDP 单播和多播流。
usage: udpreplay [-i iface] [-l] [-s speed] [-c millisec] [-r repeat] [-t ttl] pcap
-i iface interface to send packets through
-l enable loopback
-c millisec constant milliseconds between packets
-r repeat number of times to loop data
-s speed replay speed relative to pcap timestamps
-t ttl packet ttl
-b enable broadcast (SO_BROADCAST)
$ udpreplay -i eth0 example.pcap
udpreplay需要 CMake 3.5 或更高版本,
g++ 和 libpcap-dev 来构建和安装。
基于 Debian/Ubuntu 构建:
sudo apt install cmake libpcap-dev g++
cd udpreplay
mkdir build && cd build
cmake ..
make
基于 RHEL/CentOS 构建:
sudo yum install cmake3 libpcap-devel gcc-c++
cd udpreplay
mkdir build && cd build
cmake3 ..
make
安装:
$ sudo make install
该项目由 Erik Rigtorp <[email protected]> 创建。