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.17k stars 268 forks source link

[Bug] tcpreplay 4.3.4 Multiplier < 1.0 does not work #674

Closed sterling-TAS closed 2 years ago

sterling-TAS commented 3 years ago

Describe the bug I am trying to replay a PCAP at a slower speed and it does not seem to work. The execution time of the command is constant unless the multiplier command-line option is greater than 1.0.

To Reproduce tcpreplay --intf1=eth0 --multiplier=0.5 myCapFile.pcap

Expected behavior I expect that the time for the PCAP to play to double based on my multiplier.

System (please complete the following information):

Additional context It does seem to use the multiplier option only if I loop the data. The first loop runs at normal speed and the subsequent loops are at the reduced speed.

fklassen commented 2 years ago

Probably introduced by PRs #631 and #645 (issue #630)

fklassen commented 2 years ago

Reverted PR #631 enhancement in PR #699