diff options
Diffstat (limited to 'gtk/main.c')
-rw-r--r-- | gtk/main.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk/main.c b/gtk/main.c index 4b4142e736..faff151a83 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -2958,9 +2958,9 @@ main(int argc, char *argv[]) set_capture_if_dialog_for_capture_in_progress(FALSE); } - /* if the user didn't supplied a capture filter, use the one to filter out remote connections like SSH */ - if (!start_capture && !global_capture_opts.cfilter) { - global_capture_opts.cfilter = g_strdup(get_conn_cfilter()); + /* if the user didn't supply a capture filter, use the one to filter out remote connections like SSH */ + if (!start_capture && !global_capture_opts.default_options.cfilter) { + global_capture_opts.default_options.cfilter = g_strdup(get_conn_cfilter()); } #else /* HAVE_LIBPCAP */ show_main_window(FALSE); @@ -3638,11 +3638,11 @@ prefs_to_capture_opts(void) #ifdef HAVE_LIBPCAP /* Set promiscuous mode from the preferences setting. */ /* the same applies to other preferences settings as well. */ - global_capture_opts.promisc_mode = prefs.capture_prom_mode; - global_capture_opts.use_pcapng = prefs.capture_pcap_ng; - global_capture_opts.show_info = prefs.capture_show_info; - global_capture_opts.real_time_mode = prefs.capture_real_time; - auto_scroll_live = prefs.capture_auto_scroll; + global_capture_opts.default_options.promisc_mode = prefs.capture_prom_mode; + global_capture_opts.use_pcapng = prefs.capture_pcap_ng; + global_capture_opts.show_info = prefs.capture_show_info; + global_capture_opts.real_time_mode = prefs.capture_real_time; + auto_scroll_live = prefs.capture_auto_scroll; #endif /* HAVE_LIBPCAP */ /* Set the name resolution code's flags from the preferences. */ |