Skip to content

gengjun/udpreplay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

udpreplay

Build Status License

udpreplay is a lightweight alternative to tcpreplay 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
  -f fastforward  fastforward seconds, then play with normal speed
  -b              enable broadcast (SO_BROADCAST)

Example

$ udpreplay -i eth0 example.pcap
$ udpreplay -i eth0 -f 600 -s 0.1 example.pcap

Building & Installing

udpreplay requires CMake 3.2 or higher and libpcap-dev to build and install.

Building on Debian/Ubuntu:

sudo apt install cmake libpcap-dev
cd udpreplay
mkdir build && cd build
cmake ..
make

Building on RHEL/CentOS:

sudo yum install cmake3 libpcap-devel
cd udpreplay
mkdir build && cd build
cmake3 ..
make

Installing:

$ sudo make install

About

This project was created by Erik Rigtorp <erik@rigtorp.se>.

About

Replay UDP packets from a pcap file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.1%
  • CMake 3.9%