forked from osmocom/wireshark
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
This commit is contained in:
parent
b58510cc31
commit
1a5e1acdf3
|
@ -983,6 +983,8 @@ collect_ifaces(capture_options *capture_opts)
|
||||||
interface_opts.promisc_mode = device.pmode;
|
interface_opts.promisc_mode = device.pmode;
|
||||||
#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
|
#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
|
||||||
interface_opts.buffer_size = device.buffer;
|
interface_opts.buffer_size = device.buffer;
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_PCAP_CREATE
|
||||||
interface_opts.monitor_mode = device.monitor_mode_enabled;
|
interface_opts.monitor_mode = device.monitor_mode_enabled;
|
||||||
#endif
|
#endif
|
||||||
if (!device.local) {
|
if (!device.local) {
|
||||||
|
|
|
@ -126,6 +126,8 @@ typedef struct interface_tag {
|
||||||
gboolean local;
|
gboolean local;
|
||||||
#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
|
#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
|
||||||
gint buffer;
|
gint buffer;
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_PCAP_CREATE
|
||||||
gboolean monitor_mode_enabled;
|
gboolean monitor_mode_enabled;
|
||||||
gboolean monitor_mode_supported;
|
gboolean monitor_mode_supported;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue