I'm pretty sure that's because your pcap file is 0 bytes long.  If not, run:

xxd <pcap> | head

and send the results to help us debug it.
--
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 Wed, Dec 10, 2014 at 7:42 AM, Fred Klassen <[email protected]> wrote:
> Silvi,
>
> I believe you should try the latest version, 4.0.5, available here
> http://tcpreplay.appneta.com/wiki/installation.html This may not be a
> tcpreplay problem. The version of libpcap used may be coming into play.
>
> Fred.
>
>
> From: Silvi Kates Neimark <[email protected]>
> Reply-To: "[email protected]"
> <[email protected]>
> Date: Wednesday, December 10, 2014 at 5:05 AM
> To: "[email protected]"
> <[email protected]>
> Subject: [Tcpreplay-users] tcp replay cant send file with packets anomalies
> on version 3.4.4 when in the past it could (2.3.5)
>
> Hi
>
> I am testing device that supposed to detect when packet with anomaly is sent
> to it (all kind of anomalies)
>
> I am trying to send packet using TCP replay that has bogus ip length
> (attaching it)
>
> In the past I used tcp replay of version 2.3.5 on mandriva I had no problem
> sending this cap file
>
> But now I am using tcp replay of version 3.4.4 on Ubuntu trying to send (or
> manipulate the file using tcpprep) the same exactly file I get the following
> error:
>
> Fatal Error in tcpreplay.c:replay_file() line 252:
>
> Error opening pcap file: truncated dump file; tried to read 4 file header
> bytes, only got 0
>
>
>
> And unable to send or manipulate the file
>
>
>
> Is there some workaround I can tell the tcpprep or tcpreplay ignore those
> problems in the capture?
>
>
>
> Regards,
>
> Silvi.
>
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Tcpreplay-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Tcpreplay-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to