aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2010-05-07 01:46:38 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2010-05-07 01:46:38 +0000
commitbb2fb54f4d9be8bceb9b4a5cba9216018fb823c4 (patch)
tree06a6e82a95a917f629962f14014ccaece964fbac /capture_sync.c
parentdf5bd1bc0263e6afdbf27f0782d59bc4646acfb5 (diff)
Add monitor mode support to TShark.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32704 f5534014-38df-0310-8fa8-9805f1628bb7
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