aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2003-05-04 18:50:56 +0000
committerGerald Combs <gerald@wireshark.org>2003-05-04 18:50:56 +0000
commit1d9b54fc072952758813d6cbce25bbe1ef8c2ac3 (patch)
tree1fc6bf8e2065199f49398fdfb4c3ef23ac1ab398 /gtk
parent5cc92eeb86806e56d7524c4887716b688fbdd0ca (diff)
Add support for asynchronous DNS updates using the GNU ADNS library.
Support can be enabled at configure time by using "--with-adns=DIR". If support is enabled, async queries happen whenever host name resolution is enabled. Do we need a separate preference for async queries? Currently, only IPv4 reverse queries are supported. I can add IPv4 forward lookup support, but I don't have any way to test IPv6 queries. svn path=/trunk/; revision=7640
Diffstat (limited to 'gtk')
-rw-r--r--gtk/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 9d49a2b26d..28dfaa9fc0 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1,6 +1,6 @@
/* main.c
*
- * $Id: main.c,v 1.292 2003/05/03 00:48:37 guy Exp $
+ * $Id: main.c,v 1.293 2003/05/04 18:50:56 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1526,6 +1526,11 @@ main(int argc, char *argv[])
gtk_timeout_add(3000, (GtkFunction)update_cb,(gpointer)NULL);
#endif /* !WIN32 && GTK2 && G_THREADS_ENABLED */
+#if HAVE_GNU_ADNS
+ gtk_timeout_add(750, (GtkFunction) host_name_lookup_process, NULL);
+#endif
+
+
/* Set the current locale according to the program environment.
* We haven't localized anything, but some GTK widgets are localized
* (the file selection dialogue, for example).