diff options
author | ruengeler <ruengeler@localhost> | 2012-04-23 13:47:45 +0000 |
---|---|---|
committer | ruengeler <ruengeler@localhost> | 2012-04-23 13:47:45 +0000 |
commit | ea68381088d5267a22638d20383f9ae693520644 (patch) | |
tree | 6f17fe1268cf05f13952cce8d7c6da2871df4bb4 /capture_opts.c | |
parent | 6c88c479c6538a7148936062e8b6d7c0d6373222 (diff) |
Remove lines that are not needed.
svn path=/trunk/; revision=42208
Diffstat (limited to 'capture_opts.c')
-rw-r--r-- | capture_opts.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/capture_opts.c b/capture_opts.c index e5173ddaab..823e46c5ba 100644 --- a/capture_opts.c +++ b/capture_opts.c @@ -1010,23 +1010,21 @@ collect_ifaces(capture_options *capture_opts) #ifdef HAVE_PCAP_CREATE interface_opts.monitor_mode = device.monitor_mode_enabled; #endif - /* if (!device.local) {*/ #ifdef HAVE_PCAP_REMOTE - interface_opts.src_type = CAPTURE_IFREMOTE; - interface_opts.remote_host = g_strdup(device.remote_opts.remote_host_opts.remote_host); - interface_opts.remote_port = g_strdup(device.remote_opts.remote_host_opts.remote_port); - interface_opts.auth_type = device.remote_opts.remote_host_opts.auth_type; - interface_opts.auth_username = g_strdup(device.remote_opts.remote_host_opts.auth_username); - interface_opts.auth_password = g_strdup(device.remote_opts.remote_host_opts.auth_password); - interface_opts.datatx_udp = device.remote_opts.remote_host_opts.datatx_udp; - interface_opts.nocap_rpcap = device.remote_opts.remote_host_opts.nocap_rpcap; - interface_opts.nocap_local = device.remote_opts.remote_host_opts.nocap_local; + interface_opts.src_type = CAPTURE_IFREMOTE; + interface_opts.remote_host = g_strdup(device.remote_opts.remote_host_opts.remote_host); + interface_opts.remote_port = g_strdup(device.remote_opts.remote_host_opts.remote_port); + interface_opts.auth_type = device.remote_opts.remote_host_opts.auth_type; + interface_opts.auth_username = g_strdup(device.remote_opts.remote_host_opts.auth_username); + interface_opts.auth_password = g_strdup(device.remote_opts.remote_host_opts.auth_password); + interface_opts.datatx_udp = device.remote_opts.remote_host_opts.datatx_udp; + interface_opts.nocap_rpcap = device.remote_opts.remote_host_opts.nocap_rpcap; + interface_opts.nocap_local = device.remote_opts.remote_host_opts.nocap_local; #endif #ifdef HAVE_PCAP_SETSAMPLING - interface_opts.sampling_method = device.remote_opts.sampling_method; - interface_opts.sampling_param = device.remote_opts.sampling_param; + interface_opts.sampling_method = device.remote_opts.sampling_method; + interface_opts.sampling_param = device.remote_opts.sampling_param; #endif - /* }*/ g_array_append_val(capture_opts->ifaces, interface_opts); } else { continue; |