Yep, a directory called p1p1 would do the same thing.

Fred- might be worth instead of failing outright to try to open the
NIC called p1p1 if it's not the correct kind of file.
--
Aaron Turner
http://synfin.net/         Twitter: @synfinatic
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    -- Benjamin Franklin


On Mon, Mar 10, 2014 at 6:14 AM, Seth Hutchins (Mandiant)
<seth.hutch...@mandiant.com> wrote:
> On 3/8/14, 6:27 PM, "Aaron Turner" <synfina...@gmail.com> wrote:
>
> Aaron, thanks to you and Fred for the prompt reply!
>
>
>>I believe line 555 should be:
>>
>> errx(1, "%s is not a valid Tcpreplay character device", device);
>
> Seems sane to me.
>
>>That said, any chance you're running tcpreplay from /dev or something?
>> I'm trying to figure out why line 549 is returning 0 (the call to
>>stat()). Try running tcpreplay in another directory so it can't find
>>/dev/p1p1 (or any file called p1p1 in the local directory), because it
>>looks like it's finding a file called 'p1p1' and realizing it's not a
>>khial device, aborting.
>
> Based on this comment and running strace on tcpreplay and stat, I am 90%
> sure that the problem is that some other user created a directory called
> OEp1p1¹. It didn¹t occur to me to look for this until you said that.
> You can probably reproduce my issue by doing a OEmkdir <ifacename>¹ and
> then trying to invoke 'tcpreplay -i <ifacename>¹ from that directory.
>
> When I run tcpreplay from /tmp, the problem goes away. So you could say I
> have a workaround.
>
> Let me know if there¹s any additional information you need about this.
>
> Regards,
>
> Seth
>
> ------------------------------------------------------------------------------
> 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

------------------------------------------------------------------------------
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