Use a global list containing all interfaces and only change
[obnox/wireshark/wip.git] / capture_sync.c
index bf0272bbaf183f759f863d7b9a314b8802e2c71d..5e66da0187ae1387c555cc0944e7e5ad960ff13e 100644 (file)
@@ -461,9 +461,11 @@ sync_pipe_start(capture_options *capture_opts) {
         }
 #endif
 
+#ifdef HAVE_PCAP_CREATE
         if (interface_opts.monitor_mode) {
             argv = sync_pipe_add_arg(argv, &argc, "-I");
         }
+#endif
 
 #ifdef HAVE_PCAP_REMOTE
         if (interface_opts.datatx_udp)