From: Bert Baesjou (b.baesjou@student.utwente.nl)
Date: 10/18/04
From: Bert Baesjou <b.baesjou@student.utwente.nl> Subject: tcptrace Tcptrace version 6.6.1 and ns2 format files Date: Tue, 19 Oct 2004 03:29:25 +0000 Message-Id: <200410190329.25237.b.baesjou@student.utwente.nl>
Hello,
As I understood this is the tcptrace mailing list. Therefore my mail here.
My problem is that I'm having a file outputted by ns2 which I want to read in
tcptrace version 6.6.1 , which should, according to the documentation, be no
problem.
My file "out.tr" looks like:
+ 0 0 49 tcp 40 ------- 0 0.0 51.0 0 0 0 0x0 0 0
- 0 0 49 tcp 40 ------- 0 0.0 51.0 0 0 0 0x0 0 0
+ 0 1 49 tcp 40 ------- 0 1.0 52.0 0 1 0 0x0 0 0
- 0 1 49 tcp 40 ------- 0 1.0 52.0 0 1 0 0x0 0 0
+ 0 2 49 tcp 40 ------- 0 2.0 53.0 0 2 0 0x0 0 0
- 0 2 49 tcp 40 ------- 0 2.0 53.0 0 2 0 0x0 0 0
+ 0 3 49 tcp 40 ------- 0 3.0 54.0 0 3 0 0x0 0 0
- 0 3 49 tcp 40 ------- 0 3.0 54.0 0 3 0 0x0 0 0
......
But when:
bash-2.05b$ tcptrace -d out.tr
1 arg remaining, starting with 'out.tr'
Ostermann's tcptrace -- version 6.6.1 -- Wed Nov 19, 2003
Running file 'out.tr'
WhichFormat: failed to find compression format for file 'out.tr'
Checking for file format 'tcpdump' (tcpdump -- Public domain program from LBL)
File format is NOT 'tcpdump'
Checking for file format 'snoop' (Sun Snoop -- Distributed with Solaris)
File format is NOT 'snoop'
Checking for file format 'etherpeek' (etherpeek -- Mac sniffer program)
File format is NOT 'etherpeek'
Checking for file format 'netmetrix' (Net Metrix -- Commercial program from
HP)
File format is NOT 'netmetrix'
Checking for file format 'ns' (ns -- network simulator from LBL)
File format is NOT 'ns'
Checking for file format 'netscout' (NetScout Manager format)
File format is NOT 'netscout'
Checking for file format 'erf' (Endace Extensible Record Format)
ERF format
File format is 'erf' (Endace Extensible Record Format)
Trace file size: 43034551 bytes
0 packets seen, 0 TCP packets traced
elapsed wallclock time: 0:00:00.000643, 0 pkts/sec analyzed
trace file elapsed time: 0:00:00.000000
first packet: <the epoch>
last packet: <the epoch>
no traced TCP packets
I've looked into the ns.c and I didn't see the problem (my knowledge of C is
not that big). Maybe I'm doing something wrong?
I tried to put in some fprintf(stdout,"I'm here"); lines into the ns.c to see
wherther the function that has to check wherther a file is of the ns format
( "pread_f *is_ns(char *filename)" I believe ), but it seems if this function
is never called (no lines are printed to my terminal)???
Tnx in advance,
Bert Baesjou
----------------------------------------------------------------------------
To unsubscribe, send a message with body containing "unsubscribe tcptrace" to
majordomo@tcptrace.org.
This archive was generated by hypermail 2.1.7 : 10/19/04 EDT