← Back to team overview

rohc team mailing list archive

Re: Tunnel tool ping error

 

Hi Didier,


> > Could you tell me where the packet statistics for the tunnel tool
> > compressor and decompressor are shown (from the print_decomp_stats and
> > print_comp_stats methods)?
> > The statistics aren't displayed when I run rohctunnel... how can the
> > stats_comp  and stats_decomp file contents be viewed? I've tried I/O
> > redirection but that hasn't worked..
>
> The "stats_comp" and "stats_decomp" variables in the source code of the
> tunnel tool are not names of files. They are only handles on files
> which names may be completely different from the names of the variables.
> In fact, in the case of the tunnel tool, the file handles are not
> handles on named files.
>
> The comportment of the tool is described in the header of the tunnel.c
> source file:
> " The program outputs messages from the tunnel application on stderr
>  and messages from the ROHC library on stdout. It outputs compression
>  statistics on file descriptor 3 and decompression statistics on file
>  descriptor 4. "
>
> So the tool outputs messages and stats on file descriptors 1 (stdout),
> 2 (stderr), 3 and 4.
>
> In practice, to retrieve all the information, you may start the
> rohctunnel tool as follow:
>  # rohctunnel <parameters> \
>     1> rohc_library.log \
>     2> rohc_tunnel.log \
>     3> rohc_comp.stats \
>     4> rohc_decomp.stats
> And have a look at content written in the 4 log files.
>


I used the redirection commands above, but while rohc_library.log and
rohc_tunnel.log did contain information, both rohc_comp.stats and
rohc_decomp.stats remained empty.


Thanks and regards,
Josephine

Follow ups

References