Seth, I was not able to recreate on my ixgbe Ubuntu machine. I think I
have a fix based on the stack trace you reported. I closed this bug for
now, and if you still have the problem with v4.0.4 (coming soon), let me
know and I'll reopen.

https://github.com/appneta/tcpreplay/issues/74

Fred.

On 2014-03-10, 6:00 AM, "Seth Hutchins (Mandiant)"
<seth.hutch...@mandiant.com> wrote:

>
>On 3/8/14, 4:50 PM, "Fred Klassen" <fklas...@appneta.com> wrote:
>
>Fred, thanks to you and Aaron for the prompt reply!
>
>>However the issue at had is, device "p1p1" is not a type of interface
>>that
>>is recognized by tcpreplay. What type of hardware/software is it? If it
>>were an Ethernet device driven by the ixgbe driver, I would expect the
>>interface to be "ethX".
>
>
>The device is an ixgbe ethernet device with fiber connection.
>
>
># ifconfig p1p1 | grep Ethernet
>p1p1      Link encap:Ethernet  HWaddr (removed)
>
># lspci -v
> 
>01:00.1 Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+
>Network Connection (rev 01)
>Subsystem: Intel Corporation Ethernet Server Adapter X520-2
>Flags: bus master, fast devsel, latency 0, IRQ 17
>Memory at c5180000 (64-bit, prefetchable) [size=512K]
>I/O ports at 2000 [size=32]
>Memory at c5204000 (64-bit, prefetchable) [size=16K]
>Capabilities: [40] Power Management version 3
>Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
>Capabilities: [70] MSI-X: Enable+ Count=64 Masked-
>Capabilities: [a0] Express Endpoint, MSI 00
>Capabilities: [100] Advanced Error Reporting
>Capabilities: [140] Device Serial Number (removed)
>Capabilities: [150] Alternative Routing-ID Interpretation (ARI)
>Capabilities: [160] Single Root I/O Virtualization (SR-IOV)
>Kernel driver in use: ixgbe
>Kernel modules: ixgbe
>
>
>>Are there any "ethX" devices available that you
>>can use for your test?
>
>I don’t have any eth* devices on this box, probably due to the ‘consistent
>network device naming’ convention, but I have ‘emX’ (igb) devices, and
>those work fine.
>However, I need to send traffic out the ixgbe device, so that doesn’t help
>me. Please note that tcpreplay-3.4.4 recognizes the p1p1 device fine and
>it works fine.
>I’ve only encountered this behavior with the 4.0.3 release.
>
>
>Here’s a reference to the naming standard in use across RHEL and more
>recent Fedoras which is probably what’s leading to the p1p1 names:
>https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linu
>x
>/6/html/Deployment_Guide/appe-Consistent_Network_Device_Naming.html
>
>
>>Finally, is this on a real or virtual machine?
>
>
>The OS is running on physical hardware, not a VM.
>
>
>
>Regards,
>
>Seth
>
>
>>
>>Fred.
>>
>>On 2014-03-07, 10:37 AM, "Seth Hutchins (Mandiant)"
>><seth.hutch...@mandiant.com> wrote:
>>
>>>
>>>The problem, in a nutshell:
>>>
>>># tcpreplay -t -i p1p1 big.pcap
>>>
>>>Fatal Error:
>>>%s is not a valid Tcpreplay character device
>>>
>>>Two issues.
>>>(1) This seems to have intended to be routed through a printf function,
>>>but doesn¹t seem to be (see missing args below).
>>>(2) It doesn¹t work, whereas old tcpreplay 3.4.4 works fine.
>>>
>>>
>>>This problem seems independent of the pcap file specified.
>>>It has been reproduced on a different CentOS 6.5 system, but with 똪o¹,
>>>and with a more recent kernel.
>>>
>>>Yes, I am root (uid=0). No, SELinux is not running.
>>>
>>>
>>>Any thoughts? Details follow ...
>>>
>>>Thanks for any help you can offer.
>>>
>>>kind regards,
>>>
>>>Seth
>>>
>>>. . . .
>>>
>>>CentOS 6.3, 2.6.32-279.19.1.el6.x86_64 kernel.
>>>
>>>tcpreplay version: 4.0.3 (build git:v4.0.3)
>>>Copyright 2013-2014 by Fred Klassen <tcpreplay at appneta dot com> -
>>>AppNeta Inc.
>>>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.4.0
>>>64 bit packet counters: enabled
>>>Verbose printing via tcpdump: enabled
>>>Packet editing: disabled
>>>Fragroute engine: disabled
>>>Injection method: PF_PACKET send()
>>>
>>>driver: ixgbe
>>>version: 3.12.6
>>>firmware-version: 0x61bd0001
>>>bus-info: 0000:01:00.0
>>>
>>># tcpreplay 땗istnics
>>>Available network interfaces:
>>>p1p1
>>>p1p2
>>>em1
>>>em2
>>>any
>>>
>>>#0  0x000000370e6acea0 in _exit () from /lib64/libc.so.6
>>>#1  0x000000370e635d52 in exit () from /lib64/libc.so.6
>>>#2  0x000000000040ab7c in sendpacket_open (device=0x832a50 "p1p1",
>>>    errbuf=0x7fffffffdcb0 "", direction=TCPR_DIR_C2S,
>>>    sendpacket_type=<value optimized out>) at sendpacket.c:555
>>>#3  0x0000000000407258 in tcpreplay_post_args (ctx=0x827010,
>>>    argc=<value optimized out>) at tcpreplay_api.c:289
>>>#4  0x00000000004054f5 in main (argc=1, argv=0x7fffffffe610) at
>>>tcpreplay.c:73
>>>
>>>#2  0x000000000040ab7c in sendpacket_open (device=0x832a50 "p1p1",
>>>    errbuf=0x7fffffffdcb0 "", direction=TCPR_DIR_C2S,
>>>    sendpacket_type=<value optimized out>) at sendpacket.c:555
>>>555              err(1, "%s is not a valid Tcpreplay character device²);
>>>
>>>(gdb) list
>>>550          if (((sdata.st_mode & S_IFMT) == S_IFCHR)) {
>>>551
>>>552              sp = sendpacket_open_khial(device, errbuf);
>>>553
>>>554          } else {
>>>555              err(1, "%s is not a valid Tcpreplay character device");
>>>556          }
>>>557      } else {
>>>558  #ifdef HAVE_NETMAP
>>>559          if (sendpacket_type == SP_TYPE_NETMAP)
>>>(gdb) p /x sdata.st_mode
>>>$2 = 0x41ed
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>-------------------------------------------------------------------------
>>-
>>----
>>Subversion Kills Productivity. Get off Subversion & Make the Move to
>>Perforce.
>>With Perforce, you get hassle-free workflows. Merge that actually works.
>>Faster operations. Version large binaries.  Built-in WAN optimization and
>>the
>>freedom to use Git, Perforce or both. Make the move to Perforce.
>>http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clk
>>t
>>rk
>>_______________________________________________
>>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

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
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