On 07/21/2015 01:14 PM, Vadim Kochan wrote:
On Mon, Jul 20, 2015 at 02:58:21PM +0000, Unnikannan Nair, Jishnu wrote:
Hi
I have double checked, it seems if I run with "-s" option with the application saving 
files on to a folder "--out /share/capture/job/" will not give any statistics up on 
stopping it using  ^C.
And it is giving a "Cannot set NIC Flags" message at the end. So I'm not able 
to check if the sniffer has captured all the packets. Could you please help me with this.

Daniel,

I might be wrong but I looked into the code and see this condition in
the netsniff-ng.c:

1097         if (!(ctx->dump_dir && ctx->print_mode == PRINT_NONE)) {
1098                 sock_rx_net_stats(sock, frame_count);

which seems that really netsniff-ng will do not print stats in silent
mode and if dump to the folder ?

Hmm, fair enough. Maybe this should be reworked. We dump intermediate stats
in print_pcap_file_stats(), which you should see with -V option in this mode.
I.e. it shows [captured pkts/drops] after each rotation. Afaik, whenever you
fetch PACKET_STATISTICS via getsockopt(2), they're cleared in the kernel again.

--
You received this message because you are subscribed to the Google Groups 
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to