aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.h
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2011-05-16 15:19:54 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2011-05-16 15:19:54 +0000
commit70ae440e158c316e7727af731a9e9af58febf955 (patch)
tree65681ace531fe885a29a7f4fa2eb0b8bf49b31a3 /capture_opts.h
parent313dbdb114385ac33cffe71118f4dfd254ce9a43 (diff)
Make remote capturing settings a per interface thing. You can now
configure that you want to capture on multiple remote interfaces on mulitple hosts. Improve some #ifdef mess in dumpcap. svn path=/trunk/; revision=37178
Diffstat (limited to 'capture_opts.h')
-rw-r--r--capture_opts.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/capture_opts.h b/capture_opts.h
index f67632169d..8eda37b2b2 100644
--- a/capture_opts.h
+++ b/capture_opts.h
@@ -84,6 +84,17 @@ typedef struct interface_options_tag {
int buffer_size;
#endif
gboolean monitor_mode;
+#ifdef HAVE_PCAP_REMOTE
+ capture_source src_type;
+ gchar *remote_host;
+ gchar *remote_port;
+ capture_auth auth_type;
+ gchar *auth_username;
+ gchar *auth_password;
+ gboolean datatx_udp;
+ gboolean nocap_rpcap;
+ gboolean nocap_local;
+#endif
#ifdef HAVE_PCAP_SETSAMPLING
capture_sampling sampling_method;
int sampling_param;
@@ -115,7 +126,7 @@ typedef struct capture_options_tag {
interface_options default_options;
#ifdef HAVE_PCAP_REMOTE
/**< XXX: Should this whole block moved to
- *< interface_options ?*/
+ *< interface_options ? Yes!*/
capture_source src_type; /**< Capturing on remote interface */
gchar *remote_host; /**< Host name or network address
*< for remote capturing */