rohc team mailing list archive
-
rohc team
-
Mailing list archive
-
Message #00020
Re: Tunnel tool ping error
Josephine,
> 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.
Regards,
Didier Barvaux
Viveris Technologies
Attachment:
signature.asc
Description: PGP signature
Follow ups
References