diff options
author | AndersBroman <anders.broman@ericsson.com> | 2014-08-05 13:57:16 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-08-05 11:59:55 +0000 |
commit | 1de0203c5fe8864637821898c393fc01f1e981a1 (patch) | |
tree | 67f1529278138c8d3c25c81ecd60382829768387 /ui/qt/manage_interfaces_dialog.cpp | |
parent | 601d99d77c4e0fe8b7024b41dc3bdb2f009ecaaa (diff) |
device.remote_opts.sampling_method and device.remote_opts.sampling_param
only exists if we have HAVE_PCAP_SETSAMPLING.
Change-Id: I60b98fd0539d1a8f4fcdd3a079f39f8062a43844
Reviewed-on: https://code.wireshark.org/review/3429
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/manage_interfaces_dialog.cpp')
-rw-r--r-- | ui/qt/manage_interfaces_dialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/manage_interfaces_dialog.cpp b/ui/qt/manage_interfaces_dialog.cpp index 5cd436a44d..7ebdf85462 100644 --- a/ui/qt/manage_interfaces_dialog.cpp +++ b/ui/qt/manage_interfaces_dialog.cpp @@ -664,8 +664,10 @@ void ManageInterfacesDialog::setRemoteSettings(interface_t *iface) } device.remote_opts.remote_host_opts.nocap_rpcap = iface->remote_opts.remote_host_opts.nocap_rpcap; device.remote_opts.remote_host_opts.datatx_udp = iface->remote_opts.remote_host_opts.datatx_udp; +#ifdef HAVE_PCAP_SETSAMPLING device.remote_opts.sampling_method = iface->remote_opts.sampling_method; device.remote_opts.sampling_param = iface->remote_opts.sampling_param; +#endif //HAVE_PCAP_SETSAMPLING global_capture_opts.all_ifaces = g_array_remove_index(global_capture_opts.all_ifaces, i); g_array_insert_val(global_capture_opts.all_ifaces, i, device); } |