On 5/14/07, Andrew Edgecombe <[EMAIL PROTECTED]> wrote:
> Hi all,
> I've come across an issue when using the -M option on tcpreplay to
> specify the outgoing data rate.
>
> I tend to use tcpreplay to replay pcap files that contain small numbers
> of packets, but replay them with -l loops.
> The issue that I found was that when replaying pcap files containing
> single packets that the -M option would replay at
> full speed instead of the requested rate.
>
> Attached is a (very simple!) patch file against tcpreplay-3.0.1. I've
> found this useful as it allows me to set rates for my
> single packet pcap files.

Hi Andrew,

I'm going to have to think about this corner case a little more.
Unfortunately your patch breaks the common case where people have
pcap's with many packets and use the loop option.

For the record, the test I ran was:

./src/tcpreplay -i en0 -l 3 test/test.pcap

should take ~15sec to run (test/test.pcap is about 5 seconds long),
but with your patch it took about 5.5sec.

-Aaron
-- 
Aaron Turner
http://synfin.net/
http://tcpreplay.synfin.net/ - Pcap editing & replay tools for Unix

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Tcpreplay-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users

Reply via email to