emmericp / MoonGen

MoonGen is a fully scriptable high-speed packet generator built on DPDK and LuaJIT. It can saturate a 10 Gbit/s connection with 64 byte packets on a single CPU core while executing user-provided Lua scripts for each packet. Multi-core support allows for even higher rates. It also features precise and accurate timestamping and rate control.
MIT License
1.03k stars 234 forks source link

Reset prev along with the pcap file in replay-pcap #325

Open qha opened 2 years ago

qha commented 2 years ago

I'm pretty sure something like this is needed to avoid computing a reversed delay when looping a pcap file.

I haven't tested this implementation though, in the upcoming pull request for replay-pcap-multi i had to split off the pcap reading and sending part to a separate function replayonce to make the same thing work there.