From 6ace737ae47f519138bf480fd6ec249c08a8e2a0 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 7 May 2010 01:46:38 +0000 Subject: Add monitor mode support to TShark. svn path=/trunk/; revision=32704 --- capture_sync.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'capture_sync.c') diff --git a/capture_sync.c b/capture_sync.c index ab14c98558..6fe6fd1fc9 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -357,6 +357,10 @@ sync_pipe_start(capture_options *capture_opts) { if (!capture_opts->promisc_mode) argv = sync_pipe_add_arg(argv, &argc, "-p"); +#ifdef HAVE_PCAP_CREATE + if (capture_opts->monitor_mode) + argv = sync_pipe_add_arg(argv, &argc, "-I"); +#endif if (capture_opts->use_pcapng) argv = sync_pipe_add_arg(argv, &argc, "-n"); #ifdef HAVE_PCAP_REMOTE -- cgit v1.2.3