Wireshark-bugs: [Wireshark-bugs] [Bug 5716] New: dumpcap: -q option behavior doesn't match docum
Date: Tue, 22 Feb 2011 16:55:52 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5716

           Summary: dumpcap: -q option behavior doesn't match
                    documentation
           Product: Wireshark
           Version: 1.4.3
          Platform: Other
        OS/Version: Red Hat
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Extras
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: jpo@xxxxxxxxxxxx


Build Information:
Dumpcap 1.4.3

Copyright 1998-2011 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with GLib 2.22.5, with libpcap 1.0.0, with libz 1.2.3,
without
POSIX capabilities.

Running on Linux 2.6.32-44.2.el6.x86_64, with libpcap version 1.0.0, with libz
1.2.3.

Built using gcc 4.4.4 20100630 (Red Hat 4.4.4-10).

See http://www.wireshark.org for more information.
--
According to the dumpcap manpage the -q option should print the packet
statistics only at the end of the capture:

<quote>
       -q  When capturing packets, don't display the continuous count of
packets captured that is normally shown when saving a capture to a file;
instead, just display, at the end of the capture, a count of packets captured.
...
</quote> 

Actually this description is not entirely correct: dumpcap 1.4.3 only prints
the dropped packets stats when the -q option is used (it fails to print the
captured packets stats).


Examples:

 * No -q option; captured ended with Ctrl+C

   # dumpcap -i eth0 -w /tmp/_.pcap
   File: /tmp/_.pcap
   Packets: 21 Packets dropped: 0

 * -q option; captured ended with Ctrl+C

   # dumpcap -i eth0 -w /tmp/_.pcap -q
   File: /tmp/_.pcap
   ^CPackets dropped: 0

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.