diff options
author | Gerald Combs <gerald@wireshark.org> | 2003-07-22 03:14:31 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2003-07-22 03:14:31 +0000 |
commit | d98ee5ef393b70dee2a385b352642209eab97cb5 (patch) | |
tree | a2b8485cbffc7874bab3167b60e2caeb2fb6e5cc /gtk/file_dlg.c | |
parent | 7dd93bc1f6ef6ebedddfbae01874fbf326a5740b (diff) |
Add two preferences to control ADNS, one to enable/disable it and one to
set its concurrency level. Fix an ADNS queueing bug.
svn path=/trunk/; revision=8063
Diffstat (limited to 'gtk/file_dlg.c')
-rw-r--r-- | gtk/file_dlg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/file_dlg.c b/gtk/file_dlg.c index dd0858f83e..ea4e63d4aa 100644 --- a/gtk/file_dlg.c +++ b/gtk/file_dlg.c @@ -1,7 +1,7 @@ /* file_dlg.c * Dialog boxes for handling files * - * $Id: file_dlg.c,v 1.56 2003/07/18 20:55:11 oabad Exp $ + * $Id: file_dlg.c,v 1.57 2003/07/22 03:14:30 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -42,6 +42,7 @@ #include "dlg_utils.h" #include "main.h" #include "compat_macros.h" +#include "prefs.h" static void file_open_ok_cb(GtkWidget *w, GtkFileSelection *fs); static void file_open_destroy_cb(GtkWidget *win, gpointer user_data); @@ -234,7 +235,7 @@ file_open_ok_cb(GtkWidget *w, GtkFileSelection *fs) { cfile.rfcode = rfcode; /* Set the global resolving variable */ - g_resolv_flags = 0; + g_resolv_flags = prefs.name_resolve & RESOLV_CONCURRENT; m_resolv_cb = OBJECT_GET_DATA(w, E_FILE_M_RESOLVE_KEY); g_resolv_flags |= GTK_TOGGLE_BUTTON (m_resolv_cb)->active ? RESOLV_MAC : RESOLV_NONE; n_resolv_cb = OBJECT_GET_DATA(w, E_FILE_N_RESOLVE_KEY); |