diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-01-25 19:40:22 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-01-25 19:40:22 +0000 |
commit | 1a5e1acdf313703f2d5fbee4da5dc4bf4107e505 (patch) | |
tree | 28b6f99ecdcf8d5858a6526d3261dd146f645aa4 /capture_opts.c | |
parent | b58510cc3100d1c26e5018ff55149b42c30e0a85 (diff) | |
download | wireshark-1a5e1acdf313703f2d5fbee4da5dc4bf4107e505.tar.gz wireshark-1a5e1acdf313703f2d5fbee4da5dc4bf4107e505.tar.bz2 wireshark-1a5e1acdf313703f2d5fbee4da5dc4bf4107e505.zip |
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
Diffstat (limited to 'capture_opts.c')
-rw-r--r-- | capture_opts.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |