appneta / tcpreplay

Pcap editing and replay tools for *NIX and Windows - Users please download source from
http://tcpreplay.appneta.com/wiki/installation.html#downloads
1.16k stars 268 forks source link

[Feature] add options to send n-th packet #685

Open terurin opened 2 years ago

terurin commented 2 years ago

I want to send n-th packet or n-th to m-th packets. But ' −−limit m' option send only 1-th to m-th packets.

If I send only 2-th packet, commands are like this.

tshark -r original.pcap -w selected.pcap -Y "frame.number == 2"
sudo tcpreply selected.pcap

I want like this

sudo tcpreply original.pcap -n 2
# sudo tcpreply original.pcap -n 2-3,5