diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-01-25 14:29:09 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-01-25 14:29:09 +0000 |
commit | 91b873184fbd8e04677e70d36e5f94cf8f4927db (patch) | |
tree | cdb8e548b131c1af175d75a62c195a85d6d6ce45 /capture_opts.c | |
parent | a122d4616e507245051e9a5f9bae878d57ae33c5 (diff) |
monitor_mode_enabled is only available on WIN32 or if we HAVE_PCAP_CREATE.
svn path=/trunk/; revision=40717
Diffstat (limited to 'capture_opts.c')
-rw-r--r-- | capture_opts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/capture_opts.c b/capture_opts.c index e2074b5555..0db1637c4d 100644 --- a/capture_opts.c +++ b/capture_opts.c @@ -976,7 +976,6 @@ collect_ifaces(capture_options *capture_opts) if (!device.hidden && device.selected) { interface_opts.name = g_strdup(device.name); interface_opts.descr = g_strdup(device.display_name); - interface_opts.monitor_mode = device.monitor_mode_enabled; interface_opts.linktype = device.active_dlt; interface_opts.cfilter = g_strdup(device.cfilter); interface_opts.snaplen = device.snaplen; @@ -984,9 +983,10 @@ collect_ifaces(capture_options *capture_opts) interface_opts.promisc_mode = device.pmode; #if defined(_WIN32) || defined(HAVE_PCAP_CREATE) interface_opts.buffer_size = device.buffer; + interface_opts.monitor_mode = device.monitor_mode_enabled; #endif if (!device.local) { -#ifdef HAVE_PCAP_REMOTE +#ifdef HAVE_PCAP_REMOTE interface_opts.src_type = CAPTURE_IFREMOTE; interface_opts.remote_host = g_strdup(device.remote_opts.remote_host_opts.remote_host); interface_opts.remote_port = g_strdup(device.remote_opts.remote_host_opts.remote_port); |