without pcap_create() and pcap_activate() you don't have any API to turn
it on.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40725
f5534014-38df-0310-8fa8-
9805f1628bb7
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) {
gboolean local;
#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
gint buffer;
+#endif
+#ifdef HAVE_PCAP_CREATE
gboolean monitor_mode_enabled;
gboolean monitor_mode_supported;
#endif