summaryrefslogtreecommitdiff
path: root/capture_opts.h
diff options
context:
space:
mode:
Diffstat (limited to 'capture_opts.h')
-rw-r--r--capture_opts.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/capture_opts.h b/capture_opts.h
index 81e7cadfdf..f67632169d 100644
--- a/capture_opts.h
+++ b/capture_opts.h
@@ -84,6 +84,10 @@ typedef struct interface_options_tag {
int buffer_size;
#endif
gboolean monitor_mode;
+#ifdef HAVE_PCAP_SETSAMPLING
+ capture_sampling sampling_method;
+ int sampling_param;
+#endif
} interface_options;
/** Capture options coming from user interface */
@@ -126,10 +130,12 @@ typedef struct capture_options_tag {
gboolean nocap_local; /**< TODO: Whether to capture local traffic */
#endif
#ifdef HAVE_PCAP_SETSAMPLING
- /**< XXX: Should this whole block moved to
- *< interface_options ?*/
- capture_sampling sampling_method; /**< PCAP packet sampling method */
- int sampling_param; /**< PCAP packet sampling parameter */
+ capture_sampling sampling_method; /**< PCAP packet sampling method
+ *< XXX: Can finally be be removed.
+ *< Replaced by interface_options.sampling_method */
+ int sampling_param; /**< PCAP packet sampling parameter
+ *< XXX: Can finally be be removed.
+ *< Replaced by interface_options.sampling_param */
#endif
#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
int buffer_size; /**< the capture buffer size (MB)