Thanks for the bug report.

I opened up a new issue for investigation and possible fix.

https://github.com/appneta/tcpreplay/issues/424 
<https://github.com/appneta/tcpreplay/issues/424>

Fred.


> On Nov 2, 2017, at 8:52 AM, ken adey <ken.a...@cyglass.com> wrote:
> 
> 
> Version information: 
> 
>     SYS-E300-8D:~$ /usr/local/bin/tcpreplay -V
>     Warning: May need to run as root to get access to all network interfaces.
>     tcpreplay version: 4.2.5 (build git:v4.2.5)
>     Copyright 2013-2017 by Fred Klassen <tcpreplay at appneta dot com> - 
> AppNeta
>     Copyright 2000-2012 by Aaron Turner <aturner at synfin dot net>
>     The entire Tcpreplay Suite is licensed under the GPLv3
>     Cache file supported: 04
>     Not compiled with libdnet.
>     Compiled against libpcap: 1.5.3
>     64 bit packet counters: enabled
>     Verbose printing via tcpdump: enabled
>     Packet editing: disabled
>     Fragroute engine: disabled
>     Default injection method: PF_PACKET send()
>     Optional injection method: netmap
> 
> 
> Command line used:
> 
>     sudo /usr/local/bin/tcpreplay --intf1=eth7 -tK --loop 2 --unique-ip 
> --stats=0 --netmap ./tcpreplay-4.2.5/test/test.pcap
> 
> 
> Platform:
> 
>     Distribution: Ubuntu 14.04 (trusty)
>     
>     Kernel version: Linux version 4.4.0-31-generic (buildd@lgw01-43) (gcc 
> version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #50~14.04.1-Ubuntu SMP Wed 
> Jul 13 01:07:32 UTC 2016
> 
> 
> Make & model of the network card:
> 
>     Intel D-1500 SoC
> 
> 
> Description of problem:
> 
>     Using netmap mode and the included test.pcap file, tcpreplay appears to 
> hang when --loop argument is greater than 1:
> 
>         SYS-E300-8D:~$ sudo /usr/local/bin/tcpreplay --intf1=eth7 -tK --loop 
> 2 --unique-ip --stats=0 --netmap ./tcpreplay-4.2.5/test/ test.pcap 
>         Switching network driver for eth7 to netmap bypass mode... done!
>         File Cache is enabled
>         Test start: 2017-11-02 11:05:40.699585 ...
>         Loop 1 of 2...
> 
>     Running "top" shows tcpreplay using 100% of the cpu.
> 
>     Attempting to use Ctrl C to stop it fails:
> 
>     ^C User interrupt...
>     sendpacket_abort
>     ^C User interrupt...
>     sendpacket_abort
> 
> 
>     Running nearly the same command above with a --loop value of 1 works fine:
> 
>         SYS-E300-8D:~$ sudo /usr/local/bin/tcpreplay --intf1=eth7 -tK --loop 
> 1 --netmap ./tcpreplay-4.2.5/test/test.pcap 
>         Switching network driver for eth7 to netmap bypass mode... done!
>         File Cache is enabled
>         Actual: 141 packets (62704 bytes) sent in 0.000154 seconds
>         Rated: 407168831.1 Bps, 3257.35 Mbps, 915584.41 pps
>         Flows: 37 flows, 240259.74 fps, 140 flow packets, 1 non-flow
>         Statistics for network device: eth7
>             Successful packets:        141
>             Failed packets:            0
>             Truncated packets:         0
>             Retried packets (ENOBUFS): 0
>             Retried packets (EAGAIN):  0
>         Switching network driver for eth7 to normal mode... done!
> 
> Thanks.
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! 
> http://sdm.link/slashdot_______________________________________________
> Tcpreplay-users mailing list
> Tcpreplay-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Tcpreplay-users mailing list
Tcpreplay-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to