2002-01-13 20:35:12 +00:00
|
|
|
/* nameres_prefs.c
|
|
|
|
* Dialog box for name resolution preferences
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2002-01-13 20:35:12 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2002-01-13 20:35:12 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2002-01-13 20:35:12 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2002-01-13 20:35:12 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2002-01-13 20:35:12 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
2004-08-06 19:57:49 +00:00
|
|
|
#include <epan/addr_resolv.h>
|
2004-09-27 22:55:15 +00:00
|
|
|
#include <epan/prefs.h>
|
2008-01-18 07:18:32 +00:00
|
|
|
#include <epan/uat.h>
|
2010-03-03 17:19:30 +00:00
|
|
|
#include <epan/oids.h>
|
2008-04-13 03:32:24 +00:00
|
|
|
|
2008-04-13 13:10:32 +00:00
|
|
|
#include "gtk/prefs_nameres.h"
|
2008-04-13 03:32:24 +00:00
|
|
|
#include "gtk/gtkglobals.h"
|
|
|
|
#include "gtk/prefs_dlg.h"
|
|
|
|
#include "gtk/gui_utils.h"
|
|
|
|
#include "gtk/main.h"
|
2009-06-21 19:16:37 +00:00
|
|
|
#include "gtk/menus.h"
|
2008-04-13 03:32:24 +00:00
|
|
|
|
2002-01-13 20:35:12 +00:00
|
|
|
|
|
|
|
#define M_RESOLVE_KEY "m_resolve"
|
|
|
|
#define N_RESOLVE_KEY "n_resolve"
|
|
|
|
#define T_RESOLVE_KEY "t_resolve"
|
2008-10-27 04:50:57 +00:00
|
|
|
|
2008-08-07 21:41:48 +00:00
|
|
|
#if defined(HAVE_C_ARES) || defined(HAVE_GNU_ADNS)
|
2003-07-22 03:14:31 +00:00
|
|
|
# define C_RESOLVE_KEY "c_resolve"
|
|
|
|
# define RESOLVE_CONCURRENCY_KEY "resolve_concurrency"
|
2008-08-07 21:41:48 +00:00
|
|
|
#endif /* HAVE_C_ARES || HAVE_GNU_ADNS */
|
2008-10-27 04:50:57 +00:00
|
|
|
|
|
|
|
#define BASE_TABLE_ROWS 3
|
2003-07-22 03:14:31 +00:00
|
|
|
|
2008-08-07 21:41:48 +00:00
|
|
|
#if defined(HAVE_C_ARES) || defined(HAVE_GNU_ADNS)
|
2008-10-27 04:50:57 +00:00
|
|
|
# define ASYNC_TABLE_ROWS 2
|
2003-07-22 03:14:31 +00:00
|
|
|
#else
|
2008-10-27 04:50:57 +00:00
|
|
|
# define ASYNC_TABLE_ROWS 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_LIBSMI
|
2010-03-03 17:19:30 +00:00
|
|
|
# define SUPPRESS_SMI_ERRORS_KEY "suppress_smi_errors"
|
|
|
|
# define LOAD_SMI_MODULES_KEY "load_smi_modules"
|
2008-10-27 04:50:57 +00:00
|
|
|
# define SMI_TABLE_ROWS 2
|
|
|
|
#else
|
|
|
|
# define SMI_TABLE_ROWS 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_GEOIP
|
|
|
|
# define GEOIP_TABLE_ROWS 1
|
|
|
|
#else
|
|
|
|
# define GEOIP_TABLE_ROWS 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define RESOLV_TABLE_ROWS (\
|
|
|
|
BASE_TABLE_ROWS + \
|
|
|
|
ASYNC_TABLE_ROWS + \
|
|
|
|
SMI_TABLE_ROWS + \
|
|
|
|
GEOIP_TABLE_ROWS \
|
|
|
|
)
|
|
|
|
|
2002-01-13 20:35:12 +00:00
|
|
|
GtkWidget*
|
|
|
|
nameres_prefs_show(void)
|
|
|
|
{
|
2008-01-18 07:18:32 +00:00
|
|
|
guint table_row;
|
2002-01-13 20:35:12 +00:00
|
|
|
GtkWidget *main_tb, *main_vb;
|
|
|
|
GtkWidget *m_resolv_cb, *n_resolv_cb, *t_resolv_cb;
|
2004-05-27 16:43:01 +00:00
|
|
|
GtkTooltips *tooltips = gtk_tooltips_new();
|
2008-12-01 09:47:41 +00:00
|
|
|
GtkWidget *c_resolv_cb;
|
2008-08-07 21:41:48 +00:00
|
|
|
#if defined(HAVE_C_ARES) || defined(HAVE_GNU_ADNS)
|
2008-12-01 09:47:41 +00:00
|
|
|
GtkWidget *resolv_concurrency_te;
|
2003-07-22 03:14:31 +00:00
|
|
|
char concur_str[10+1];
|
2008-08-07 21:41:48 +00:00
|
|
|
#endif /* HAVE_C_ARES || HAVE_GNU_ADNS */
|
2008-01-18 07:18:32 +00:00
|
|
|
#ifdef HAVE_LIBSMI
|
2010-03-03 17:19:30 +00:00
|
|
|
GtkWidget *load_smi_modules_cb, *suppress_smi_errors_cb;
|
2008-01-30 22:50:55 +00:00
|
|
|
uat_t *smi_paths_uat;
|
|
|
|
uat_t *smi_modules_uat;
|
2008-10-27 04:50:57 +00:00
|
|
|
#endif
|
2008-12-01 09:47:41 +00:00
|
|
|
#ifdef HAVE_GEOIP
|
2008-10-27 04:50:57 +00:00
|
|
|
uat_t *geoip_db_paths_uat;
|
2008-01-18 07:18:32 +00:00
|
|
|
#endif
|
2002-01-13 20:35:12 +00:00
|
|
|
/*
|
|
|
|
* XXX - it would be nice if the current setting of the resolver
|
|
|
|
* flags could be different from the preference flags, so that
|
|
|
|
* the preference flags would represent what the user *typically*
|
|
|
|
* wants, but they could override them for particular captures
|
|
|
|
* without a subsequent editing of the preferences recording the
|
|
|
|
* temporary settings as permanent preferences.
|
|
|
|
*/
|
2010-10-12 13:15:08 +00:00
|
|
|
prefs.name_resolve = gbl_resolv_flags;
|
2002-01-13 20:35:12 +00:00
|
|
|
|
|
|
|
/* Main vertical box */
|
|
|
|
main_vb = gtk_vbox_new(FALSE, 7);
|
2008-06-29 15:51:43 +00:00
|
|
|
gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
|
2002-01-13 20:35:12 +00:00
|
|
|
|
|
|
|
/* Main table */
|
|
|
|
main_tb = gtk_table_new(RESOLV_TABLE_ROWS, 3, FALSE);
|
|
|
|
gtk_box_pack_start(GTK_BOX(main_vb), main_tb, FALSE, FALSE, 0);
|
|
|
|
gtk_table_set_row_spacings(GTK_TABLE(main_tb), 10);
|
|
|
|
gtk_table_set_col_spacings(GTK_TABLE(main_tb), 15);
|
|
|
|
gtk_widget_show(main_tb);
|
2008-04-11 16:26:32 +00:00
|
|
|
g_object_set_data(G_OBJECT(main_tb), E_TOOLTIPS_KEY, tooltips);
|
2002-01-13 20:35:12 +00:00
|
|
|
|
|
|
|
/* Resolve MAC addresses */
|
2008-01-18 07:18:32 +00:00
|
|
|
table_row = 0;
|
|
|
|
m_resolv_cb = create_preference_check_button(main_tb, table_row,
|
2004-05-27 16:43:01 +00:00
|
|
|
"Enable MAC name resolution:", "e.g. Ethernet address to manufacturer name",
|
2002-01-13 20:35:12 +00:00
|
|
|
prefs.name_resolve & RESOLV_MAC);
|
2008-04-11 16:26:32 +00:00
|
|
|
g_object_set_data(G_OBJECT(main_vb), M_RESOLVE_KEY, m_resolv_cb);
|
2002-01-13 20:35:12 +00:00
|
|
|
|
|
|
|
/* Resolve network addresses */
|
2008-01-18 07:18:32 +00:00
|
|
|
table_row++;
|
|
|
|
n_resolv_cb = create_preference_check_button(main_tb, table_row,
|
2004-05-27 16:43:01 +00:00
|
|
|
"Enable network name resolution:", "e.g. IP address to DNS name (hostname)",
|
2002-01-13 20:35:12 +00:00
|
|
|
prefs.name_resolve & RESOLV_NETWORK);
|
2008-04-11 16:26:32 +00:00
|
|
|
g_object_set_data(G_OBJECT(main_vb), N_RESOLVE_KEY, n_resolv_cb);
|
2002-01-13 20:35:12 +00:00
|
|
|
|
|
|
|
/* Resolve transport addresses */
|
2008-01-18 07:18:32 +00:00
|
|
|
table_row++;
|
|
|
|
t_resolv_cb = create_preference_check_button(main_tb, table_row,
|
2004-05-27 16:43:01 +00:00
|
|
|
"Enable transport name resolution:", "e.g. TCP/UDP port to service name",
|
2002-01-13 20:35:12 +00:00
|
|
|
prefs.name_resolve & RESOLV_TRANSPORT);
|
2008-04-11 16:26:32 +00:00
|
|
|
g_object_set_data(G_OBJECT(main_vb), T_RESOLVE_KEY, t_resolv_cb);
|
2002-01-13 20:35:12 +00:00
|
|
|
|
2008-08-07 21:41:48 +00:00
|
|
|
#if defined(HAVE_C_ARES) || defined(HAVE_GNU_ADNS)
|
2003-07-22 03:14:31 +00:00
|
|
|
/* Enable concurrent (asynchronous) DNS lookups */
|
2008-01-18 07:18:32 +00:00
|
|
|
table_row++;
|
|
|
|
c_resolv_cb = create_preference_check_button(main_tb, table_row,
|
2004-05-27 16:43:01 +00:00
|
|
|
"Enable concurrent DNS name resolution:", "be sure to enable network name resolution",
|
2003-07-22 03:14:31 +00:00
|
|
|
prefs.name_resolve & RESOLV_CONCURRENT);
|
2008-04-11 16:26:32 +00:00
|
|
|
g_object_set_data(G_OBJECT(main_vb), C_RESOLVE_KEY, c_resolv_cb);
|
2003-07-22 03:14:31 +00:00
|
|
|
|
|
|
|
/* Max concurrent requests */
|
2008-01-18 07:18:32 +00:00
|
|
|
table_row++;
|
2009-03-19 17:49:11 +00:00
|
|
|
g_snprintf(concur_str, sizeof(concur_str), "%d", prefs.name_resolve_concurrency);
|
2008-03-13 22:17:11 +00:00
|
|
|
resolv_concurrency_te = create_preference_entry(main_tb, table_row,
|
2004-05-27 16:43:01 +00:00
|
|
|
"Maximum concurrent requests:", "maximum parallel running DNS requests", concur_str);
|
2008-04-11 16:26:32 +00:00
|
|
|
g_object_set_data(G_OBJECT(main_vb), RESOLVE_CONCURRENCY_KEY, resolv_concurrency_te);
|
2003-07-22 03:14:31 +00:00
|
|
|
|
2008-12-01 09:47:41 +00:00
|
|
|
#else /* HAVE_C_ARES || HAVE_GNU_ADNS */
|
|
|
|
table_row++;
|
|
|
|
c_resolv_cb = create_preference_static_text(main_tb, table_row,
|
|
|
|
"Enable concurrent DNS name resolution: N/A",
|
|
|
|
"Support for this feature was not compiled into this version of Wireshark");
|
2008-08-07 21:41:48 +00:00
|
|
|
#endif /* HAVE_C_ARES || HAVE_GNU_ADNS */
|
2008-01-18 07:18:32 +00:00
|
|
|
#ifdef HAVE_LIBSMI
|
2010-06-13 20:27:21 +00:00
|
|
|
/* Enable OID resolution */
|
2010-03-03 17:19:30 +00:00
|
|
|
table_row++;
|
|
|
|
load_smi_modules_cb = create_preference_check_button(main_tb, table_row,
|
|
|
|
"Enable OID resolution:", "You must restart Wireshark for this change to"
|
2010-06-13 20:27:21 +00:00
|
|
|
" take effect. [If True the 'SMI paths' and 'SMI modules' preferences will be shown].",
|
|
|
|
prefs.load_smi_modules);
|
2010-03-03 17:19:30 +00:00
|
|
|
g_object_set_data(G_OBJECT(main_vb), LOAD_SMI_MODULES_KEY, load_smi_modules_cb);
|
|
|
|
|
|
|
|
/* Suppress smi errors */
|
|
|
|
table_row++;
|
|
|
|
suppress_smi_errors_cb = create_preference_check_button(main_tb, table_row,
|
|
|
|
"Suppress SMI errors:", "Some errors can be ignored. If unsure, set to false.",
|
|
|
|
prefs.suppress_smi_errors);
|
|
|
|
g_object_set_data(G_OBJECT(main_vb), SUPPRESS_SMI_ERRORS_KEY, suppress_smi_errors_cb);
|
|
|
|
|
2008-01-18 07:18:32 +00:00
|
|
|
/* SMI paths UAT */
|
2008-01-30 22:50:55 +00:00
|
|
|
smi_paths_uat = uat_get_table_by_name("SMI Paths");
|
|
|
|
if (smi_paths_uat) {
|
|
|
|
table_row++;
|
2009-11-10 12:03:57 +00:00
|
|
|
create_preference_uat(main_tb, table_row,
|
2008-03-13 22:17:11 +00:00
|
|
|
"SMI (MIB and PIB) paths",
|
|
|
|
"Search paths for SMI (MIB and PIB) modules. You must\n"
|
|
|
|
"restart Wireshark for these changes to take effect.",
|
|
|
|
smi_paths_uat);
|
2008-01-30 22:50:55 +00:00
|
|
|
}
|
2008-01-18 07:18:32 +00:00
|
|
|
|
|
|
|
/* SMI modules UAT */
|
2008-01-30 22:50:55 +00:00
|
|
|
smi_modules_uat = uat_get_table_by_name("SMI Modules");
|
|
|
|
if (smi_modules_uat) {
|
|
|
|
table_row++;
|
2009-11-10 12:03:57 +00:00
|
|
|
create_preference_uat(main_tb, table_row,
|
2008-03-13 22:17:11 +00:00
|
|
|
"SMI (MIB and PIB) modules",
|
|
|
|
"List of enabled SMI (MIB and PIB) modules. You must\n"
|
|
|
|
"restart Wireshark for these changes to take effect.",
|
|
|
|
smi_modules_uat);
|
2008-01-30 22:50:55 +00:00
|
|
|
}
|
2008-12-01 09:47:41 +00:00
|
|
|
#else /* HAVE_LIBSMI */
|
|
|
|
table_row++;
|
2009-11-10 12:03:57 +00:00
|
|
|
create_preference_static_text(main_tb, table_row,
|
2008-12-01 09:47:41 +00:00
|
|
|
"SMI (MIB and PIB) modules and paths: N/A",
|
|
|
|
"Support for this feature was not compiled into this version of Wireshark");
|
2010-03-03 17:19:30 +00:00
|
|
|
table_row++;
|
|
|
|
create_preference_static_text(main_tb, table_row,
|
|
|
|
"Enable OID resolution: N/A",
|
|
|
|
"Support for this feature was not compiled into this version of Wireshark");
|
|
|
|
table_row++;
|
|
|
|
create_preference_static_text(main_tb, table_row,
|
|
|
|
"Suppress SMI errors: N/A",
|
|
|
|
"Support for this feature was not compiled into this version of Wireshark");
|
2008-10-27 04:50:57 +00:00
|
|
|
#endif /* HAVE_LIBSMI */
|
|
|
|
|
|
|
|
#ifdef HAVE_GEOIP
|
|
|
|
/* GeoIP databases http://www.maxmind.com/app/api */
|
|
|
|
geoip_db_paths_uat = uat_get_table_by_name("GeoIP Database Paths");
|
2008-10-27 19:13:07 +00:00
|
|
|
|
2008-10-27 04:50:57 +00:00
|
|
|
if (geoip_db_paths_uat) {
|
|
|
|
table_row++;
|
2009-11-10 12:03:57 +00:00
|
|
|
create_preference_uat(main_tb, table_row,
|
2009-01-14 17:40:30 +00:00
|
|
|
"GeoIP database directories",
|
|
|
|
"Search paths for GeoIP address mapping databases.\n"
|
|
|
|
"Wireshark will look in each directory for files beginning\n"
|
|
|
|
"with \"Geo\" and ending with \".dat\".\n"
|
2008-10-27 04:50:57 +00:00
|
|
|
"You must restart Wireshark for these changes to take\n"
|
|
|
|
"effect.",
|
|
|
|
geoip_db_paths_uat);
|
|
|
|
}
|
2008-12-01 09:47:41 +00:00
|
|
|
#else /* HAVE_GEOIP */
|
|
|
|
table_row++;
|
2009-11-10 12:03:57 +00:00
|
|
|
create_preference_static_text(main_tb, table_row,
|
2008-12-01 09:47:41 +00:00
|
|
|
"GeoIP database search paths: N/A",
|
|
|
|
"Support for this feature was not compiled into this version of Wireshark");
|
2008-10-27 04:50:57 +00:00
|
|
|
#endif /* HAVE_GEOIP */
|
2003-07-22 03:14:31 +00:00
|
|
|
|
2002-01-13 20:35:12 +00:00
|
|
|
/* Show 'em what we got */
|
|
|
|
gtk_widget_show_all(main_vb);
|
|
|
|
|
|
|
|
return(main_vb);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
nameres_prefs_fetch(GtkWidget *w)
|
|
|
|
{
|
|
|
|
GtkWidget *m_resolv_cb, *n_resolv_cb, *t_resolv_cb;
|
2008-08-07 21:41:48 +00:00
|
|
|
#if defined(HAVE_C_ARES) || defined(HAVE_GNU_ADNS)
|
2003-07-22 03:14:31 +00:00
|
|
|
GtkWidget *c_resolv_cb, *resolv_concurrency_te;
|
2008-08-07 21:41:48 +00:00
|
|
|
#endif /* HAVE_C_ARES || HAVE_GNU_ADNS */
|
2010-03-03 17:19:30 +00:00
|
|
|
#ifdef HAVE_LIBSMI
|
|
|
|
GtkWidget *load_smi_modules_cb, *suppress_smi_errors_cb;
|
|
|
|
gboolean load_smi_modules_orig;
|
|
|
|
#endif
|
2002-01-13 20:35:12 +00:00
|
|
|
|
2008-04-11 16:26:32 +00:00
|
|
|
m_resolv_cb = (GtkWidget *)g_object_get_data(G_OBJECT(w), M_RESOLVE_KEY);
|
|
|
|
n_resolv_cb = (GtkWidget *)g_object_get_data(G_OBJECT(w), N_RESOLVE_KEY);
|
|
|
|
t_resolv_cb = (GtkWidget *)g_object_get_data(G_OBJECT(w), T_RESOLVE_KEY);
|
2008-08-07 21:41:48 +00:00
|
|
|
#if defined(HAVE_C_ARES) || defined(HAVE_GNU_ADNS)
|
2008-04-11 16:26:32 +00:00
|
|
|
c_resolv_cb = (GtkWidget *)g_object_get_data(G_OBJECT(w), C_RESOLVE_KEY);
|
2008-03-13 22:17:11 +00:00
|
|
|
|
2008-04-11 16:26:32 +00:00
|
|
|
resolv_concurrency_te = (GtkWidget *)g_object_get_data(G_OBJECT(w), RESOLVE_CONCURRENCY_KEY);
|
2008-08-07 21:41:48 +00:00
|
|
|
#endif /* HAVE_C_ARES || HAVE_GNU_ADNS */
|
2002-01-13 20:35:12 +00:00
|
|
|
|
|
|
|
prefs.name_resolve = RESOLV_NONE;
|
|
|
|
prefs.name_resolve |= (GTK_TOGGLE_BUTTON (m_resolv_cb)->active ? RESOLV_MAC : RESOLV_NONE);
|
|
|
|
prefs.name_resolve |= (GTK_TOGGLE_BUTTON (n_resolv_cb)->active ? RESOLV_NETWORK : RESOLV_NONE);
|
|
|
|
prefs.name_resolve |= (GTK_TOGGLE_BUTTON (t_resolv_cb)->active ? RESOLV_TRANSPORT : RESOLV_NONE);
|
2008-08-07 21:41:48 +00:00
|
|
|
#if defined(HAVE_C_ARES) || defined(HAVE_GNU_ADNS)
|
2003-07-22 03:14:31 +00:00
|
|
|
prefs.name_resolve |= (GTK_TOGGLE_BUTTON (c_resolv_cb)->active ? RESOLV_CONCURRENT : RESOLV_NONE);
|
|
|
|
|
|
|
|
prefs.name_resolve_concurrency = strtol (gtk_entry_get_text(
|
|
|
|
GTK_ENTRY(resolv_concurrency_te)), NULL, 10);
|
2008-08-07 21:41:48 +00:00
|
|
|
#endif /* HAVE_C_ARES || HAVE_GNU_ADNS */
|
2010-03-03 17:19:30 +00:00
|
|
|
#ifdef HAVE_LIBSMI
|
|
|
|
load_smi_modules_orig = prefs.load_smi_modules;
|
|
|
|
load_smi_modules_cb = (GtkWidget *)g_object_get_data(G_OBJECT(w), LOAD_SMI_MODULES_KEY);
|
|
|
|
prefs.load_smi_modules = GTK_TOGGLE_BUTTON (load_smi_modules_cb)->active;
|
|
|
|
suppress_smi_errors_cb = (GtkWidget *)g_object_get_data(G_OBJECT(w), SUPPRESS_SMI_ERRORS_KEY);
|
|
|
|
prefs.suppress_smi_errors = GTK_TOGGLE_BUTTON (suppress_smi_errors_cb)->active;
|
|
|
|
|
|
|
|
/* Perform actions needed when enabling/disabling OID resolution */
|
|
|
|
if (load_smi_modules_orig && !prefs.load_smi_modules) {
|
|
|
|
prefs.load_smi_modules = TRUE; /* hack to make oids_cleanup() actually do something */
|
|
|
|
oids_cleanup();
|
|
|
|
prefs.load_smi_modules = FALSE; /* end hack */
|
|
|
|
} else if (!load_smi_modules_orig && prefs.load_smi_modules) {
|
|
|
|
oids_init();
|
|
|
|
}
|
|
|
|
#endif
|
2002-01-13 20:35:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2002-03-05 11:56:00 +00:00
|
|
|
nameres_prefs_apply(GtkWidget *w _U_)
|
2002-01-13 20:35:12 +00:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* XXX - force a regeneration of the protocol list if this has
|
|
|
|
* changed?
|
|
|
|
*/
|
2010-10-12 13:15:08 +00:00
|
|
|
gbl_resolv_flags = prefs.name_resolve;
|
2008-01-18 07:18:32 +00:00
|
|
|
menu_name_resolution_changed();
|
2002-01-13 20:35:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2002-03-05 11:56:00 +00:00
|
|
|
nameres_prefs_destroy(GtkWidget *w _U_)
|
2002-01-13 20:35:12 +00:00
|
|
|
{
|
|
|
|
}
|