From 1a5e1acdf313703f2d5fbee4da5dc4bf4107e505 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 25 Jan 2012 19:40:22 +0000 Subject: Actually, you only have monitor mode support if you have pcap_create() - without pcap_create() and pcap_activate() you don't have any API to turn it on. svn path=/trunk/; revision=40725 --- capture_opts.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'capture_opts.c') diff --git a/capture_opts.c b/capture_opts.c index 0db1637c4d..3990f2a0e7 100644 --- a/capture_opts.c +++ b/capture_opts.c @@ -983,6 +983,8 @@ 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; +#endif +#ifdef HAVE_PCAP_CREATE interface_opts.monitor_mode = device.monitor_mode_enabled; #endif if (!device.local) { -- cgit v1.2.3