aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorruengeler <ruengeler@localhost>2012-04-23 12:34:16 +0000
committerruengeler <ruengeler@localhost>2012-04-23 12:34:16 +0000
commit0819722ad8fea31124836b40122dafb2e8f4556b (patch)
tree40622f0509f604743c055ac1b08eb76dac42847c /ui
parent987ce281e4dcd36f489b37b510ff4f309d67730e (diff)
Fix bug #7178 reported by aparan
svn path=/trunk/; revision=42206
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c
index 75b18d2d46..ccb56ee838 100644
--- a/ui/gtk/main.c
+++ b/ui/gtk/main.c
@@ -4111,7 +4111,20 @@ scan_local_interfaces(capture_options* capture_opts)
}
}
#ifdef HAVE_PCAP_REMOTE
+ device.local = TRUE;
device.remote_opts.src_type = CAPTURE_IFLOCAL;
+ device.remote_opts.remote_host_opts.remote_host = g_strdup(capture_opts->default_options.remote_host);
+ device.remote_opts.remote_host_opts.remote_port = g_strdup(capture_opts->default_options.remote_port);
+ device.remote_opts.remote_host_opts.auth_type = capture_opts->default_options.auth_type;
+ device.remote_opts.remote_host_opts.auth_username = g_strdup(capture_opts->default_options.auth_username);
+ device.remote_opts.remote_host_opts.auth_password = g_strdup(capture_opts->default_options.auth_password);
+ device.remote_opts.remote_host_opts.datatx_udp = capture_opts->default_options.datatx_udp;
+ device.remote_opts.remote_host_opts.nocap_rpcap = capture_opts->default_options.nocap_rpcap;
+ device.remote_opts.remote_host_opts.nocap_local = capture_opts->default_options.nocap_local;
+#endif
+#ifdef HAVE_PCAP_SETSAMPLING
+ device.remote_opts.sampling_method = capture_opts->default_options.sampling_method;
+ device.remote_opts.sampling_param = capture_opts->default_options.sampling_param;
#endif
linktype_count = 0;
device.links = NULL;