https://github.com/rigtorp/udpreplay
Replay UDP packets from a pcap file
https://github.com/rigtorp/udpreplay
packet-generator packet-replay pcap tcpreplay udp
Last synced: 11 months ago
JSON representation
Replay UDP packets from a pcap file
- Host: GitHub
- URL: https://github.com/rigtorp/udpreplay
- Owner: rigtorp
- License: mit
- Created: 2016-01-30T20:22:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-07T16:33:29.000Z (over 2 years ago)
- Last Synced: 2025-03-30T06:08:07.070Z (12 months ago)
- Topics: packet-generator, packet-replay, pcap, tcpreplay, udp
- Language: C++
- Size: 33.2 KB
- Stars: 264
- Watchers: 13
- Forks: 75
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-network-stuff - **72**星
- awesome-robotic-tooling - udpreplay - Replay UDP packets from a pcap file (System / Network and Middleware)
- awesome-robotic-tooling - udpreplay - Replay UDP packets from a pcap file. (Network and Middleware / Ethernet and Wireless Networking)
README
# udpreplay
[](https://raw.githubusercontent.com/rigtorp/udpreplay/master/LICENSE)
*udpreplay* is a lightweight alternative
to [tcpreplay](http://tcpreplay.appneta.com/) for replaying UDP
unicast and multicast streams from a pcap file.
## Usage
```
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)
```
## Example
```
$ udpreplay -i eth0 example.pcap
```
## Building & Installing
*udpreplay* requires [CMake](https://cmake.org/) 3.5 or higher,
g++ and libpcap-dev to build and install.
Building on Debian/Ubuntu:
```
sudo apt install cmake libpcap-dev g++
cd udpreplay
mkdir build && cd build
cmake ..
make
```
Building on RHEL/CentOS:
```
sudo yum install cmake3 libpcap-devel gcc-c++
cd udpreplay
mkdir build && cd build
cmake3 ..
make
```
Installing:
```
$ sudo make install
```
## About
This project was created by [Erik Rigtorp](http://rigtorp.se)
<[erik@rigtorp.se](mailto:erik@rigtorp.se)>.