diff options
Diffstat (limited to 'ui/qt/capture_filter_syntax_worker.cpp')
-rw-r--r-- | ui/qt/capture_filter_syntax_worker.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ui/qt/capture_filter_syntax_worker.cpp b/ui/qt/capture_filter_syntax_worker.cpp index b61f6dbbb4..be314a8edb 100644 --- a/ui/qt/capture_filter_syntax_worker.cpp +++ b/ui/qt/capture_filter_syntax_worker.cpp @@ -29,9 +29,7 @@ #include "capture_opts.h" #include "ui/capture_globals.h" #endif -#ifdef HAVE_EXTCAP #include "extcap.h" -#endif #include "capture_filter_syntax_worker.h" #include <ui/qt/widgets/syntax_line_edit.h> @@ -63,9 +61,7 @@ void CaptureFilterSyntaxWorker::start() { forever { QString filter; QSet<gint> active_dlts; -#ifdef HAVE_EXTCAP QSet<guint> active_extcap; -#endif struct bpf_program fcode; pcap_t *pd; int pc_err; @@ -93,9 +89,7 @@ void CaptureFilterSyntaxWorker::start() { device = &g_array_index(global_capture_opts.all_ifaces, interface_t, if_idx); if (device->selected) { -#ifdef HAVE_EXTCAP if (device->if_info.extcap == NULL || strlen(device->if_info.extcap) == 0) { -#endif if (device->active_dlt >= DLT_USER0 && device->active_dlt <= DLT_USER15) { // Capture filter for DLT_USER is unknown state = SyntaxLineEdit::Deprecated; @@ -103,11 +97,9 @@ void CaptureFilterSyntaxWorker::start() { } else { active_dlts.insert(device->active_dlt); } -#ifdef HAVE_EXTCAP } else { active_extcap.insert(if_idx); } -#endif } } @@ -142,7 +134,6 @@ void CaptureFilterSyntaxWorker::start() { if (state == SyntaxLineEdit::Invalid) break; } -#ifdef HAVE_EXTCAP // If it's already invalid, don't bother to check extcap if (state != SyntaxLineEdit::Invalid) { foreach (guint extcapif, active_extcap.toList()) { @@ -165,7 +156,6 @@ void CaptureFilterSyntaxWorker::start() { g_free (error); } } -#endif emit syntaxResult(filter, state, err_str); DEBUG_SYNTAX_CHECK("known", "idle"); |