From 7a630c61a1ad5e3cb7f6895256e568ca5a292645 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 26 May 2010 00:19:27 +0000 Subject: 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 --- capture_opts.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'capture_opts.c') 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 !! ***/ -- cgit v1.2.3