aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-05-07 01:46:38 +0000
committerGuy Harris <guy@alum.mit.edu>2010-05-07 01:46:38 +0000
commit6ace737ae47f519138bf480fd6ec249c08a8e2a0 (patch)
tree06a6e82a95a917f629962f14014ccaece964fbac /capture_sync.c
parent9a84de89320d381e22546989a0dca841e7ae10b8 (diff)
Add monitor mode support to TShark.
svn path=/trunk/; revision=32704
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c4
1 files changed, 4 insertions, 0 deletions
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