aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-05-26 00:19:27 +0000
committerGuy Harris <guy@alum.mit.edu>2010-05-26 00:19:27 +0000
commit7a630c61a1ad5e3cb7f6895256e568ca5a292645 (patch)
treef797ed91953ee652853c0a02b81557510f7c91b1 /capture_opts.c
parent237eef2ae7c9c4bb8b75fac76d79d3c3ad76fc51 (diff)
Add a -q flag to dumpcap, to squelch its reporting of the packet count,
and add support for SIGINFO, so, if your OS supports SIGINFO, you can get the packet count by typing ^T. svn path=/trunk/; revision=32958
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/capture_opts.c b/capture_opts.c
index 23297b60eb..86c3823224 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -86,6 +86,7 @@ capture_opts_init(capture_options *capture_opts, void *cf)
capture_opts->saving_to_file = FALSE;
capture_opts->save_file = NULL;
capture_opts->use_pcapng = FALSE; /* the default is pcap */
+ capture_opts->quiet = FALSE;
capture_opts->real_time_mode = TRUE;
capture_opts->show_info = TRUE;
capture_opts->quit_after_cap = FALSE;
@@ -492,6 +493,9 @@ capture_opts_add_opt(capture_options *capture_opts, int opt, const char *optarg_
case 'p': /* Don't capture in promiscuous mode */
capture_opts->promisc_mode = FALSE;
break;
+ case 'q': /* Quiet mode (don't print packet counts) */
+ capture_opts->quiet = TRUE;
+ break;
case 'Q': /* Quit after capture (just capture to file) */
capture_opts->quit_after_cap = TRUE;
*start_capture = TRUE; /*** -Q implies -k !! ***/